taskcafe/api/query/task_label.sql
2020-04-19 22:02:55 -05:00

7 lines
220 B
SQL

-- name: CreateTaskLabelForTask :one
INSERT INTO task_label (task_id, label_color_id, assigned_date)
VALUES ($1, $2, $3) RETURNING *;
-- name: GetTaskLabelsForTaskID :many
SELECT * FROM task_label WHERE task_id = $1;