Explain the "why"

This commit is contained in:
Alexander Hess 2026-12-04 11:30:50 +01:00
commit 593d0f83d7
Signed by: alexander
GPG key ID: B46EDB4DFC26805D

View file

@ -98,6 +98,7 @@ class Address(meta.Base):
), ),
# Needed by a `ForeignKeyConstraint` in `AddressPixelAssociation` # Needed by a `ForeignKeyConstraint` in `AddressPixelAssociation`
sa.UniqueConstraint("id", "city_id"), sa.UniqueConstraint("id", "city_id"),
# Covers the zip codes of the target cities Bordeaux, Lyon, and Paris
sa.CheckConstraint( sa.CheckConstraint(
"30000 <= zip_code AND zip_code <= 99999", "30000 <= zip_code AND zip_code <= 99999",
name="valid_zip_code", name="valid_zip_code",