feat: admin routing part 5

This commit is contained in:
Ahmet Kaan GÜMÜŞ 2025-01-28 22:38:14 +03:00
parent c3156aeb41
commit 6d3b6a4e79
35 changed files with 385 additions and 401 deletions

View file

@ -1,7 +1,7 @@
-- Add up migration script here
CREATE TABLE IF NOT EXISTS "user_contact"(
user_id BIGSERIAL NOT NULL REFERENCES "user"(user_id),
contact_id BIGSERIAL NOT NULL REFERENCES "contact"(id),
contact_id BIGSERIAL NOT NULL REFERENCES "contact"(contact_id),
contact_value VARCHAR(256) NOT NULL,
PRIMARY KEY (user_id, contact_id),
UNIQUE (contact_id, contact_value)