This commit is contained in:
2025-09-06 16:26:26 +03:00
parent cd99fea483
commit 81e68770c6
22 changed files with 1777 additions and 23 deletions

View File

@@ -0,0 +1,3 @@
-- Add down migration script here
DROP TABLE IF EXISTS users;

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