feat: ✨ user routing
feat: ✨ contact
This commit is contained in:
parent
d0187b1b42
commit
aa679b5a05
18 changed files with 304 additions and 64 deletions
|
@ -5,7 +5,6 @@ CREATE TABLE IF NOT EXISTS "user"(
|
|||
surname VARCHAR(255) NOT NULL,
|
||||
gender boolean NOT NULL,
|
||||
birth_date DATE NOT NULL,
|
||||
email VARCHAR(255) NOT NULL UNIQUE,
|
||||
role_id BIGSERIAL NOT NULL REFERENCES "role"(id),
|
||||
creation_time TIMESTAMPTZ NOT NULL DEFAULT NOW()
|
||||
);
|
2
migrations/20241213232937_contact.down.sql
Normal file
2
migrations/20241213232937_contact.down.sql
Normal file
|
@ -0,0 +1,2 @@
|
|||
-- Add down migration script here
|
||||
DROP TABLE IF EXISTS "contact";
|
5
migrations/20241213232937_contact.up.sql
Normal file
5
migrations/20241213232937_contact.up.sql
Normal file
|
@ -0,0 +1,5 @@
|
|||
-- Add up migration script here
|
||||
CREATE TABLE IF NOT EXISTS "contact"(
|
||||
user_id BIGSERIAL PRIMARY KEY NOT NULL UNIQUE,
|
||||
email VARCHAR(255) NOT NULL UNIQUE
|
||||
);
|
Loading…
Add table
Add a link
Reference in a new issue