Download this file
| 1 | ALTER TABLE chat_turns ADD COLUMN dispatched_at datetime; |
| 2 | ALTER TABLE chat_turns ADD COLUMN timing text; |
| 3 | CREATE TABLE chat_projects (id text PRIMARY KEY, repo text, state text, added_by text, revision integer, created_at datetime, updated_at datetime); |
| 4 | CREATE UNIQUE INDEX chat_project_repo ON chat_projects(repo); |
| 5 | CREATE TABLE chat_cards (id text PRIMARY KEY, person text, kind text, state text, turn_id text, project_id text, question text, options text, choice text, answer_message text, revision integer, created_at datetime, updated_at datetime); |
| 6 | CREATE INDEX chat_card_person ON chat_cards(person); |
| 7 | CREATE INDEX chat_card_project ON chat_cards(project_id); |
| 8 | CREATE INDEX chat_card_answer ON chat_cards(answer_message); |
| 9 | CREATE TABLE chat_tool_calls (call_id text PRIMARY KEY, person text, turn_id text, name text, result text, created_at datetime); |
| 10 | |