-- vim:fileencoding=utf-8:foldmethod=marker

--: Dish Object {{{

;-- name: CreateDish :one
INSERT INTO dishes(title, description, difficulty, thumbnail_s3_key)
VALUES($1, $2, $3, $4)
RETURNING *;

;-- name: GetDish :one
SELECT * FROM active_dishes
WHERE guid = $1
LIMIT 1;

--: }}}
