:3
This commit is contained in:
3
migrations/20250906104612_users.down.sql
Normal file
3
migrations/20250906104612_users.down.sql
Normal file
@@ -0,0 +1,3 @@
|
||||
-- Add down migration script here
|
||||
|
||||
DROP TABLE IF EXISTS users;
|
||||
12
migrations/20250906104612_users.up.sql
Normal file
12
migrations/20250906104612_users.up.sql
Normal file
@@ -0,0 +1,12 @@
|
||||
-- Add up migration script here
|
||||
|
||||
CREATE TABLE IF NOT EXISTS users (
|
||||
id BIGSERIAL PRIMARY KEY,
|
||||
email TEXT NOT NULL UNIQUE,
|
||||
verified_email BOOLEAN NOT NULL,
|
||||
username TEXT NOT NULL UNIQUE,
|
||||
pw_hash TEXT NOT NULL,
|
||||
pw_salt TEXT NOT NULL,
|
||||
pfp_id BIGINT NOT NULL
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user