comment, interaction db
This commit is contained in:
parent
ee9015c1e3
commit
60d18771d7
17 changed files with 184 additions and 32 deletions
10
migrations/20241204225135_create_user_table.up.sql
Normal file
10
migrations/20241204225135_create_user_table.up.sql
Normal file
|
@ -0,0 +1,10 @@
|
|||
-- Add up migration script here
|
||||
CREATE TABLE IF NOT EXISTS "user"(
|
||||
id BIGSERIAL PRIMARY KEY NOT NULL UNIQUE,
|
||||
name VARCHAR(255) NOT NULL,
|
||||
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)
|
||||
);
|
Loading…
Add table
Add a link
Reference in a new issue