feat: post on workflow working to create pipeline

This commit is contained in:
Bluub
2022-02-09 18:07:57 +01:00
parent 9168a65301
commit 6377dec41d
3 changed files with 49 additions and 8 deletions
+11
View File
@@ -10,4 +10,15 @@ CREATE TABLE IF NOT EXISTS pipelines (
name VARCHAR(255) NOT NULL,
type VARCHAR(255) NOT NULL,
params JSONB NOT NULL
);
CREATE TABLE IF NOT EXISTS reactions (
id SERIAL PRIMARY KEY,
type VARCHAR(255) NOT NULL,
params JSONB NOT NULL,
pipeline_id INTEGER NOT NULL,
react_order INTEGER NOT NULL,
CONSTRAINT fk_pipeline
FOREIGN KEY (pipeline_id)
REFERENCES pipelines(id)
);