This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE EXTENSION IF NOT EXISTS pgcrypto; | |
CREATE TABLE IF NOT EXISTS | |
users ( | |
email TEXT PRIMARY KEY CHECK ( email ~* '^.+@.+\..+$' ), | |
pass TEXT NOT NULL CHECK (length(pass) < 256), | |
role NAME NOT NULL CHECK (length(role) < 256) | |
); | |
CREATE TABLE IF NOT EXISTS |