From 35299fdf5244c7cb82595da93a7c7751728c7461 Mon Sep 17 00:00:00 2001 From: Seongmin Lee Date: Sat, 20 Jun 2026 19:38:27 +0900 Subject: [PATCH] spindle: spindle-owned data Signed-off-by: Seongmin Lee --- spindle/db/db.go | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/spindle/db/db.go b/spindle/db/db.go index d6ac2c72..24b2c1e9 100644 --- a/spindle/db/db.go +++ b/spindle/db/db.go @@ -107,6 +107,22 @@ func Make(ctx context.Context, dbPath string) (*DB, error) { updated_at text not null ); + create table if not exists pipelines ( + id text primary key, + repo_did text not null, + commit_id text not null + ); + + create table if not exists workflows ( + id integer primary key autoincrement, + pipeline_id text not null, + name text not null, + status text not null default 'pending', + + unique(pipeline_id, id), + foreign key (pipeline_id) references pipelines(id) on delete cascade + ); + create table if not exists migrations ( id integer primary key autoincrement, name text unique -- 2.51.2