-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathschema.dump
69 lines (55 loc) · 1.68 KB
/
schema.dump
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
CREATE TABLE predictions (
id integer NOT NULL,
x integer NOT NULL,
y integer NOT NULL,
has_building boolean,
model integer,
completed boolean,
incorrect boolean
);
CREATE SEQUENCE predictions_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER SEQUENCE predictions_id_seq OWNED BY predictions.id;
CREATE SEQUENCE segmentation_training_tiles_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
CREATE TABLE segmentation_training_tiles (
id integer DEFAULT nextval('segmentation_training_tiles_id_seq'::regclass) NOT NULL,
x integer NOT NULL,
y integer NOT NULL,
useable boolean,
verified boolean,
dx integer,
dy integer
);
CREATE TABLE training_tiles (
id integer NOT NULL,
x integer NOT NULL,
y integer NOT NULL,
verified boolean,
has_building boolean
);
CREATE SEQUENCE training_tiles_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER SEQUENCE training_tiles_id_seq OWNED BY training_tiles.id;
ALTER TABLE ONLY predictions ALTER COLUMN id SET DEFAULT nextval('predictions_id_seq'::regclass);
ALTER TABLE ONLY training_tiles ALTER COLUMN id SET DEFAULT nextval('training_tiles_id_seq'::regclass);
ALTER TABLE ONLY predictions
ADD CONSTRAINT predictions_pkey PRIMARY KEY (id);
ALTER TABLE ONLY segmentation_training_tiles
ADD CONSTRAINT segmentation_training_tiles_pkey PRIMARY KEY (id);
ALTER TABLE ONLY training_tiles
ADD CONSTRAINT training_tiles_pkey PRIMARY KEY (id);
CREATE INDEX location ON training_tiles USING btree (y, x);
CREATE INDEX location_p ON predictions USING btree (x, y);