2020-04-10 04:40:22 +02:00
|
|
|
-- name: CreateTaskGroup :one
|
|
|
|
INSERT INTO task_group (project_id, created_at, name, position)
|
|
|
|
VALUES($1, $2, $3, $4) RETURNING *;
|
|
|
|
|
|
|
|
-- name: GetTaskGroupsForProject :many
|
|
|
|
SELECT * FROM task_group WHERE project_id = $1;
|
|
|
|
|
|
|
|
-- name: GetAllTaskGroups :many
|
|
|
|
SELECT * FROM task_group;
|
2020-04-11 04:22:22 +02:00
|
|
|
|
|
|
|
-- name: GetTaskGroupByID :one
|
|
|
|
SELECT * FROM task_group WHERE task_group_id = $1;
|
2020-04-11 04:47:43 +02:00
|
|
|
|
|
|
|
-- name: UpdateTaskGroupLocation :one
|
|
|
|
UPDATE task_group SET position = $2 WHERE task_group_id = $1 RETURNING *;
|