CREATE TYPE role AS ENUM ('student', 'teacher', 'admin');

CREATE TABLE users (
    id SERIAL PRIMARY KEY,
    role role NOT NULL,
    username varchar(255) UNIQUE NOT NULL,
    password bytea NOT NULL
);
