You've already forked agentic-coding-workflow
原型阶段
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
-- name: CreateRequirementPrototype :one
|
||||
INSERT INTO requirement_prototypes (id, requirement_id, version, content, note, created_by)
|
||||
VALUES ($1, $2, $3, $4, $5, $6)
|
||||
RETURNING id, requirement_id, version, content, note, created_by, created_at;
|
||||
|
||||
-- name: ListRequirementPrototypesByRequirement :many
|
||||
SELECT id, requirement_id, version, content, note, created_by, created_at
|
||||
FROM requirement_prototypes
|
||||
WHERE requirement_id = $1
|
||||
ORDER BY version ASC;
|
||||
|
||||
-- name: GetRequirementPrototypeByVersion :one
|
||||
SELECT id, requirement_id, version, content, note, created_by, created_at
|
||||
FROM requirement_prototypes
|
||||
WHERE requirement_id = $1 AND version = $2;
|
||||
|
||||
-- name: GetMaxRequirementPrototypeVersion :one
|
||||
SELECT COALESCE(MAX(version), 0)::int FROM requirement_prototypes
|
||||
WHERE requirement_id = $1;
|
||||
Reference in New Issue
Block a user