<commit_before>CREATE TABLE ${schema~}.${table~}(
  id serial PRIMARY KEY,
  body jsonb NOT NULL,
  search tsvector,
  created_at timestamptz DEFAULT now()
);
CREATE INDEX idx_${index^} ON ${schema~}.${table~} USING GIN(body jsonb_path_ops);
CREATE INDEX idx_search_${index^} ON ${schema~}.${table~} USING GIN(search);<commit_msg>docs: comments on document tables (#535)<commit_after>CREATE TABLE ${schema~}.${table~}(
  id serial PRIMARY KEY,
  body jsonb NOT NULL,
  search tsvector,
  created_at timestamptz DEFAULT now()
);
CREATE INDEX idx_${index^} ON ${schema~}.${table~} USING GIN(body jsonb_path_ops);
CREATE INDEX idx_search_${index^} ON ${schema~}.${table~} USING GIN(search);

COMMENT ON TABLE ${schema~}.${table~} IS 'A document table generated with Massive.js.';
COMMENT ON COLUMN ${schema~}.${table~}.id IS 'The document primary key. Will be added to the body when retrieved using Massive document functions';
COMMENT ON COLUMN ${schema~}.${table~}.body IS 'The document body, stored without primary key.';
COMMENT ON COLUMN ${schema~}.${table~}.search IS 'Search vector for full-text search support.';
COMMENT ON COLUMN ${schema~}.${table~}.created_at IS 'Timestamp for document creation.';
{'fraction_non_alphanumeric': 0.14925373134328357, 'fraction_numerical': 0.0024875621890547263, 'mean_word_length': 5.976878612716763, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1857242', 'n_tokens_mistral': 387, 'n_tokens_neox': 383, 'n_words': 132}