Create DB migrations for users table
This commit is contained in:
parent
b78d7d8598
commit
a614bda4ab
1
migrations/2024-01-17-032155_create_users_table/down.sql
Normal file
1
migrations/2024-01-17-032155_create_users_table/down.sql
Normal file
@ -0,0 +1 @@
|
||||
DROP TABLE users;
|
7
migrations/2024-01-17-032155_create_users_table/up.sql
Normal file
7
migrations/2024-01-17-032155_create_users_table/up.sql
Normal file
@ -0,0 +1,7 @@
|
||||
CREATE TABLE users (
|
||||
id SERIAL PRIMARY KEY UNIQUE NOT NULL,
|
||||
username VARCHAR UNIQUE NOT NULL,
|
||||
email VARCHAR UNIQUE NOT NULL,
|
||||
password VARCHAR NOT NULL,
|
||||
created_at TIMESTAMP NOT NULL DEFAULT NOW()
|
||||
);
|
Loading…
x
Reference in New Issue
Block a user