Feat: Backend scaffolding and local dev stack
This commit is contained in:
15
Backend/db/queries/organizations.sql
Normal file
15
Backend/db/queries/organizations.sql
Normal file
@@ -0,0 +1,15 @@
|
||||
-- name: ListOrganizations :many
|
||||
SELECT id, name, slug, created_at, updated_at
|
||||
FROM organizations
|
||||
ORDER BY created_at DESC;
|
||||
|
||||
-- name: CreateOrganization :one
|
||||
INSERT INTO organizations (name, slug)
|
||||
VALUES ($1, $2)
|
||||
RETURNING id, name, slug, created_at, updated_at;
|
||||
|
||||
-- name: ListWorkspacesByOrganization :many
|
||||
SELECT id, organization_id, name, slug, created_at, updated_at
|
||||
FROM workspaces
|
||||
WHERE organization_id = $1
|
||||
ORDER BY created_at DESC;
|
||||
Reference in New Issue
Block a user