feat: contact rethinked and user_contact created

This commit is contained in:
Ahmet Kaan GÜMÜŞ 2024-12-15 03:58:47 +03:00
parent aa679b5a05
commit e167b864ee
19 changed files with 261 additions and 29 deletions

View file

@ -0,0 +1,6 @@
-- Add up migration script here
CREATE TABLE IF NOT EXISTS "user_contact"(
user_id BIGSERIAL NOT NULL REFERENCES "user"(id),
contact_id BIGSERIAL NOT NULL REFERENCES "contact"(id),
PRIMARY KEY (user_id, contact_id)
);