aboutsummaryrefslogtreecommitdiff
path: root/backend/migrations/2021-12-13-145111_users/up.sql
blob: f35e7183029281b4527981bf613c6255fbef078a (plain)
1
2
3
4
5
6
7
8
CREATE TABLE users(
    id SERIAL PRIMARY KEY,
    username VARCHAR(52) NOT NULL,
    password_salt BYTEA NOT NULL,
    password_hash BYTEA NOT NULL
);

CREATE UNIQUE INDEX users_username_index ON users(username);