9 lines
150 B
SQL
9 lines
150 B
SQL
-- name: GetMerchantById :one
|
|
SELECT * FROM merchants
|
|
WHERE id = $1;
|
|
|
|
-- name: GetMerchantByUserId :one
|
|
SELECT * FROM merchants
|
|
WHERE owner_id = $1;
|
|
|