| @@ 43-55 (lines=13) @@ | ||
| 40 | Base = declarative_base() |
|
| 41 | ||
| 42 | ||
| 43 | class EgonPowerPlants(Base): |
|
| 44 | __tablename__ = "egon_power_plants" |
|
| 45 | __table_args__ = {"schema": "supply"} |
|
| 46 | id = Column(BigInteger, Sequence("pp_seq"), primary_key=True) |
|
| 47 | sources = Column(JSONB) |
|
| 48 | source_id = Column(JSONB) |
|
| 49 | carrier = Column(String) |
|
| 50 | el_capacity = Column(Float) |
|
| 51 | bus_id = Column(Integer) |
|
| 52 | voltage_level = Column(Integer) |
|
| 53 | weather_cell_id = Column(Integer) |
|
| 54 | scenario = Column(String) |
|
| 55 | geom = Column(Geometry("POINT", 4326), index=True) |
|
| 56 | ||
| 57 | ||
| 58 | class PowerPlants(Dataset): |
|
| @@ 31-42 (lines=12) @@ | ||
| 28 | Base = declarative_base() |
|
| 29 | ||
| 30 | ||
| 31 | class EgonStorages(Base): |
|
| 32 | __tablename__ = "egon_storages" |
|
| 33 | __table_args__ = {"schema": "supply"} |
|
| 34 | id = Column(BigInteger, Sequence("storage_seq"), primary_key=True) |
|
| 35 | sources = Column(JSONB) |
|
| 36 | source_id = Column(JSONB) |
|
| 37 | carrier = Column(String) |
|
| 38 | el_capacity = Column(Float) |
|
| 39 | bus_id = Column(Integer) |
|
| 40 | voltage_level = Column(Integer) |
|
| 41 | scenario = Column(String) |
|
| 42 | geom = Column(Geometry("POINT", 4326)) |
|
| 43 | ||
| 44 | ||
| 45 | class Storages(Dataset): |
|