-- name: CreateReceptionOtherDocument :one
INSERT INTO reception_otherdocuments (           
     documentname,
     description,
     receptionform_id
 ) VALUES (
    $1,
    $2,
    $3
) 
RETURNING *;

-- name: SelectReceptionOtherDocument :many
SELECT * FROM reception_otherdocuments
WHERE receptionform_id = $1;

-- name: GetReceptionOtherDocument :one
SELECT * FROM reception_otherdocuments
WHERE id = $1;

-- name: DeleteReceptionOtherDocument :exec
DELETE FROM reception_otherdocuments WHERE id= $1;
