FIX[BE]: period without autoincrement

This commit is contained in:
ragilap
2025-10-16 15:30:36 +07:00
parent 6c7ab8a0f8
commit 3ec05eb76f
16 changed files with 533 additions and 27 deletions
@@ -0,0 +1 @@
DROP INDEX IF EXISTS project_flocks_flock_period_unique;
@@ -0,0 +1,3 @@
CREATE UNIQUE INDEX project_flocks_flock_period_unique
ON project_flocks (flock_id, period)
WHERE deleted_at IS NULL;