···107107 updated_at text not null
108108 );
109109110110+ create table if not exists pipelines (
111111+ id text primary key,
112112+ repo_did text not null,
113113+ commit_id text not null
114114+ );
115115+116116+ create table if not exists workflows (
117117+ id integer primary key autoincrement,
118118+ pipeline_id text not null,
119119+ name text not null,
120120+ status text not null default 'pending',
121121+122122+ unique(pipeline_id, id),
123123+ foreign key (pipeline_id) references pipelines(id) on delete cascade
124124+ );
125125+110126 create table if not exists migrations (
111127 id integer primary key autoincrement,
112128 name text unique