|
| 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 | + |
1 | 39 | drop table if exists gestalt_persona; create table gestalt_persona (id serial primary key, name text, description text); |
2 | 40 | insert into gestalt_persona (name,description) values ('general','Use for a high-level overview with information meant to be understood by anyone.'); |
3 | 41 | 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