feat: workflows route for user

This commit is contained in:
GitBluub
2022-02-21 15:11:24 +01:00
parent 8ccc631bad
commit 56a5d75d06
5 changed files with 30 additions and 13 deletions
+6 -2
View File
@@ -10,7 +10,11 @@ CREATE TABLE IF NOT EXISTS pipelines (
id SERIAL PRIMARY KEY,
name VARCHAR(255) NOT NULL,
type VARCHAR(255) NOT NULL,
params JSONB NOT NULL
params JSONB NOT NULL,
user_id INTEGER NOT NULL,
CONSTRAINT fk_user
FOREIGN KEY (user_id)
REFERENCES users(id)
);
CREATE TABLE IF NOT EXISTS reactions (
@@ -22,4 +26,4 @@ CREATE TABLE IF NOT EXISTS reactions (
CONSTRAINT fk_pipeline
FOREIGN KEY (pipeline_id)
REFERENCES pipelines(id)
);
);