oficina / equipo Public

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

Plain git — no account needed to clone.

Download

Download this file

1-- Places (spec 2026-11-26-places-config.md, slice 1, protocol 31): the
2-- team's confirmed destinations and each project's binding to one. Team
3-- records, the same for every member. A binding holds the site's app and
4-- the metadata of the deploy key its runner holds, never the secret.
5CREATE TABLE chat_places (id text PRIMARY KEY, kind text, adapter text, console text, account_sqid text, account_name text, state text, revision integer, proposed_by text, proposed_at datetime, confirmed_by text, confirmed_at datetime, created_at datetime, updated_at datetime);
6CREATE UNIQUE INDEX chat_place_destination ON chat_places(kind, adapter, console, account_sqid);
7CREATE TABLE chat_project_places (id text PRIMARY KEY, project_id text, kind text, place_id text, app text, revision integer, app_created_at datetime, app_created_step text, deploy_name text, deploy_runner text, deploy_minted_by text, deploy_minted_at datetime, deploy_step text, created_at datetime, updated_at datetime);
8CREATE UNIQUE INDEX chat_project_place_kind ON chat_project_places(project_id, kind);
9-- Every project's minted app is kept as its site binding's app, with no
10-- place: an unplaced binding confirms nothing and created nothing.
11INSERT INTO chat_project_places (id, project_id, kind, place_id, app, revision, created_at, updated_at) SELECT 'pp_' || id, id, 'site', '', site_app, 1, created_at, updated_at FROM chat_projects WHERE site_app IS NOT NULL AND site_app != '';
12-- A place card's proposal (wire.CardPlaceView JSON with each candidate's
13-- hash); '' on every other card.
14ALTER TABLE chat_cards ADD COLUMN place text;
15