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