-- name: CreateSysPermission :one
INSERT INTO sys_permissions(type,code)
VALUES ($1,$2) RETURNING id;

-- name: UpdateSysPermission :exec
UPDATE sys_permissions
SET code = $2
WHERE id = $1;

-- name: DeleteSysPermission :exec
DELETE
FROM sys_permissions
WHERE id = $1;

