Explain the "why"
This commit is contained in:
parent
4af3467964
commit
cfe8473fad
1 changed files with 1 additions and 1 deletions
|
|
@ -56,7 +56,7 @@ class Address(meta.Base):
|
||||||
index=True,
|
index=True,
|
||||||
)
|
)
|
||||||
city_name: orm.Mapped[str] = orm.mapped_column(
|
city_name: orm.Mapped[str] = orm.mapped_column(
|
||||||
"city",
|
"city", # because `.city` is the relationship to `City`
|
||||||
sa.Unicode(length=25),
|
sa.Unicode(length=25),
|
||||||
nullable=False,
|
nullable=False,
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue