-- name: CreateTipoServico :one
INSERT INTO tipos_servicos (nome) VALUES ($1) RETURNING *;

-- name: ListTiposServicos :many
SELECT * FROM tipos_servicos ORDER BY nome;

-- name: GetTipoServicoByID :one
SELECT * FROM tipos_servicos WHERE id = $1;

-- name: UpdateTipoServico :one
UPDATE tipos_servicos SET nome = $2 WHERE id = $1 RETURNING *;

-- name: DeleteTipoServico :exec
DELETE FROM tipos_servicos WHERE id = $1;
