-- Add up migration script here
CREATE TABLE IF NOT EXISTS "user"(
    id BIGSERIAL PRIMARY KEY NOT NULL UNIQUE,
    name VARCHAR(256) NOT NULL,
    surname VARCHAR(256) NOT NULL,
    gender boolean NOT NULL,
    birth_date DATE NOT NULL,
    role_id BIGSERIAL NOT NULL REFERENCES "role"(id),
    creation_time TIMESTAMPTZ NOT NULL DEFAULT NOW()
);