Type the relationships of Path
This commit is contained in:
parent
f45a444f83
commit
af0e3cf1a1
1 changed files with 2 additions and 2 deletions
|
|
@ -109,11 +109,11 @@ class Path(meta.Base):
|
||||||
)
|
)
|
||||||
|
|
||||||
# Relationships
|
# Relationships
|
||||||
first_address = orm.relationship(
|
first_address: orm.Mapped[db.Address] = orm.relationship(
|
||||||
"Address",
|
"Address",
|
||||||
foreign_keys="[Path.first_address_id, Path.city_id]",
|
foreign_keys="[Path.first_address_id, Path.city_id]",
|
||||||
)
|
)
|
||||||
second_address = orm.relationship(
|
second_address: orm.Mapped[db.Address] = orm.relationship(
|
||||||
"Address",
|
"Address",
|
||||||
foreign_keys="[Path.second_address_id, Path.city_id]",
|
foreign_keys="[Path.second_address_id, Path.city_id]",
|
||||||
overlaps="first_address",
|
overlaps="first_address",
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue