Explain the "why"

This commit is contained in:
Alexander Hess 2026-12-04 10:50:35 +01:00
commit 4af3467964
Signed by: alexander
GPG key ID: B46EDB4DFC26805D

View file

@ -27,6 +27,7 @@ class Address(meta.Base):
primary_key=True, primary_key=True,
autoincrement=False, # because the IDs come from the original data autoincrement=False, # because the IDs come from the original data
) )
# Duplicate entries of a place point to the earliest one (see `.is_primary`)
primary_id: orm.Mapped[int] = orm.mapped_column( primary_id: orm.Mapped[int] = orm.mapped_column(
sa.Integer, sa.Integer,
nullable=False, nullable=False,