diff --git a/backend/src/main/resources/db/migration/V3__unique_admin_social.sql b/backend/src/main/resources/db/migration/V3__unique_admin_social.sql new file mode 100644 index 000000000..2b47d2cd6 --- /dev/null +++ b/backend/src/main/resources/db/migration/V3__unique_admin_social.sql @@ -0,0 +1,5 @@ +alter table admin + add constraint UNIQUE_USERNAME unique (username); + +alter table member + add constraint UNIQUE_SOCIAL unique (social_id, social_type);