CREATE TABLE IF NOT EXISTS roles (
    id BIGSERIAL PRIMARY KEY,
    name VARCHAR(255) NOT NULL UNIQUE,
    level INT NOT NULL DEFAULT 1,
    description TEXT
);

INSERT INTO 
    roles (name, level, description)
VALUES (
'user',
1,
'User'
);

INSERT INTO 
    roles (name, level, description)
VALUES (
'moderator',
2,
'Moderator'
);

INSERT INTO 
    roles (name, level, description) 
VALUES (
'admin', 
3, 
'Administrator'
);