howmuch/migrations/20241018175610_participation_add_unique_keys.postgres.up.sql
Muyao CHEN dde4eb337c
All checks were successful
Build and test / Build (push) Successful in 2m29s
repo: add some sql for events
2024-10-18 21:15:27 +02:00

3 lines
93 B
SQL

ALTER TABLE "participation"
ADD CONSTRAINT unique_user_event UNIQUE ("user_id", "event_id");