mirror of
https://github.com/coder/coder.git
synced 2025-07-15 22:20:27 +00:00
feat: workspace quotas (#4184)
This commit is contained in:
@ -74,6 +74,16 @@ WHERE
|
||||
GROUP BY
|
||||
template_id;
|
||||
|
||||
-- name: GetWorkspaceCountByUserID :one
|
||||
SELECT
|
||||
COUNT(id)
|
||||
FROM
|
||||
workspaces
|
||||
WHERE
|
||||
owner_id = @owner_id
|
||||
-- Ignore deleted workspaces
|
||||
AND deleted != true;
|
||||
|
||||
-- name: InsertWorkspace :one
|
||||
INSERT INTO
|
||||
workspaces (
|
||||
|
Reference in New Issue
Block a user