-- Enable PG crypto helpers we need to store passwords
CREATE EXTENSION pgcrypto;
CREATETABLEusers (
id SERIALPRIMARY KEY,
name VARCHAR(64) NOT NULL,
email TEXTNOT NULL,
password TEXTNOT NULL
);
CREATEUNIQUE INDEXunique_user_nameON users(name);
CREATEUNIQUE INDEXunique_user_emailON users(email);