 
 CREATE TABLE sessions (
   id         uuid PRIMARY KEY,
-  user_id    int  REFERENCES users(id),
+  user_id    int  REFERENCES users(id) ON DELETE CASCADE,
   ip_address inet NOT NULL,
   expired_at timestamp with time zone NOT NULL
                                       DEFAULT NOW() + INTERVAL '1 day',

CREATE TABLE pms (
  id         serial PRIMARY KEY,
  text       text   NOT NULL,
  convo_id   int    NOT NULL  REFERENCES convos(id) ON DELETE CASCADE,
  user_id    int    NOT NULL  REFERENCES users(id),
  ip_address inet   NULL,
  created_at timestamp with time zone NOT NULL  DEFAULT NOW(),
  updated_at timestamp with time zone NULL


CREATE TABLE forums (
  id              serial PRIMARY KEY,
  category_id     int NOT NULL  REFERENCES categories(id)  ON DELETE CASCADE,
  parent_forum_id int NULL  REFERENCES forums(id)  ON DELETE SET NULL,
  title           text NOT NULL,
  description     text NULL,
  pos             int NOT NULL,
