<commit_before>CREATE TABLE IF NOT EXISTS zn_data.event_type (
  et_name varchar(255) NOT NULL PRIMARY KEY CHECK (et_name <> ''),
  et_event_type_object jsonb NOT NULL,
  CHECK (et_event_type_object->>'name' = et_name)
);

CREATE INDEX ON zn_data.event_type USING gin (et_event_type_object);<commit_msg>aruha-249 add topic column to event type<commit_after>CREATE TABLE IF NOT EXISTS zn_data.event_type (
  et_name varchar(255) NOT NULL PRIMARY KEY CHECK (et_name <> ''),
  et_topic varchar(255) NOT NULL,
  et_event_type_object jsonb NOT NULL,
  CHECK (et_event_type_object->>'name' = et_name)
);

CREATE INDEX ON zn_data.event_type USING gin (et_event_type_object);

CREATE UNIQUE INDEX idx_et_topic ON zn_data.event_type (et_topic);
{'fraction_non_alphanumeric': 0.08979591836734693, 'fraction_numerical': 0.0163265306122449, 'mean_word_length': 5.878504672897196, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, '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': '3133137', 'n_tokens_mistral': 277, 'n_tokens_neox': 262, 'n_words': 72}