CREATE TABLE user_group (
id integer NOT NULL,
group_name character varying(255) NOT NULL,
is_admin boolean DEFAULT false NOT NULL,
allow_moderate boolean DEFAULT false NOT NULL,
allow_post boolean DEFAULT false NOT NULL
);
if (allow_moderate === true) ...
?