Add accounts

This commit is contained in:
2021-12-02 10:52:58 +00:00
parent e465b961a5
commit f760f9b855
6 changed files with 126 additions and 0 deletions

View File

@ -0,0 +1,9 @@
-- name: CreateAccount :one
INSERT INTO accounts
(name)
VALUES ($1)
RETURNING *;
-- name: GetAccounts :many
SELECT accounts.* FROM accounts
WHERE accounts.budget_id = $1;