Add accounts
This commit is contained in:
9
postgres/queries/accounts.sql
Normal file
9
postgres/queries/accounts.sql
Normal 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;
|
Reference in New Issue
Block a user