naise_pos/db/query/merchant.sql

9 lines
150 B
MySQL
Raw Normal View History

2023-03-05 23:35:41 +07:00
-- name: GetMerchantById :one
SELECT * FROM merchants
WHERE id = $1;
-- name: GetMerchantByUserId :one
SELECT * FROM merchants
WHERE owner_id = $1;