They came from... Behind
This commit is contained in:
1
db/migrations/000001_create_users_table.down.sql
Normal file
1
db/migrations/000001_create_users_table.down.sql
Normal file
@@ -0,0 +1 @@
|
||||
drop table if exists users;
|
13
db/migrations/000001_create_users_table.up.sql
Normal file
13
db/migrations/000001_create_users_table.up.sql
Normal file
@@ -0,0 +1,13 @@
|
||||
create table users
|
||||
(
|
||||
id uuid default gen_random_uuid()
|
||||
constraint users_pk
|
||||
primary key,
|
||||
first_name varchar not null,
|
||||
last_name varchar not null,
|
||||
email varchar not null
|
||||
constraint users_email_key
|
||||
unique,
|
||||
password varchar not null,
|
||||
created_at timestamp default now()
|
||||
);
|
Reference in New Issue
Block a user