taskcafe/api/query/task_label.sql
2020-04-20 18:04:27 -05:00

7 lines
222 B
SQL

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