Add secret key
This commit is contained in:
0
migrations/V0000__initial.sql
Normal file
0
migrations/V0000__initial.sql
Normal file
16
migrations/V0001__create_users.sql
Normal file
16
migrations/V0001__create_users.sql
Normal 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);
|
||||
Reference in New Issue
Block a user