diff --git a/src/velofy/db/pixels.py b/src/velofy/db/pixels.py index c7ff9df..0102635 100644 --- a/src/velofy/db/pixels.py +++ b/src/velofy/db/pixels.py @@ -62,7 +62,7 @@ class Pixel(meta.Base): # The foreign key in `AddressPixelAssociation` refers to this pair # => Its `.grid_id` always matches the `Pixel`'s `.grid` sa.UniqueConstraint("id", "grid_id"), - # Each coordinate within the same `grid` is used at most once + # A `.grid` has at most one `Pixel` per `.n_x`-`.n_y` coordinate sa.UniqueConstraint("grid_id", "n_x", "n_y"), )