-- GABGOD line bank — distilled, ORIGINAL NPC lines (never verbatim corpus text).
-- Lives in discogs_full next to game_corpus (the source it distills from).
create schema if not exists gabgod;

create table if not exists gabgod.line_bank (
  id              bigserial primary key,
  persona         text        not null,
  situation       text        not null,
  line            text        not null,
  writer_model    text,
  source_post_ids bigint[]    default '{}',   -- retrieval provenance (style refs, not text source)
  source_forum    text,
  approved        boolean,                    -- null = unreviewed; John's eyeball gate
  created_at      timestamptz default now(),
  unique (persona, situation, line)
);

create index if not exists line_bank_persona_idx
  on gabgod.line_bank (persona, situation);
