taskcafe/api/query/task_label.sql

7 lines
222 B
MySQL
Raw Normal View History

2020-04-20 05:02:55 +02:00
-- name: CreateTaskLabelForTask :one
2020-04-21 01:04:27 +02:00
INSERT INTO task_label (task_id, project_label_id, assigned_date)
2020-04-20 05:02:55 +02:00
VALUES ($1, $2, $3) RETURNING *;
-- name: GetTaskLabelsForTaskID :many
SELECT * FROM task_label WHERE task_id = $1;