|
| 1 | +drop table if exists gestalt_vis_directive; |
| 2 | +CREATE TABLE gestalt_vis_directive ( |
| 3 | + id SERIAL PRIMARY KEY, |
| 4 | + name TEXT NOT NULL CHECK (name <> ''), |
| 5 | + UNIQUE (name) |
| 6 | + |
| 7 | +); |
| 8 | + |
| 9 | +INSERT INTO gestalt_vis_directive (name) VALUES ('bar-chart'); |
| 10 | +INSERT INTO gestalt_vis_directive (name) VALUES ('group-nodes'); |
| 11 | +INSERT INTO gestalt_vis_directive (name) VALUES ('visualization-standard'); |
| 12 | +INSERT INTO gestalt_vis_directive (name) VALUES ('tbd'); |
| 13 | +INSERT INTO gestalt_vis_directive (name) VALUES ('line-chart'); |
| 14 | +select * from gestalt_vis_directive; |
| 15 | + |
| 16 | +drop table if exists gestalt_vis; |
| 17 | +CREATE TABLE gestalt_vis ( |
| 18 | + id SERIAL PRIMARY KEY, |
| 19 | + vis_type_id INTEGER, |
| 20 | + vis_directive_id INTEGER REFERENCES gestalt_vis_directive(id), |
| 21 | + name TEXT NOT NULL CHECK (name <> ''), |
| 22 | + max_limit INTEGER NOT NULL, |
| 23 | + UNIQUE (name) |
| 24 | +); |
| 25 | + |
| 26 | +INSERT INTO gestalt_vis (vis_type_id, vis_directive_id, name, max_limit) VALUES |
| 27 | + (1, 1, 'bar chart', 100); |
| 28 | +INSERT INTO gestalt_vis (vis_type_id, vis_directive_id, name, max_limit) VALUES |
| 29 | + (5, 2, 'group nodes', 500); |
| 30 | +INSERT INTO gestalt_vis (vis_type_id, vis_directive_id, name, max_limit) VALUES |
| 31 | + (2, 4, 'tbd', 500); |
| 32 | +INSERT INTO gestalt_vis (vis_type_id, vis_directive_id, name, max_limit) VALUES |
| 33 | + (2, 5, 'spark line', 500); |
| 34 | +INSERT INTO gestalt_vis (vis_type_id, vis_directive_id, name, max_limit) VALUES |
| 35 | + (1, 1, 'column chart', 100); |
| 36 | +select * from gestalt_vis; |
| 37 | + |
1 | 38 | drop table if exists gestalt_persona; create table gestalt_persona (id serial primary key, name text, description text); |
2 | 39 | insert into gestalt_persona (name,description) values ('general','Use for a high-level overview with information meant to be understood by anyone.'); |
3 | 40 | 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