chore: 流水线模版初步

This commit is contained in:
xiaojunnuo
2025-06-19 18:17:35 +08:00
parent e11b3becfd
commit 26b395110c
13 changed files with 552 additions and 0 deletions
@@ -0,0 +1,15 @@
CREATE TABLE "pi_template"
(
"id" integer PRIMARY KEY AUTOINCREMENT NOT NULL,
"user_id" integer,
"pipeline_id" integer,
"title" varchar(1024),
"content" text,
"order" integer,
"disabled" boolean NOT NULL DEFAULT (false),
"create_time" datetime NOT NULL DEFAULT (CURRENT_TIMESTAMP),
"update_time" datetime NOT NULL DEFAULT (CURRENT_TIMESTAMP)
);
CREATE INDEX "index_template_user_id" ON "pi_template" ("user_id");
CREATE INDEX "index_template_pipeline_id" ON "pi_template" ("pipeline_id");