Les codes de département peuvent avoir 3 caractères
This commit is contained in:
@ -21,7 +21,7 @@ class Region(Base):
|
||||
class Departement(Base):
|
||||
__tablename__ = "departement"
|
||||
|
||||
code_insee: Mapped[str] = mapped_column(String(2), primary_key=True)
|
||||
code_insee: Mapped[str] = mapped_column(String(3), primary_key=True)
|
||||
libelle: Mapped[str] = mapped_column(String(64), unique=True)
|
||||
region_code: Mapped[int] = mapped_column(ForeignKey("region.code_insee"))
|
||||
geometry: Mapped[dict] = mapped_column(JSON())
|
||||
|
Reference in New Issue
Block a user