-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmodel-r.sql
2786 lines (2340 loc) · 211 KB
/
model-r.sql
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
--
-- PostgreSQL database dump
--
-- Dumped from database version 9.4.9
-- Dumped by pg_dump version 9.5.5
-- Started on 2017-08-10 15:31:00
SET statement_timeout = 0;
SET lock_timeout = 0;
SET client_encoding = 'UTF8';
SET standard_conforming_strings = on;
SET check_function_bodies = false;
SET client_min_messages = warning;
SET row_security = off;
--
-- TOC entry 13 (class 2615 OID 1280199180)
-- Name: modelr; Type: SCHEMA; Schema: -; Owner: -
--
CREATE SCHEMA modelr;
SET search_path = modelr, pg_catalog;
SET default_with_oids = false;
--
-- TOC entry 799 (class 1259 OID 1306542632)
-- Name: algorithm; Type: TABLE; Schema: modelr; Owner: -
--
CREATE TABLE algorithm (
idalgorithm integer NOT NULL,
algorithm character varying(200),
description character varying(5000)
);
--
-- TOC entry 798 (class 1259 OID 1306542630)
-- Name: algorithm_idalgorithm_seq; Type: SEQUENCE; Schema: modelr; Owner: -
--
CREATE SEQUENCE algorithm_idalgorithm_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
--
-- TOC entry 6000 (class 0 OID 0)
-- Dependencies: 798
-- Name: algorithm_idalgorithm_seq; Type: SEQUENCE OWNED BY; Schema: modelr; Owner: -
--
ALTER SEQUENCE algorithm_idalgorithm_seq OWNED BY algorithm.idalgorithm;
--
-- TOC entry 807 (class 1259 OID 1353790995)
-- Name: datasource; Type: TABLE; Schema: modelr; Owner: -
--
CREATE TABLE datasource (
iddatasource integer NOT NULL,
datasource character varying(100)
);
--
-- TOC entry 806 (class 1259 OID 1353790993)
-- Name: datasource_iddatasource_seq; Type: SEQUENCE; Schema: modelr; Owner: -
--
CREATE SEQUENCE datasource_iddatasource_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
--
-- TOC entry 6001 (class 0 OID 0)
-- Dependencies: 806
-- Name: datasource_iddatasource_seq; Type: SEQUENCE OWNED BY; Schema: modelr; Owner: -
--
ALTER SEQUENCE datasource_iddatasource_seq OWNED BY datasource.iddatasource;
--
-- TOC entry 795 (class 1259 OID 1284566631)
-- Name: experiment; Type: TABLE; Schema: modelr; Owner: -
--
CREATE TABLE experiment (
idexperiment integer NOT NULL,
idproject integer,
name character varying(200),
description text,
num_partition integer,
projection boolean,
datetime_inicio timestamp with time zone,
datetime_fim timestamp with time zone,
idstatusexperiment integer,
extent_model character varying(100),
extent_projection character varying(100),
buffer numeric(10,2),
idpartitiontype integer,
num_points integer,
tss numeric(10,2),
iduser integer
);
--
-- TOC entry 794 (class 1259 OID 1284566629)
-- Name: experiment_idexperimento_seq; Type: SEQUENCE; Schema: modelr; Owner: -
--
CREATE SEQUENCE experiment_idexperimento_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
--
-- TOC entry 6002 (class 0 OID 0)
-- Dependencies: 794
-- Name: experiment_idexperimento_seq; Type: SEQUENCE OWNED BY; Schema: modelr; Owner: -
--
ALTER SEQUENCE experiment_idexperimento_seq OWNED BY experiment.idexperiment;
--
-- TOC entry 818 (class 1259 OID 1539928038)
-- Name: experiment_use_algorithm; Type: TABLE; Schema: modelr; Owner: -
--
CREATE TABLE experiment_use_algorithm (
idexperiment_use_algorithm integer NOT NULL,
idalgorithm integer,
idexperiment integer
);
--
-- TOC entry 817 (class 1259 OID 1539928036)
-- Name: experiment_use_algorithm_idexperiment_use_algorithm_seq; Type: SEQUENCE; Schema: modelr; Owner: -
--
CREATE SEQUENCE experiment_use_algorithm_idexperiment_use_algorithm_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
--
-- TOC entry 6003 (class 0 OID 0)
-- Dependencies: 817
-- Name: experiment_use_algorithm_idexperiment_use_algorithm_seq; Type: SEQUENCE OWNED BY; Schema: modelr; Owner: -
--
ALTER SEQUENCE experiment_use_algorithm_idexperiment_use_algorithm_seq OWNED BY experiment_use_algorithm.idexperiment_use_algorithm;
--
-- TOC entry 821 (class 1259 OID 1611482426)
-- Name: experiment_use_raster; Type: TABLE; Schema: modelr; Owner: -
--
CREATE TABLE experiment_use_raster (
idexperiment_use_raster integer NOT NULL,
idexperiment integer,
idraster integer
);
--
-- TOC entry 820 (class 1259 OID 1611482424)
-- Name: experiment_use_raster_idexperiment_use_raster_seq; Type: SEQUENCE; Schema: modelr; Owner: -
--
CREATE SEQUENCE experiment_use_raster_idexperiment_use_raster_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
--
-- TOC entry 6004 (class 0 OID 0)
-- Dependencies: 820
-- Name: experiment_use_raster_idexperiment_use_raster_seq; Type: SEQUENCE OWNED BY; Schema: modelr; Owner: -
--
ALTER SEQUENCE experiment_use_raster_idexperiment_use_raster_seq OWNED BY experiment_use_raster.idexperiment_use_raster;
--
-- TOC entry 805 (class 1259 OID 1353790987)
-- Name: occurrence; Type: TABLE; Schema: modelr; Owner: -
--
CREATE TABLE occurrence (
idoccurrence integer NOT NULL,
idexperiment integer,
iddatasource integer,
lat numeric(10,6),
long numeric(10,6),
taxon character varying(200),
collector character varying(100),
collectnumber character varying(20),
server character varying(100),
path character varying(100),
file character varying(100),
idstatusoccurrence integer,
lat2 numeric(10,6),
long2 numeric(10,6),
checked boolean DEFAULT false,
country character varying(100),
majorarea character varying(100),
minorarea character varying(100)
);
--
-- TOC entry 804 (class 1259 OID 1353790985)
-- Name: occurrence_idoccurrence_seq; Type: SEQUENCE; Schema: modelr; Owner: -
--
CREATE SEQUENCE occurrence_idoccurrence_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
--
-- TOC entry 6005 (class 0 OID 0)
-- Dependencies: 804
-- Name: occurrence_idoccurrence_seq; Type: SEQUENCE OWNED BY; Schema: modelr; Owner: -
--
ALTER SEQUENCE occurrence_idoccurrence_seq OWNED BY occurrence.idoccurrence;
--
-- TOC entry 803 (class 1259 OID 1306542651)
-- Name: partitiontype; Type: TABLE; Schema: modelr; Owner: -
--
CREATE TABLE partitiontype (
idpartitiontype integer NOT NULL,
partitiontype character varying(100)
);
--
-- TOC entry 802 (class 1259 OID 1306542649)
-- Name: partitiontype_idpartitiontype_seq; Type: SEQUENCE; Schema: modelr; Owner: -
--
CREATE SEQUENCE partitiontype_idpartitiontype_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
--
-- TOC entry 6006 (class 0 OID 0)
-- Dependencies: 802
-- Name: partitiontype_idpartitiontype_seq; Type: SEQUENCE OWNED BY; Schema: modelr; Owner: -
--
ALTER SEQUENCE partitiontype_idpartitiontype_seq OWNED BY partitiontype.idpartitiontype;
--
-- TOC entry 785 (class 1259 OID 1280199241)
-- Name: periodo; Type: TABLE; Schema: modelr; Owner: -
--
CREATE TABLE periodo (
idperiodo integer NOT NULL,
periodo character varying(100)
);
--
-- TOC entry 784 (class 1259 OID 1280199239)
-- Name: periodo_idperiodo_seq; Type: SEQUENCE; Schema: modelr; Owner: -
--
CREATE SEQUENCE periodo_idperiodo_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
--
-- TOC entry 6007 (class 0 OID 0)
-- Dependencies: 784
-- Name: periodo_idperiodo_seq; Type: SEQUENCE OWNED BY; Schema: modelr; Owner: -
--
ALTER SEQUENCE periodo_idperiodo_seq OWNED BY periodo.idperiodo;
--
-- TOC entry 793 (class 1259 OID 1284566275)
-- Name: project; Type: TABLE; Schema: modelr; Owner: -
--
CREATE TABLE project (
idproject integer NOT NULL,
description character varying(200),
project character varying(200),
idusuario integer
);
--
-- TOC entry 792 (class 1259 OID 1284566273)
-- Name: project_idproject_seq; Type: SEQUENCE; Schema: modelr; Owner: -
--
CREATE SEQUENCE project_idproject_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
--
-- TOC entry 6008 (class 0 OID 0)
-- Dependencies: 792
-- Name: project_idproject_seq; Type: SEQUENCE OWNED BY; Schema: modelr; Owner: -
--
ALTER SEQUENCE project_idproject_seq OWNED BY project.idproject;
--
-- TOC entry 787 (class 1259 OID 1280199257)
-- Name: raster; Type: TABLE; Schema: modelr; Owner: -
--
CREATE TABLE raster (
idraster integer NOT NULL,
raster character varying(200),
idsource integer
);
--
-- TOC entry 786 (class 1259 OID 1280199255)
-- Name: raster_idraster_seq; Type: SEQUENCE; Schema: modelr; Owner: -
--
CREATE SEQUENCE raster_idraster_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
--
-- TOC entry 6009 (class 0 OID 0)
-- Dependencies: 786
-- Name: raster_idraster_seq; Type: SEQUENCE OWNED BY; Schema: modelr; Owner: -
--
ALTER SEQUENCE raster_idraster_seq OWNED BY raster.idraster;
--
-- TOC entry 789 (class 1259 OID 1280199265)
-- Name: situacaousuario; Type: TABLE; Schema: modelr; Owner: -
--
CREATE TABLE situacaousuario (
idsituacaousuario integer NOT NULL,
situacaousuario character varying(100)
);
--
-- TOC entry 788 (class 1259 OID 1280199263)
-- Name: situacaousuario_idsituacaousuario_seq; Type: SEQUENCE; Schema: modelr; Owner: -
--
CREATE SEQUENCE situacaousuario_idsituacaousuario_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
--
-- TOC entry 6010 (class 0 OID 0)
-- Dependencies: 788
-- Name: situacaousuario_idsituacaousuario_seq; Type: SEQUENCE OWNED BY; Schema: modelr; Owner: -
--
ALTER SEQUENCE situacaousuario_idsituacaousuario_seq OWNED BY situacaousuario.idsituacaousuario;
--
-- TOC entry 801 (class 1259 OID 1306542643)
-- Name: source; Type: TABLE; Schema: modelr; Owner: -
--
CREATE TABLE source (
idsource integer NOT NULL,
source character varying(150)
);
--
-- TOC entry 800 (class 1259 OID 1306542641)
-- Name: source_idsource_seq; Type: SEQUENCE; Schema: modelr; Owner: -
--
CREATE SEQUENCE source_idsource_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
--
-- TOC entry 6011 (class 0 OID 0)
-- Dependencies: 800
-- Name: source_idsource_seq; Type: SEQUENCE OWNED BY; Schema: modelr; Owner: -
--
ALTER SEQUENCE source_idsource_seq OWNED BY source.idsource;
--
-- TOC entry 829 (class 1259 OID 1706177588)
-- Name: statusexperiment; Type: TABLE; Schema: modelr; Owner: -
--
CREATE TABLE statusexperiment (
idstatusexperiment integer NOT NULL,
statusexperiment character varying(100)
);
--
-- TOC entry 828 (class 1259 OID 1706177586)
-- Name: statusexperiment_idstatusexperiment_seq; Type: SEQUENCE; Schema: modelr; Owner: -
--
CREATE SEQUENCE statusexperiment_idstatusexperiment_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
--
-- TOC entry 6012 (class 0 OID 0)
-- Dependencies: 828
-- Name: statusexperiment_idstatusexperiment_seq; Type: SEQUENCE OWNED BY; Schema: modelr; Owner: -
--
ALTER SEQUENCE statusexperiment_idstatusexperiment_seq OWNED BY statusexperiment.idstatusexperiment;
--
-- TOC entry 813 (class 1259 OID 1426642196)
-- Name: statusoccurrence; Type: TABLE; Schema: modelr; Owner: -
--
CREATE TABLE statusoccurrence (
statusoccurrence character varying(100) NOT NULL,
usefull boolean,
idstatusoccurrence integer NOT NULL,
pathicon character varying(100)
);
--
-- TOC entry 814 (class 1259 OID 1426642202)
-- Name: statusoccurrence_idstatusoccurrence_seq; Type: SEQUENCE; Schema: modelr; Owner: -
--
CREATE SEQUENCE statusoccurrence_idstatusoccurrence_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
--
-- TOC entry 6013 (class 0 OID 0)
-- Dependencies: 814
-- Name: statusoccurrence_idstatusoccurrence_seq; Type: SEQUENCE OWNED BY; Schema: modelr; Owner: -
--
ALTER SEQUENCE statusoccurrence_idstatusoccurrence_seq OWNED BY statusoccurrence.idstatusoccurrence;
--
-- TOC entry 831 (class 1259 OID 1710705642)
-- Name: statususer; Type: TABLE; Schema: modelr; Owner: -
--
CREATE TABLE statususer (
idstatususer integer NOT NULL,
statususer character varying(100)
);
--
-- TOC entry 830 (class 1259 OID 1710705640)
-- Name: statususer_idstatususer_seq; Type: SEQUENCE; Schema: modelr; Owner: -
--
CREATE SEQUENCE statususer_idstatususer_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
--
-- TOC entry 6014 (class 0 OID 0)
-- Dependencies: 830
-- Name: statususer_idstatususer_seq; Type: SEQUENCE OWNED BY; Schema: modelr; Owner: -
--
ALTER SEQUENCE statususer_idstatususer_seq OWNED BY statususer.idstatususer;
--
-- TOC entry 816 (class 1259 OID 1435838969)
-- Name: tipousuario; Type: TABLE; Schema: modelr; Owner: -
--
CREATE TABLE tipousuario (
idtipousuario integer NOT NULL,
tipousuario character varying(100)
);
--
-- TOC entry 815 (class 1259 OID 1435838967)
-- Name: tipousuario_idtipousuario_seq; Type: SEQUENCE; Schema: modelr; Owner: -
--
CREATE SEQUENCE tipousuario_idtipousuario_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
--
-- TOC entry 6015 (class 0 OID 0)
-- Dependencies: 815
-- Name: tipousuario_idtipousuario_seq; Type: SEQUENCE OWNED BY; Schema: modelr; Owner: -
--
ALTER SEQUENCE tipousuario_idtipousuario_seq OWNED BY tipousuario.idtipousuario;
--
-- TOC entry 833 (class 1259 OID 1710705662)
-- Name: user; Type: TABLE; Schema: modelr; Owner: -
--
CREATE TABLE "user" (
iduser integer NOT NULL,
name character varying(100),
login character varying(100) NOT NULL,
password character varying(50),
email character varying(150) NOT NULL,
idstatususer integer NOT NULL,
idusertype integer
);
--
-- TOC entry 832 (class 1259 OID 1710705660)
-- Name: user_iduser_seq; Type: SEQUENCE; Schema: modelr; Owner: -
--
CREATE SEQUENCE user_iduser_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
--
-- TOC entry 6016 (class 0 OID 0)
-- Dependencies: 832
-- Name: user_iduser_seq; Type: SEQUENCE OWNED BY; Schema: modelr; Owner: -
--
ALTER SEQUENCE user_iduser_seq OWNED BY "user".iduser;
--
-- TOC entry 835 (class 1259 OID 1710705670)
-- Name: usertype; Type: TABLE; Schema: modelr; Owner: -
--
CREATE TABLE usertype (
idusertype integer NOT NULL,
usertype character varying(100)
);
--
-- TOC entry 834 (class 1259 OID 1710705668)
-- Name: usertype_idusertype_seq; Type: SEQUENCE; Schema: modelr; Owner: -
--
CREATE SEQUENCE usertype_idusertype_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
--
-- TOC entry 6017 (class 0 OID 0)
-- Dependencies: 834
-- Name: usertype_idusertype_seq; Type: SEQUENCE OWNED BY; Schema: modelr; Owner: -
--
ALTER SEQUENCE usertype_idusertype_seq OWNED BY usertype.idusertype;
--
-- TOC entry 791 (class 1259 OID 1280199291)
-- Name: usuario; Type: TABLE; Schema: modelr; Owner: -
--
CREATE TABLE usuario (
idusuario integer NOT NULL,
nome character varying(100),
login character varying(100) NOT NULL,
senha character varying(50),
email character varying(150) NOT NULL,
idsituacaousuario integer NOT NULL,
datacadastro date,
idtipousuario integer NOT NULL
);
--
-- TOC entry 790 (class 1259 OID 1280199289)
-- Name: usuario_idusuario_seq; Type: SEQUENCE; Schema: modelr; Owner: -
--
CREATE SEQUENCE usuario_idusuario_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
--
-- TOC entry 6018 (class 0 OID 0)
-- Dependencies: 790
-- Name: usuario_idusuario_seq; Type: SEQUENCE OWNED BY; Schema: modelr; Owner: -
--
ALTER SEQUENCE usuario_idusuario_seq OWNED BY usuario.idusuario;
--
-- TOC entry 5691 (class 2604 OID 1306542635)
-- Name: idalgorithm; Type: DEFAULT; Schema: modelr; Owner: -
--
ALTER TABLE ONLY algorithm ALTER COLUMN idalgorithm SET DEFAULT nextval('algorithm_idalgorithm_seq'::regclass);
--
-- TOC entry 5696 (class 2604 OID 1353790998)
-- Name: iddatasource; Type: DEFAULT; Schema: modelr; Owner: -
--
ALTER TABLE ONLY datasource ALTER COLUMN iddatasource SET DEFAULT nextval('datasource_iddatasource_seq'::regclass);
--
-- TOC entry 5690 (class 2604 OID 1284566634)
-- Name: idexperiment; Type: DEFAULT; Schema: modelr; Owner: -
--
ALTER TABLE ONLY experiment ALTER COLUMN idexperiment SET DEFAULT nextval('experiment_idexperimento_seq'::regclass);
--
-- TOC entry 5699 (class 2604 OID 1539928041)
-- Name: idexperiment_use_algorithm; Type: DEFAULT; Schema: modelr; Owner: -
--
ALTER TABLE ONLY experiment_use_algorithm ALTER COLUMN idexperiment_use_algorithm SET DEFAULT nextval('experiment_use_algorithm_idexperiment_use_algorithm_seq'::regclass);
--
-- TOC entry 5700 (class 2604 OID 1611482429)
-- Name: idexperiment_use_raster; Type: DEFAULT; Schema: modelr; Owner: -
--
ALTER TABLE ONLY experiment_use_raster ALTER COLUMN idexperiment_use_raster SET DEFAULT nextval('experiment_use_raster_idexperiment_use_raster_seq'::regclass);
--
-- TOC entry 5694 (class 2604 OID 1353790990)
-- Name: idoccurrence; Type: DEFAULT; Schema: modelr; Owner: -
--
ALTER TABLE ONLY occurrence ALTER COLUMN idoccurrence SET DEFAULT nextval('occurrence_idoccurrence_seq'::regclass);
--
-- TOC entry 5693 (class 2604 OID 1306542654)
-- Name: idpartitiontype; Type: DEFAULT; Schema: modelr; Owner: -
--
ALTER TABLE ONLY partitiontype ALTER COLUMN idpartitiontype SET DEFAULT nextval('partitiontype_idpartitiontype_seq'::regclass);
--
-- TOC entry 5685 (class 2604 OID 1280199244)
-- Name: idperiodo; Type: DEFAULT; Schema: modelr; Owner: -
--
ALTER TABLE ONLY periodo ALTER COLUMN idperiodo SET DEFAULT nextval('periodo_idperiodo_seq'::regclass);
--
-- TOC entry 5689 (class 2604 OID 1284566278)
-- Name: idproject; Type: DEFAULT; Schema: modelr; Owner: -
--
ALTER TABLE ONLY project ALTER COLUMN idproject SET DEFAULT nextval('project_idproject_seq'::regclass);
--
-- TOC entry 5686 (class 2604 OID 1280199260)
-- Name: idraster; Type: DEFAULT; Schema: modelr; Owner: -
--
ALTER TABLE ONLY raster ALTER COLUMN idraster SET DEFAULT nextval('raster_idraster_seq'::regclass);
--
-- TOC entry 5687 (class 2604 OID 1280199268)
-- Name: idsituacaousuario; Type: DEFAULT; Schema: modelr; Owner: -
--
ALTER TABLE ONLY situacaousuario ALTER COLUMN idsituacaousuario SET DEFAULT nextval('situacaousuario_idsituacaousuario_seq'::regclass);
--
-- TOC entry 5692 (class 2604 OID 1306542646)
-- Name: idsource; Type: DEFAULT; Schema: modelr; Owner: -
--
ALTER TABLE ONLY source ALTER COLUMN idsource SET DEFAULT nextval('source_idsource_seq'::regclass);
--
-- TOC entry 5701 (class 2604 OID 1706177591)
-- Name: idstatusexperiment; Type: DEFAULT; Schema: modelr; Owner: -
--
ALTER TABLE ONLY statusexperiment ALTER COLUMN idstatusexperiment SET DEFAULT nextval('statusexperiment_idstatusexperiment_seq'::regclass);
--
-- TOC entry 5697 (class 2604 OID 1426642204)
-- Name: idstatusoccurrence; Type: DEFAULT; Schema: modelr; Owner: -
--
ALTER TABLE ONLY statusoccurrence ALTER COLUMN idstatusoccurrence SET DEFAULT nextval('statusoccurrence_idstatusoccurrence_seq'::regclass);
--
-- TOC entry 5702 (class 2604 OID 1710705645)
-- Name: idstatususer; Type: DEFAULT; Schema: modelr; Owner: -
--
ALTER TABLE ONLY statususer ALTER COLUMN idstatususer SET DEFAULT nextval('statususer_idstatususer_seq'::regclass);
--
-- TOC entry 5698 (class 2604 OID 1435838972)
-- Name: idtipousuario; Type: DEFAULT; Schema: modelr; Owner: -
--
ALTER TABLE ONLY tipousuario ALTER COLUMN idtipousuario SET DEFAULT nextval('tipousuario_idtipousuario_seq'::regclass);
--
-- TOC entry 5703 (class 2604 OID 1710705665)
-- Name: iduser; Type: DEFAULT; Schema: modelr; Owner: -
--
ALTER TABLE ONLY "user" ALTER COLUMN iduser SET DEFAULT nextval('user_iduser_seq'::regclass);
--
-- TOC entry 5704 (class 2604 OID 1710705673)
-- Name: idusertype; Type: DEFAULT; Schema: modelr; Owner: -
--
ALTER TABLE ONLY usertype ALTER COLUMN idusertype SET DEFAULT nextval('usertype_idusertype_seq'::regclass);
--
-- TOC entry 5688 (class 2604 OID 1280199294)
-- Name: idusuario; Type: DEFAULT; Schema: modelr; Owner: -
--
ALTER TABLE ONLY usuario ALTER COLUMN idusuario SET DEFAULT nextval('usuario_idusuario_seq'::regclass);
--
-- TOC entry 5971 (class 0 OID 1306542632)
-- Dependencies: 799
-- Data for Name: algorithm; Type: TABLE DATA; Schema: modelr; Owner: -
--
COPY algorithm (idalgorithm, algorithm, description) FROM stdin;
1 Mahalanobis \N
2 Maxent \N
3 GLM \N
4 SVN \N
5 Bioclim \N
6 Random Forest \N
7 Domain \N
\.
--
-- TOC entry 6019 (class 0 OID 0)
-- Dependencies: 798
-- Name: algorithm_idalgorithm_seq; Type: SEQUENCE SET; Schema: modelr; Owner: -
--
SELECT pg_catalog.setval('algorithm_idalgorithm_seq', 7, true);
--
-- TOC entry 5979 (class 0 OID 1353790995)
-- Dependencies: 807
-- Data for Name: datasource; Type: TABLE DATA; Schema: modelr; Owner: -
--
COPY datasource (iddatasource, datasource) FROM stdin;
\.
--
-- TOC entry 6020 (class 0 OID 0)
-- Dependencies: 806
-- Name: datasource_iddatasource_seq; Type: SEQUENCE SET; Schema: modelr; Owner: -
--
SELECT pg_catalog.setval('datasource_iddatasource_seq', 1, false);
--
-- TOC entry 5969 (class 0 OID 1284566631)
-- Dependencies: 795
-- Data for Name: experiment; Type: TABLE DATA; Schema: modelr; Owner: -
--
COPY experiment (idexperiment, idproject, name, description, num_partition, projection, datetime_inicio, datetime_fim, idstatusexperiment, extent_model, extent_projection, buffer, idpartitiontype, num_points, tss, iduser) FROM stdin;
34 11 teste \N \N \N \N \N 1 \N \N \N \N \N \N 10
46 \N Inga subnuda \N \N \N \N 1 \N \N \N \N \N \N 11
15 11 teste45 \N \N \N \N 1 \N \N \N \N \N \N 10
27 20 teste \N \N \N \N \N 1 \N \N \N \N \N \N 30
29 22 Teste \N \N \N \N 1 \N \N \N \N \N \N 24
33 24 Vriesea \N 5 \N \N \N 1 -62.649;-34.443;6.41;-32.490 -62;-34;6.41;-32.490 1.80 1 578 0.10 31
35 24 v. chapadensis \N 28 \N \N \N 1 -62.649;-34.443;6.41;-32.490 -62;-34;6.41;-32.490 1.70 1 1311 0.60 31
36 24 v. tijucana \N \N \N \N \N 1 \N \N \N \N \N \N 31
37 24 outras \N \N \N \N \N 1 \N \N \N \N \N \N 31
39 \N testaewaaw aa \N \N \N \N \N \N \N \N \N \N \N \N
40 \N Apenasteste Apenastestedescricao \N \N \N \N \N \N \N \N \N \N \N \N
41 \N testexxxx testexxxx10 \N \N \N \N \N \N \N \N \N \N \N \N
43 \N xxxx xxxx \N \N \N \N 1 \N \N \N \N \N \N 10
21 11 teste2 \N 13 \N \N \N 1 -62.649;-34.443;6.41;-32.490 -62;-34;6.41;-32.490 1.30 1 577 0.40 10
25 19 Inga 32 \N \N \N 2 -62.649;-34.443;6.41;-32.490 -62;-34;6.41;-32.490 1.70 1 852 0.60 11
14 11 teste \N \N \N \N 1 \N \N \N \N \N \N 10
17 11 Teste de 1 Teste de Alteração de nome apeós inclusão de registros de ocorrências \N \N \N \N 4 \N \N \N \N 10
24 19 33 \N \N \N 1 -62.649;-34.443;6.41;-32.490 1.60 1 966 0.40 11
\.
--
-- TOC entry 6021 (class 0 OID 0)
-- Dependencies: 794
-- Name: experiment_idexperimento_seq; Type: SEQUENCE SET; Schema: modelr; Owner: -
--
SELECT pg_catalog.setval('experiment_idexperimento_seq', 46, true);
--
-- TOC entry 5985 (class 0 OID 1539928038)
-- Dependencies: 818
-- Data for Name: experiment_use_algorithm; Type: TABLE DATA; Schema: modelr; Owner: -
--
COPY experiment_use_algorithm (idexperiment_use_algorithm, idalgorithm, idexperiment) FROM stdin;
1 1 17
2 2 17
3 4 17
4 1 25
5 2 25
6 3 25
7 1 25
8 2 25
9 3 25
10 1 25
11 2 25
12 3 25
13 1 25
14 2 25
15 3 25
16 1 25
17 2 25
18 3 25
19 1 25
20 2 25
21 3 25
22 1 25
23 2 25
24 3 25
25 1 25
26 2 25
27 3 25
28 1 25
29 2 25
30 3 25
31 1 25
32 2 25
33 3 25
34 1 25
35 2 25
36 3 25
37 1 25
38 2 25
39 3 25
40 1 25
41 2 25
42 3 25
43 1 17
44 2 17
45 4 17
46 1 21
47 4 21
48 7 21
49 1 36
50 1 36
51 1 36
52 1 36
53 1 36
54 1 35