-- name: GetListLocations :many SELECT * FROM locations; -- name: GetLocationTag :many SELECT name FROM tags WHERE tags_type = 'location' AND target_id = $1 AND approved_by IS NOT NULL; -- name: UpdateLocationThumbnail :exec UPDATE locations SET thumbnail = $1 WHERE id = $2; -- name: UpdateLocationBusinessHours :exec UPDATE locations SET business_hours = $1, updated_at = now() WHERE id = $2;