Skip to content
This repository was archived by the owner on Aug 19, 2020. It is now read-only.

Commit 83b9305

Browse files
committed
add missing tables in create_all.sql script
1 parent 67b6233 commit 83b9305

1 file changed

Lines changed: 38 additions & 0 deletions

File tree

database/create_all.sql

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,41 @@
1+
drop table if exists gestalt_vis_directive;
2+
3+
CREATE TABLE gestalt_vis_directive (
4+
id SERIAL PRIMARY KEY,
5+
name TEXT NOT NULL CHECK (name <> ''),
6+
UNIQUE (name)
7+
8+
);
9+
10+
INSERT INTO gestalt_vis_directive (name) VALUES ('bar-chart');
11+
INSERT INTO gestalt_vis_directive (name) VALUES ('group-nodes');
12+
INSERT INTO gestalt_vis_directive (name) VALUES ('visualization-standard');
13+
INSERT INTO gestalt_vis_directive (name) VALUES ('tbd');
14+
INSERT INTO gestalt_vis_directive (name) VALUES ('line-chart');
15+
select * from gestalt_vis_directive;
16+
17+
drop table if exists gestalt_vis;
18+
CREATE TABLE gestalt_vis (
19+
id SERIAL PRIMARY KEY,
20+
vis_type_id INTEGER NOT NULL,
21+
name TEXT NOT NULL CHECK (name <> ''),
22+
directive TEXT NOT NULL CHECK (name <> ''),
23+
max_limit INTEGER NOT NULL,
24+
UNIQUE (name)
25+
);
26+
27+
INSERT INTO gestalt_vis (vis_type_id, name, directive, max_limit) VALUES
28+
(1, 'bar chart', 'bar-chart', 100);
29+
INSERT INTO gestalt_vis (vis_type_id, name, directive, max_limit) VALUES
30+
(5, 'group nodes', 'group-nodes', 500);
31+
INSERT INTO gestalt_vis (vis_type_id, name, directive, max_limit) VALUES
32+
(2, 'tbd', 'tbd', 500);
33+
INSERT INTO gestalt_vis (vis_type_id, name, directive, max_limit) VALUES
34+
(2, 'spark line', 'line-chart', 500);
35+
INSERT INTO gestalt_vis (vis_type_id, name, directive, max_limit) VALUES
36+
(1, 'column chart', 'bar-chart', 100);
37+
select * from gestalt_vis;
38+
139
drop table if exists gestalt_persona; create table gestalt_persona (id serial primary key, name text, description text);
240
insert into gestalt_persona (name,description) values ('general','Use for a high-level overview with information meant to be understood by anyone.');
341
insert into gestalt_persona (name,description) values ('corporate','Use for a high-level overview with information curated for helping you make high-level decisions.');

0 commit comments

Comments
 (0)