Create DB migrations for users table

This commit is contained in:
Ethan Girouard 2024-01-16 22:25:17 -05:00
parent b78d7d8598
commit a614bda4ab
Signed by: eta357
GPG Key ID: 7BCDC36DFD11C146
2 changed files with 8 additions and 0 deletions

View File

@ -0,0 +1 @@
DROP TABLE users;

View 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()
);