16 lines
291 B
SQL
16 lines
291 B
SQL
-- name: CreateStockLogs :one
|
|
INSERT INTO stock_logs (
|
|
product_id,
|
|
merchant_id,
|
|
created_by,
|
|
transaction_id,
|
|
transaction_action_type,
|
|
transaction_description,
|
|
type,
|
|
selling_price,
|
|
purchase_price,
|
|
quantity
|
|
) VALUES (
|
|
$1, $2, $3, $4, $5 ,$6, $7, $8, $9, $10
|
|
)
|
|
RETURNING *; |