oficina / equipo Public

Clone
git clone https://amadan.net/oficina/equipo

Plain git — no account needed to clone.

Download

Download this file

1ALTER TABLE specialists ADD COLUMN team_id text NOT NULL DEFAULT "";
2ALTER TABLE specialists ADD COLUMN creator text NOT NULL DEFAULT "";
3ALTER TABLE specialists ADD COLUMN name text NOT NULL DEFAULT "";
4ALTER TABLE specialists ADD COLUMN icon text NOT NULL DEFAULT "";
5ALTER TABLE specialists ADD COLUMN role text NOT NULL DEFAULT "";
6ALTER TABLE specialists ADD COLUMN required numeric NOT NULL DEFAULT false;
7ALTER TABLE specialists ADD COLUMN archived numeric NOT NULL DEFAULT false;
8ALTER TABLE specialists ADD COLUMN allowed_models text NOT NULL DEFAULT "[]";
9ALTER TABLE specialists ADD COLUMN tools text NOT NULL DEFAULT "[]";
10ALTER TABLE specialists ADD COLUMN project_ids text NOT NULL DEFAULT "[]";
11ALTER TABLE specialists ADD COLUMN template_id text NOT NULL DEFAULT "";
12ALTER TABLE specialists ADD COLUMN template_version integer NOT NULL DEFAULT 0;
13ALTER TABLE specialists ADD COLUMN template_base text NOT NULL DEFAULT "{}";
14UPDATE specialists SET team_id=COALESCE((SELECT id FROM teams LIMIT 1),''), role=key, required=key IN ('engineering','review'), icon=CASE key WHEN 'product' THEN 'lightbulb' WHEN 'design' THEN 'pencil' WHEN 'copy' THEN 'type' WHEN 'engineering' THEN 'code' WHEN 'review' THEN 'check-circle' ELSE 'plus' END;
15CREATE TABLE specialist_requests (team_id text, principal text, operation text, resource text, request_id text, input_hash text, result text, PRIMARY KEY (team_id,principal,operation,resource,request_id));
16