naise_pos/db/query/merchant.sql
2023-03-05 23:35:41 +07:00

9 lines
150 B
SQL

-- name: GetMerchantById :one
SELECT * FROM merchants
WHERE id = $1;
-- name: GetMerchantByUserId :one
SELECT * FROM merchants
WHERE owner_id = $1;