|
@@ 231-248 (lines=18) @@
|
| 228 |
|
rs7_id = Column(SmallInteger) |
| 229 |
|
|
| 230 |
|
|
| 231 |
|
class EgonEvCountMvGridDistrict(Base): |
| 232 |
|
""" |
| 233 |
|
Class definition of table demand.egon_ev_count_mv_grid_district. |
| 234 |
|
|
| 235 |
|
Contains electric vehicle counts per MV grid district. |
| 236 |
|
|
| 237 |
|
""" |
| 238 |
|
|
| 239 |
|
__tablename__ = "egon_ev_count_mv_grid_district" |
| 240 |
|
__table_args__ = {"schema": "demand"} |
| 241 |
|
|
| 242 |
|
scenario = Column(String, ForeignKey(EgonScenario.name), primary_key=True) |
| 243 |
|
scenario_variation = Column(String, primary_key=True) |
| 244 |
|
bus_id = Column( |
| 245 |
|
Integer, ForeignKey(MvGridDistricts.bus_id), primary_key=True |
| 246 |
|
) |
| 247 |
|
bev_mini = Column(Integer) |
| 248 |
|
bev_medium = Column(Integer) |
| 249 |
|
bev_luxury = Column(Integer) |
| 250 |
|
phev_mini = Column(Integer) |
| 251 |
|
phev_medium = Column(Integer) |
|
@@ 208-223 (lines=16) @@
|
| 205 |
|
phev_luxury = Column(Integer) |
| 206 |
|
|
| 207 |
|
|
| 208 |
|
class EgonEvCountMunicipality(Base): |
| 209 |
|
""" |
| 210 |
|
Class definition of table demand.egon_ev_count_municipality. |
| 211 |
|
|
| 212 |
|
Contains electric vehicle counts per municipality. |
| 213 |
|
|
| 214 |
|
""" |
| 215 |
|
|
| 216 |
|
__tablename__ = "egon_ev_count_municipality" |
| 217 |
|
__table_args__ = {"schema": "demand"} |
| 218 |
|
|
| 219 |
|
scenario = Column(String, ForeignKey(EgonScenario.name), primary_key=True) |
| 220 |
|
scenario_variation = Column(String, primary_key=True) |
| 221 |
|
ags = Column(Integer, primary_key=True) |
| 222 |
|
bev_mini = Column(Integer) |
| 223 |
|
bev_medium = Column(Integer) |
| 224 |
|
bev_luxury = Column(Integer) |
| 225 |
|
phev_mini = Column(Integer) |
| 226 |
|
phev_medium = Column(Integer) |
|
@@ 185-200 (lines=16) @@
|
| 182 |
|
# ev = relationship("EgonEvPool", back_populates="trips") |
| 183 |
|
|
| 184 |
|
|
| 185 |
|
class EgonEvCountRegistrationDistrict(Base): |
| 186 |
|
""" |
| 187 |
|
Class definition of table demand.egon_ev_count_registration_district. |
| 188 |
|
|
| 189 |
|
Contains electric vehicle counts per registration district. |
| 190 |
|
|
| 191 |
|
""" |
| 192 |
|
|
| 193 |
|
__tablename__ = "egon_ev_count_registration_district" |
| 194 |
|
__table_args__ = {"schema": "demand"} |
| 195 |
|
|
| 196 |
|
scenario = Column(String, ForeignKey(EgonScenario.name), primary_key=True) |
| 197 |
|
scenario_variation = Column(String, primary_key=True) |
| 198 |
|
ags_reg_district = Column(Integer, primary_key=True) |
| 199 |
|
reg_district = Column(String) |
| 200 |
|
bev_mini = Column(Integer) |
| 201 |
|
bev_medium = Column(Integer) |
| 202 |
|
bev_luxury = Column(Integer) |
| 203 |
|
phev_mini = Column(Integer) |