-- Dynamic specialists slice 1: the coordinator's continuation after an
2
-- owner's Add on a specialist card for one project. One turn per card
3
-- (the card is the key), bound to that card's specialist and project, the
4
-- proposing turn's messages it carries (words, JSON) and the one task it
5
-- records (task_id, "" until then). A team record; no existing row
6
-- changes.
7
CREATE TABLE chat_specialist_turns (card_id text PRIMARY KEY, turn_id text, person text, specialist_id text, project_id text, asked_turn text, words text NOT NULL DEFAULT "", task_id text NOT NULL DEFAULT "", created_at datetime);
8
CREATE UNIQUE INDEX chat_specialist_turn ON chat_specialist_turns(turn_id);