planetwars.dev/planetwars-server/migrations/2021-12-13-145111_users/up.sql
2021-12-30 11:45:59 +01:00

8 lines
No EOL
213 B
SQL

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