chore: split queries.sql into files by table (#762)

This commit is contained in:
Colin Adler
2022-04-01 15:45:23 -05:00
committed by GitHub
parent 2b1a0ee126
commit fd523100bf
27 changed files with 2816 additions and 2770 deletions
@@ -12,7 +12,8 @@ CREATE TABLE workspaces (
);
-- Enforces no active workspaces have the same name.
CREATE UNIQUE INDEX ON workspaces (owner_id, name) WHERE deleted = FALSE;
CREATE UNIQUE INDEX ON workspaces USING btree (owner_id, name) WHERE deleted = FALSE;
CREATE UNIQUE INDEX idx_workspaces_name_lower ON workspaces USING btree (lower(name));
CREATE TYPE workspace_transition AS ENUM (
'start',