Implement backend
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2022-09-11 21:10:04 +00:00
parent bae9f030b2
commit 2b15231ed1
4 changed files with 75 additions and 0 deletions

View File

@ -8,6 +8,11 @@ RETURNING *;
SELECT category_groups.* FROM category_groups
WHERE category_groups.budget_id = $1;
-- name: GetCategoryGroupByName :one
SELECT category_groups.* FROM category_groups
WHERE category_groups.budget_id = $1
AND category_groups.name = $2;
-- name: CreateCategory :one
INSERT INTO categories
(name, category_group_id)