Skip to content

Commit c7e8d4e

Browse files
committed
Add schema
1 parent 028a4ed commit c7e8d4e

File tree

3 files changed

+50
-0
lines changed

3 files changed

+50
-0
lines changed

coderd/database/dump.sql

+29
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

coderd/database/migrations/000055_parameters.down.sql

Whitespace-only changes.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
CREATE TABLE template_version_parameters (
2+
template_version_id uuid not null references template_versions (id) on delete cascade,
3+
name text not null,
4+
description text not null,
5+
type text not null,
6+
immutable boolean not null,
7+
default_value text not null,
8+
icon text not null,
9+
options jsonb not null default '[]'::jsonb,
10+
validation_regex text,
11+
validation_min integer,
12+
validation_max integer,
13+
unique (template_version_id, name)
14+
);
15+
16+
CREATE TABLE workspace_parameters (
17+
workspace_id uuid not null,
18+
name text not null,
19+
value text not null,
20+
unique (workspace_id, name)
21+
);

0 commit comments

Comments
 (0)