Add secret key

This commit is contained in:
Eden Kirin
2023-10-23 23:41:46 +02:00
parent 002f6a3d06
commit 71e09a86f6
5 changed files with 50 additions and 1 deletions

View File

View File

@ -0,0 +1,16 @@
CREATE TABLE IF NOT EXISTS users
(
id uuid DEFAULT gen_random_uuid() PRIMARY KEY NOT NULL,
email varchar(100) NOT NULL,
first_name varchar(50),
last_name varchar(50),
password varchar(100) NOT NULL,
is_active boolean default TRUE,
created_at timestamp WITH TIME ZONE DEFAULT NOW() NOT NULL,
updated_at timestamp WITH TIME ZONE DEFAULT NOW() NOT NULL
);
CREATE UNIQUE INDEX IF NOT EXISTS users_id_uindex
ON users (id);
CREATE UNIQUE INDEX IF NOT EXISTS email_uindex
ON users (email);