CREATE TABLE IF NOT EXISTS guilds (
  id BIGINT PRIMARY KEY NOT NULL,
  bot_id BIGINT NOT NULL,
  volume INTEGER NOT NULL
);
CREATE TABLE IF NOT EXISTS messages (
  id TEXT PRIMARY KEY NOT NULL,
  guild_id BIGINT NOT NULL,
  channel_id BIGINT NOT NULL,
  author_id BIGINT NOT NULL,
  created BIGINT NOT NULL,
  model TEXT NOT NULL,
  request TEXT NOT NULL,
  response TEXT NOT NULL,
  request_tags TEXT[] NOT NULL,
  response_tags TEXT[] NOT NULL
);
CREATE TABLE IF NOT EXISTS events (
  id UUID PRIMARY KEY NOT NULL,
  guild_id BIGINT NOT NULL,
  author_id BIGINT NOT NULL,
  title TEXT NOT NULL,
  date_time TIMESTAMP NOT NULL,
  description TEXT,
  rsvp BIGINT[] NOT NULL
);
