lb_basic_dt_strt.sql
34.2 KB
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
--
-- PostgreSQL database dump
--
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;
--
-- Name: plpgsql; Type: EXTENSION; Schema: -; Owner:
--
CREATE EXTENSION IF NOT EXISTS plpgsql WITH SCHEMA pg_catalog;
--
-- Name: EXTENSION plpgsql; Type: COMMENT; Schema: -; Owner:
--
COMMENT ON EXTENSION plpgsql IS 'PL/pgSQL procedural language';
SET search_path = public, pg_catalog;
SET default_tablespace = '';
SET default_with_oids = false;
--
-- Name: alembic_version; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE alembic_version (
version_num character varying(32) NOT NULL
);
ALTER TABLE alembic_version OWNER TO postgres;
--
-- Name: lb_base; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE lb_base (
id_base integer NOT NULL,
name character varying NOT NULL,
struct character varying NOT NULL,
dt_base timestamp without time zone NOT NULL,
idx_exp boolean NOT NULL,
idx_exp_url character varying,
idx_exp_time integer,
file_ext boolean NOT NULL,
file_ext_time integer,
txt_mapping character varying
);
ALTER TABLE lb_base OWNER TO postgres;
--
-- Name: lb_base_id_base_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--
CREATE SEQUENCE lb_base_id_base_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE lb_base_id_base_seq OWNER TO postgres;
--
-- Name: lb_base_id_base_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--
ALTER SEQUENCE lb_base_id_base_seq OWNED BY lb_base.id_base;
--
-- Name: lb_doc__form; Type: TABLE; Schema: public; Owner: lbu; Tablespace:
--
CREATE TABLE lb_doc__form (
id_doc integer NOT NULL,
document json NOT NULL,
dt_doc timestamp without time zone NOT NULL,
dt_last_up timestamp without time zone NOT NULL,
dt_del timestamp without time zone,
dt_idx timestamp without time zone
);
ALTER TABLE lb_doc__form OWNER TO lbu;
--
-- Name: lb_doc__form_id_doc_seq; Type: SEQUENCE; Schema: public; Owner: lbu
--
CREATE SEQUENCE lb_doc__form_id_doc_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE lb_doc__form_id_doc_seq OWNER TO lbu;
--
-- Name: lb_doc__history; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE lb_doc__history (
id_doc integer NOT NULL,
document json NOT NULL,
dt_doc timestamp without time zone NOT NULL,
dt_last_up timestamp without time zone NOT NULL,
dt_del timestamp without time zone,
dt_idx timestamp without time zone
);
ALTER TABLE lb_doc__history OWNER TO postgres;
--
-- Name: lb_doc__history_id_doc_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--
CREATE SEQUENCE lb_doc__history_id_doc_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE lb_doc__history_id_doc_seq OWNER TO postgres;
--
-- Name: lb_doc__report; Type: TABLE; Schema: public; Owner: lbu; Tablespace:
--
CREATE TABLE lb_doc__report (
id_doc integer NOT NULL,
document json NOT NULL,
dt_doc timestamp without time zone NOT NULL,
dt_last_up timestamp without time zone NOT NULL,
dt_del timestamp without time zone,
dt_idx timestamp without time zone
);
ALTER TABLE lb_doc__report OWNER TO lbu;
--
-- Name: lb_doc__report_id_doc_seq; Type: SEQUENCE; Schema: public; Owner: lbu
--
CREATE SEQUENCE lb_doc__report_id_doc_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE lb_doc__report_id_doc_seq OWNER TO lbu;
--
-- Name: lb_doc__search; Type: TABLE; Schema: public; Owner: lbu; Tablespace:
--
CREATE TABLE lb_doc__search (
id_doc integer NOT NULL,
document json NOT NULL,
dt_doc timestamp without time zone NOT NULL,
dt_last_up timestamp without time zone NOT NULL,
dt_del timestamp without time zone,
dt_idx timestamp without time zone
);
ALTER TABLE lb_doc__search OWNER TO lbu;
--
-- Name: lb_doc__search_id_doc_seq; Type: SEQUENCE; Schema: public; Owner: lbu
--
CREATE SEQUENCE lb_doc__search_id_doc_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE lb_doc__search_id_doc_seq OWNER TO lbu;
--
-- Name: lb_doc__user; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE lb_doc__user (
id_doc integer NOT NULL,
document json NOT NULL,
dt_doc timestamp without time zone NOT NULL,
dt_last_up timestamp without time zone NOT NULL,
dt_del timestamp without time zone,
dt_idx timestamp without time zone,
name_base character varying[],
id_user integer,
status_user boolean,
access_type character varying[],
name_user character varying,
creation_date_user date,
email_user character varying,
passwd_user character varying
);
ALTER TABLE lb_doc__user OWNER TO postgres;
--
-- Name: lb_doc__user_id_doc_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--
CREATE SEQUENCE lb_doc__user_id_doc_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE lb_doc__user_id_doc_seq OWNER TO postgres;
--
-- Name: lb_doc_app_user; Type: TABLE; Schema: public; Owner: lbu; Tablespace:
--
CREATE TABLE lb_doc_app_user (
id_doc integer NOT NULL,
document json NOT NULL,
dt_doc timestamp without time zone NOT NULL,
dt_last_up timestamp without time zone NOT NULL,
dt_del timestamp without time zone,
dt_idx timestamp without time zone,
id_user character varying,
status_user boolean,
name_user character varying,
creation_date_user date,
email_user character varying,
passwd_user character varying
);
ALTER TABLE lb_doc_app_user OWNER TO lbu;
--
-- Name: lb_doc_app_user_id_doc_seq; Type: SEQUENCE; Schema: public; Owner: lbu
--
CREATE SEQUENCE lb_doc_app_user_id_doc_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE lb_doc_app_user_id_doc_seq OWNER TO lbu;
--
-- Name: lb_doc_log_lbconverter; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE lb_doc_log_lbconverter (
id_doc integer NOT NULL,
document json NOT NULL,
dt_doc timestamp without time zone NOT NULL,
dt_last_up timestamp without time zone NOT NULL,
dt_del timestamp without time zone,
dt_idx timestamp without time zone,
file_name character varying,
id_doc_orig integer,
nm_base character varying,
dt_error timestamp without time zone
);
ALTER TABLE lb_doc_log_lbconverter OWNER TO postgres;
--
-- Name: lb_doc_log_lbconverter_id_doc_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--
CREATE SEQUENCE lb_doc_log_lbconverter_id_doc_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE lb_doc_log_lbconverter_id_doc_seq OWNER TO postgres;
--
-- Name: lb_doc_log_lbindex; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE lb_doc_log_lbindex (
id_doc integer NOT NULL,
document json NOT NULL,
dt_doc timestamp without time zone NOT NULL,
dt_last_up timestamp without time zone NOT NULL,
dt_del timestamp without time zone,
dt_idx timestamp without time zone,
id_doc_orig integer,
dt_last_up_orig timestamp without time zone,
nm_base character varying,
dt_error timestamp without time zone
);
ALTER TABLE lb_doc_log_lbindex OWNER TO postgres;
--
-- Name: lb_doc_log_lbindex_id_doc_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--
CREATE SEQUENCE lb_doc_log_lbindex_id_doc_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE lb_doc_log_lbindex_id_doc_seq OWNER TO postgres;
--
-- Name: lb_file__form; Type: TABLE; Schema: public; Owner: lbu; Tablespace:
--
CREATE TABLE lb_file__form (
id_file uuid NOT NULL,
id_doc integer,
filename character varying NOT NULL,
file bytea NOT NULL,
mimetype character varying NOT NULL,
filesize integer NOT NULL,
filetext character varying,
dt_ext_text timestamp without time zone
);
ALTER TABLE lb_file__form OWNER TO lbu;
--
-- Name: lb_file__history; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE lb_file__history (
id_file integer NOT NULL,
id_doc integer NOT NULL,
filename character varying NOT NULL,
file bytea NOT NULL,
mimetype character varying NOT NULL,
filesize integer NOT NULL,
filetext character varying,
dt_ext_text timestamp without time zone
);
ALTER TABLE lb_file__history OWNER TO postgres;
--
-- Name: lb_file__report; Type: TABLE; Schema: public; Owner: lbu; Tablespace:
--
CREATE TABLE lb_file__report (
id_file uuid NOT NULL,
id_doc integer,
filename character varying NOT NULL,
file bytea NOT NULL,
mimetype character varying NOT NULL,
filesize integer NOT NULL,
filetext character varying,
dt_ext_text timestamp without time zone
);
ALTER TABLE lb_file__report OWNER TO lbu;
--
-- Name: lb_file__search; Type: TABLE; Schema: public; Owner: lbu; Tablespace:
--
CREATE TABLE lb_file__search (
id_file uuid NOT NULL,
id_doc integer,
filename character varying NOT NULL,
file bytea NOT NULL,
mimetype character varying NOT NULL,
filesize integer NOT NULL,
filetext character varying,
dt_ext_text timestamp without time zone
);
ALTER TABLE lb_file__search OWNER TO lbu;
--
-- Name: lb_file__user; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE lb_file__user (
id_file integer NOT NULL,
id_doc integer NOT NULL,
filename character varying NOT NULL,
file bytea NOT NULL,
mimetype character varying NOT NULL,
filesize integer NOT NULL,
filetext character varying,
dt_ext_text timestamp without time zone
);
ALTER TABLE lb_file__user OWNER TO postgres;
--
-- Name: lb_file_app_user; Type: TABLE; Schema: public; Owner: lbu; Tablespace:
--
CREATE TABLE lb_file_app_user (
id_file uuid NOT NULL,
id_doc integer,
filename character varying NOT NULL,
file bytea NOT NULL,
mimetype character varying NOT NULL,
filesize integer NOT NULL,
filetext character varying,
dt_ext_text timestamp without time zone
);
ALTER TABLE lb_file_app_user OWNER TO lbu;
--
-- Name: lb_file_log_lbconverter; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE lb_file_log_lbconverter (
id_file uuid NOT NULL,
id_doc integer,
filename character varying NOT NULL,
file bytea NOT NULL,
mimetype character varying NOT NULL,
filesize integer NOT NULL,
filetext character varying,
dt_ext_text timestamp without time zone
);
ALTER TABLE lb_file_log_lbconverter OWNER TO postgres;
--
-- Name: lb_file_log_lbindex; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE lb_file_log_lbindex (
id_file integer NOT NULL,
id_doc integer NOT NULL,
filename character varying NOT NULL,
file bytea NOT NULL,
mimetype character varying NOT NULL,
filesize integer NOT NULL,
filetext character varying,
dt_ext_text timestamp without time zone
);
ALTER TABLE lb_file_log_lbindex OWNER TO postgres;
--
-- Name: lb_index_error; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE lb_index_error (
id_error integer NOT NULL,
base character varying NOT NULL,
id_doc integer NOT NULL,
dt_error timestamp without time zone NOT NULL,
msg_error character varying
);
ALTER TABLE lb_index_error OWNER TO postgres;
--
-- Name: lb_index_error_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--
CREATE SEQUENCE lb_index_error_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE lb_index_error_seq OWNER TO postgres;
--
-- Name: lb_txt_idx; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE lb_txt_idx (
id_idx integer NOT NULL,
nm_idx character varying NOT NULL,
cfg_idx character varying NOT NULL,
dt_crt_idx timestamp without time zone NOT NULL,
dt_upt_idx timestamp without time zone NOT NULL,
url_idx character varying NOT NULL,
actv_idx boolean NOT NULL,
struct character varying NOT NULL
);
ALTER TABLE lb_txt_idx OWNER TO postgres;
--
-- Name: lb_txt_idx_id_idx_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--
CREATE SEQUENCE lb_txt_idx_id_idx_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE lb_txt_idx_id_idx_seq OWNER TO postgres;
--
-- Name: lb_txt_idx_id_idx_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--
ALTER SEQUENCE lb_txt_idx_id_idx_seq OWNED BY lb_txt_idx.id_idx;
--
-- Name: id_base; Type: DEFAULT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY lb_base ALTER COLUMN id_base SET DEFAULT nextval('lb_base_id_base_seq'::regclass);
--
-- Name: id_idx; Type: DEFAULT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY lb_txt_idx ALTER COLUMN id_idx SET DEFAULT nextval('lb_txt_idx_id_idx_seq'::regclass);
--
-- Data for Name: alembic_version; Type: TABLE DATA; Schema: public; Owner: postgres
--
COPY alembic_version (version_num) FROM stdin;
\.
--
-- Data for Name: lb_base; Type: TABLE DATA; Schema: public; Owner: postgres
--
COPY lb_base (id_base, name, struct, dt_base, idx_exp, idx_exp_url, idx_exp_time, file_ext, file_ext_time, txt_mapping) FROM stdin;
4 _user {"content":[{"field":{"alias":"id","description":"LightBase's uses ID","name":"id_user","datatype":"Integer","indices":["Textual","Ordenado"],"required":true,"multivalued":false}},{"field":{"alias":"name","description":"User's name","name":"name_user","datatype":"Text","indices":["Textual","Ordenado"],"required":true,"multivalued":false}},{"field":{"alias":"email","description":"User's mail","name":"email_user","datatype":"Text","indices":["Textual","Ordenado"],"required":true,"multivalued":false}},{"field":{"alias":"passwd","description":"User's password","name":"passwd_user","datatype":"Text","indices":["Textual","Ordenado"],"required":true,"multivalued":false}},{"group":{"content":[{"field":{"alias":"name_base","description":"Name of the base the user can access","name":"name_base","datatype":"Text","indices":["Textual","Ordenado","Fuzzy"],"required":false,"multivalued":false}},{"field":{"alias":"access_type","description":"Type of access the user has","name":"access_type","datatype":"Text","indices":["Textual","Ordenado"],"required":false,"multivalued":false}}],"metadata":{"alias":"bases","description":"List of bases that the user can access and what kind of access it is","multivalued":true,"name":"bases_user"}}},{"field":{"alias":"creation_date","description":"Date the user account was created","name":"creation_date_user","datatype":"Date","indices":["Textual","Ordenado"],"required":true,"multivalued":false}},{"field":{"alias":"status","description":"Check if the user is activer or not","name":"status_user","datatype":"Boolean","indices":["Textual","Ordenado"],"required":true,"multivalued":false}}],"metadata":{"color":"#000000","description":"LightBase's Users Meta Base.","dt_base":"01/01/2017 00:00:00","file_ext":false,"file_ext_time":0,"idx_exp":false,"idx_exp_time":0,"idx_exp_url":"","id_base":4,"name":"_user","password":"","model":{"creation_date_user":"Date","email_user":"Text","id_user":"Integer","name_user":"Text","passwd_user":"Text","status_user":"Boolean","bases_user":[{"access_type":"Text","name_base":"Text"}]}}} 2017-01-01 00:00:00 f 0 f 0
5 app_user {"content":[{"field":{"name":"id_user","datatype":"Text","required":true,"alias":"id_user","multivalued":false,"indices":["Textual","Ordenado"],"description":"LightBase's uses ID"}},{"field":{"name":"name_user","datatype":"Text","required":true,"alias":"name","multivalued":false,"indices":["Textual","Ordenado"],"description":"User's name"}},{"field":{"name":"email_user","datatype":"Text","required":true,"alias":"email","multivalued":false,"indices":["Textual","Ordenado"],"description":"User's mail"}},{"field":{"name":"passwd_user","datatype":"Text","required":true,"alias":"passwd","multivalued":false,"indices":["Textual","Ordenado"],"description":"User's password"}},{"field":{"name":"bases","datatype":"Integer","required":false,"alias":"bases","multivalued":true,"indices":["Textual"],"description":"Id doc list the base the user is owner"}},{"field":{"name":"forms","datatype":"Integer","required":false,"alias":"forms","multivalued":true,"indices":["Textual"],"description":"Id doc list of the form where user can access"}},{"field":{"name":"reports","datatype":"Text","required":false,"alias":"reports","multivalued":true,"indices":["Textual"],"description":"Id doc list of the report where user can access"}},{"group":{"content":[{"field":{"name":"id","datatype":"Integer","required":true,"alias":"id","multivalued":false,"indices":["Textual"],"description":"Id doc of element"}},{"field":{"name":"type","datatype":"Text","required":true,"alias":"type","multivalued":false,"indices":["Textual"],"description":"Types allowed form, base and report"}}],"metadata":{"multivalued":true,"alias":"shortcuts","name":"shortcuts","description":"List of shortcuts of user"}}},{"field":{"name":"creation_date_user","datatype":"Date","required":true,"alias":"creation_date","multivalued":false,"indices":["Textual","Ordenado"],"description":"Date the user account was created"}},{"field":{"name":"status_user","datatype":"Boolean","required":true,"alias":"status","multivalued":false,"indices":["Textual","Ordenado"],"description":"Check if the user is activer or not"}}],"metadata":{"admin_users":[],"color":"#000000","description":"LightBase's Users Meta Base.","dt_base":"01/01/2017 00:00:00","file_ext":false,"file_ext_time":0,"idx_exp":false,"idx_exp_time":0,"idx_exp_url":"","id_base":5,"name":"app_user","owner":"","password":"","txt_mapping":"","model":{"bases":["Integer"],"creation_date_user":"Date","email_user":"Text","forms":["Integer"],"id_user":"Text","name_user":"Text","passwd_user":"Text","reports":["Text"],"status_user":"Boolean","shortcuts":[{"id":"Integer","type":"Text"}]}}} 2017-01-01 00:00:00 f 0 f 0
2 _history {"content":[{"field":{"alias":"id_base","description":"Base old ID.","name":"id_base","datatype":"Integer","indices":["Textual"],"required":true,"multivalued":false}},{"field":{"alias":"author","description":"Event Author.","name":"author","datatype":"Text","indices":["Textual"],"required":true,"multivalued":false}},{"field":{"alias":"date","description":"Event Date.","name":"date","datatype":"DateTime","indices":["Textual"],"required":true,"multivalued":false}},{"field":{"alias":"name","description":"Base old name.","name":"name","datatype":"Text","indices":["Textual"],"required":true,"multivalued":false}},{"field":{"alias":"structure","description":"Base old structure","name":"structure","datatype":"Json","indices":["Textual"],"required":true,"multivalued":false}},{"field":{"alias":"status","description":"Base status","name":"status","datatype":"Text","indices":["Textual"],"required":true,"multivalued":false}}],"metadata":{"admin_users":[],"color":"#000000","description":"LightBase - History Meta Base.","dt_base":"01/01/2017 00:00:00","file_ext":false,"file_ext_time":0,"idx_exp":false,"idx_exp_time":0,"idx_exp_url":"","id_base":2,"name":"_history","owner":"","password":"","txt_mapping":"","model":{"author":"Text","date":"DateTime","id_base":"Integer","name":"Text","status":"Text","structure":"Json"}}} 2017-01-01 00:00:00 f 0 f 0
1 _form {"content":[{"field":{"name":"id_base","datatype":"Integer","required":true,"alias":"id_base","multivalued":false,"indices":["Textual"],"description":"Base ID."}},{"field":{"name":"author","datatype":"Text","required":true,"alias":"author","multivalued":false,"indices":["Textual"],"description":"Event Author."}},{"field":{"name":"name","datatype":"Text","required":true,"alias":"name","multivalued":false,"indices":["Textual"],"description":"Form name."}},{"field":{"name":"description","datatype":"Text","required":true,"alias":"description","multivalued":false,"indices":["Textual"],"description":"Form description."}},{"field":{"name":"structure","datatype":"Json","required":true,"alias":"structure","multivalued":false,"indices":["Textual"],"description":"Form structure"}}],"metadata":{"admin_users":[],"color":"#000000","description":"LightBase's Form Meta Base.","dt_base":"01/01/2017 00:00:00","file_ext":false,"file_ext_time":0,"idx_exp":false,"idx_exp_time":0,"idx_exp_url":"","id_base":1,"name":"_form","owner":"","password":"","txt_mapping":"","model":{"author":"Text","description":"Text","id_base":"Integer","name":"Text","structure":"Json"}}} 2017-01-01 00:00:00 f 0 f 0
3 _report {"content":[{"field":{"name":"id_base","datatype":"Integer","required":true,"alias":"id_base","multivalued":false,"indices":["Textual"],"description":"Base ID."}},{"field":{"name":"author","datatype":"Text","required":true,"alias":"author","multivalued":false,"indices":["Textual"],"description":"Event Author."}},{"field":{"name":"name","datatype":"Text","required":true,"alias":"name","multivalued":false,"indices":["Textual"],"description":"Report name."}},{"field":{"name":"description","datatype":"Text","required":true,"alias":"description","multivalued":false,"indices":["Textual"],"description":"Report description."}},{"field":{"name":"structure","datatype":"Json","required":true,"alias":"structure","multivalued":false,"indices":["Textual"],"description":"Report structure"}}],"metadata":{"admin_users":[],"color":"#000000","description":"LightBase's Report Meta Base.","dt_base":"01/01/2017 00:00:00","file_ext":false,"file_ext_time":0,"idx_exp":false,"idx_exp_time":0,"idx_exp_url":"","id_base":3,"name":"_report","owner":"","password":"","txt_mapping":"","model":{"author":"Text","description":"Text","id_base":"Integer","name":"Text","structure":"Json"}}} 2017-01-01 00:00:00 f 0 f 0
7 log_lbindex {"content":[{"field":{"alias":"Nome da base","description":"Nome da base","name":"nm_base","datatype":"Text","indices":["Ordenado"],"required":true,"multivalued":false}},{"field":{"alias":"identificador do documento","description":"id do documento que originou o erro.","name":"id_doc_orig","datatype":"Integer","indices":["Textual","Ordenado"],"required":true,"multivalued":false}},{"field":{"alias":"Mensagem de erro","description":"Mensagem de erro","name":"error_msg","datatype":"Text","indices":["Nenhum"],"required":true,"multivalued":false}},{"field":{"alias":"Data do erro","description":"Data e Hora no formato DD/MM/AAAA - HH:MM:SS do erro","name":"dt_error","datatype":"DateTime","indices":["Textual","Ordenado"],"required":true,"multivalued":false}},{"field":{"alias":"dt_last_up_orig","description":"Data e Hora no formato DD/MM/AAAA - HH:MM:SS da última atualização do registro que originou o erro.","name":"dt_last_up_orig","datatype":"DateTime","indices":["Textual","Ordenado"],"required":true,"multivalued":false}}],"metadata":{"admin_users":[],"color":"#000000","description":"LightBase - Log de erros do LBIndex","dt_base":"01/01/2017 00:00:00","file_ext":false,"file_ext_time":0,"idx_exp":false,"idx_exp_time":0,"idx_exp_url":"","id_base":7,"name":"log_lbindex","owner":"","password":"","model":{"dt_error":"DateTime","dt_last_up_orig":"DateTime","error_msg":"Text","id_doc_orig":"Integer","nm_base":"Text"}}} 2017-01-01 00:00:00 f 0 f 0
6 log_lbconverter {"content":[{"field":{"name":"nm_base","datatype":"Text","required":true,"alias":"Nome da base","multivalued":false,"indices":["Ordenado"],"description":"Nome da base"}},{"field":{"name":"id_doc_orig","datatype":"Integer","required":true,"alias":"id_doc_orig","multivalued":false,"indices":["Textual","Ordenado"],"description":"id do documento que originou o erro."}},{"field":{"name":"id_file_orig","datatype":"Text","required":true,"alias":"id_file_orig","multivalued":false,"indices":["Textual"],"description":"ID do arquivo que originou o erro."}},{"field":{"name":"file_name","datatype":"Text","required":true,"alias":"file_name","multivalued":false,"indices":["Ordenado"],"description":"File name"}},{"field":{"name":"error_msg","datatype":"Text","required":true,"alias":"Mensagem de erro","multivalued":false,"indices":["Nenhum"],"description":"Mensagem de erro"}},{"field":{"name":"dt_error","datatype":"DateTime","required":true,"alias":"Data do erro","multivalued":false,"indices":["Textual","Ordenado"],"description":"Data do erro"}}],"metadata":{"admin_users":[],"color":"#000000","description":"LightBase - Log de erros do LBConverter","dt_base":"01/01/2017 00:00:00","file_ext":false,"file_ext_time":0,"idx_exp":false,"idx_exp_time":0,"idx_exp_url":"","id_base":6,"name":"log_lbconverter","owner":"","password":"","txt_mapping":"","model":{"dt_error":"DateTime","error_msg":"Text","file_name":"Text","id_doc_orig":"Integer","id_file_orig":"Text","nm_base":"Text"}}} 2017-01-01 00:00:00 f 0 f 0
\.
--
-- Name: lb_base_id_base_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--
SELECT pg_catalog.setval('lb_base_id_base_seq', 7, true);
--
-- Data for Name: lb_doc__form; Type: TABLE DATA; Schema: public; Owner: lbu
--
COPY lb_doc__form (id_doc, document, dt_doc, dt_last_up, dt_del, dt_idx) FROM stdin;
\.
--
-- Name: lb_doc__form_id_doc_seq; Type: SEQUENCE SET; Schema: public; Owner: lbu
--
SELECT pg_catalog.setval('lb_doc__form_id_doc_seq', 1, false);
--
-- Data for Name: lb_doc__history; Type: TABLE DATA; Schema: public; Owner: postgres
--
COPY lb_doc__history (id_doc, document, dt_doc, dt_last_up, dt_del, dt_idx) FROM stdin;
\.
--
-- Name: lb_doc__history_id_doc_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--
SELECT pg_catalog.setval('lb_doc__history_id_doc_seq', 1134, true);
--
-- Data for Name: lb_doc__report; Type: TABLE DATA; Schema: public; Owner: lbu
--
COPY lb_doc__report (id_doc, document, dt_doc, dt_last_up, dt_del, dt_idx) FROM stdin;
\.
--
-- Name: lb_doc__report_id_doc_seq; Type: SEQUENCE SET; Schema: public; Owner: lbu
--
SELECT pg_catalog.setval('lb_doc__report_id_doc_seq', 1, false);
--
-- Data for Name: lb_doc__search; Type: TABLE DATA; Schema: public; Owner: lbu
--
COPY lb_doc__search (id_doc, document, dt_doc, dt_last_up, dt_del, dt_idx) FROM stdin;
\.
--
-- Name: lb_doc__search_id_doc_seq; Type: SEQUENCE SET; Schema: public; Owner: lbu
--
SELECT pg_catalog.setval('lb_doc__search_id_doc_seq', 1, false);
--
-- Data for Name: lb_doc__user; Type: TABLE DATA; Schema: public; Owner: postgres
--
COPY lb_doc__user (id_doc, document, dt_doc, dt_last_up, dt_del, dt_idx, name_base, id_user, status_user, access_type, name_user, creation_date_user, email_user, passwd_user) FROM stdin;
\.
--
-- Name: lb_doc__user_id_doc_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--
SELECT pg_catalog.setval('lb_doc__user_id_doc_seq', 1, true);
--
-- Data for Name: lb_doc_app_user; Type: TABLE DATA; Schema: public; Owner: lbu
--
COPY lb_doc_app_user (id_doc, document, dt_doc, dt_last_up, dt_del, dt_idx, id_user, status_user, name_user, creation_date_user, email_user, passwd_user) FROM stdin;
\.
--
-- Name: lb_doc_app_user_id_doc_seq; Type: SEQUENCE SET; Schema: public; Owner: lbu
--
SELECT pg_catalog.setval('lb_doc_app_user_id_doc_seq', 1, false);
--
-- Data for Name: lb_doc_log_lbconverter; Type: TABLE DATA; Schema: public; Owner: postgres
--
COPY lb_doc_log_lbconverter (id_doc, document, dt_doc, dt_last_up, dt_del, dt_idx, file_name, id_doc_orig, nm_base, dt_error) FROM stdin;
\.
--
-- Name: lb_doc_log_lbconverter_id_doc_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--
SELECT pg_catalog.setval('lb_doc_log_lbconverter_id_doc_seq', 481444, true);
--
-- Data for Name: lb_doc_log_lbindex; Type: TABLE DATA; Schema: public; Owner: postgres
--
COPY lb_doc_log_lbindex (id_doc, document, dt_doc, dt_last_up, dt_del, dt_idx, id_doc_orig, dt_last_up_orig, nm_base, dt_error) FROM stdin;
\.
--
-- Name: lb_doc_log_lbindex_id_doc_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--
SELECT pg_catalog.setval('lb_doc_log_lbindex_id_doc_seq', 620125, true);
--
-- Data for Name: lb_file__form; Type: TABLE DATA; Schema: public; Owner: lbu
--
COPY lb_file__form (id_file, id_doc, filename, file, mimetype, filesize, filetext, dt_ext_text) FROM stdin;
\.
--
-- Data for Name: lb_file__history; Type: TABLE DATA; Schema: public; Owner: postgres
--
COPY lb_file__history (id_file, id_doc, filename, file, mimetype, filesize, filetext, dt_ext_text) FROM stdin;
\.
--
-- Data for Name: lb_file__report; Type: TABLE DATA; Schema: public; Owner: lbu
--
COPY lb_file__report (id_file, id_doc, filename, file, mimetype, filesize, filetext, dt_ext_text) FROM stdin;
\.
--
-- Data for Name: lb_file__search; Type: TABLE DATA; Schema: public; Owner: lbu
--
COPY lb_file__search (id_file, id_doc, filename, file, mimetype, filesize, filetext, dt_ext_text) FROM stdin;
\.
--
-- Data for Name: lb_file__user; Type: TABLE DATA; Schema: public; Owner: postgres
--
COPY lb_file__user (id_file, id_doc, filename, file, mimetype, filesize, filetext, dt_ext_text) FROM stdin;
\.
--
-- Data for Name: lb_file_app_user; Type: TABLE DATA; Schema: public; Owner: lbu
--
COPY lb_file_app_user (id_file, id_doc, filename, file, mimetype, filesize, filetext, dt_ext_text) FROM stdin;
\.
--
-- Data for Name: lb_file_log_lbconverter; Type: TABLE DATA; Schema: public; Owner: postgres
--
COPY lb_file_log_lbconverter (id_file, id_doc, filename, file, mimetype, filesize, filetext, dt_ext_text) FROM stdin;
\.
--
-- Data for Name: lb_file_log_lbindex; Type: TABLE DATA; Schema: public; Owner: postgres
--
COPY lb_file_log_lbindex (id_file, id_doc, filename, file, mimetype, filesize, filetext, dt_ext_text) FROM stdin;
\.
--
-- Data for Name: lb_index_error; Type: TABLE DATA; Schema: public; Owner: postgres
--
COPY lb_index_error (id_error, base, id_doc, dt_error, msg_error) FROM stdin;
\.
--
-- Name: lb_index_error_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--
SELECT pg_catalog.setval('lb_index_error_seq', 3699, true);
--
-- Data for Name: lb_txt_idx; Type: TABLE DATA; Schema: public; Owner: postgres
--
COPY lb_txt_idx (id_idx, nm_idx, cfg_idx, dt_crt_idx, dt_upt_idx, url_idx, actv_idx, struct) FROM stdin;
\.
--
-- Name: lb_txt_idx_id_idx_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--
SELECT pg_catalog.setval('lb_txt_idx_id_idx_seq', 1, false);
--
-- Name: lb_base_name_key; Type: CONSTRAINT; Schema: public; Owner: postgres; Tablespace:
--
ALTER TABLE ONLY lb_base
ADD CONSTRAINT lb_base_name_key UNIQUE (name);
--
-- Name: lb_base_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres; Tablespace:
--
ALTER TABLE ONLY lb_base
ADD CONSTRAINT lb_base_pkey PRIMARY KEY (id_base);
--
-- Name: lb_doc__form_pkey; Type: CONSTRAINT; Schema: public; Owner: lbu; Tablespace:
--
ALTER TABLE ONLY lb_doc__form
ADD CONSTRAINT lb_doc__form_pkey PRIMARY KEY (id_doc);
--
-- Name: lb_doc__history_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres; Tablespace:
--
ALTER TABLE ONLY lb_doc__history
ADD CONSTRAINT lb_doc__history_pkey PRIMARY KEY (id_doc);
--
-- Name: lb_doc__report_pkey; Type: CONSTRAINT; Schema: public; Owner: lbu; Tablespace:
--
ALTER TABLE ONLY lb_doc__report
ADD CONSTRAINT lb_doc__report_pkey PRIMARY KEY (id_doc);
--
-- Name: lb_doc__search_pkey; Type: CONSTRAINT; Schema: public; Owner: lbu; Tablespace:
--
ALTER TABLE ONLY lb_doc__search
ADD CONSTRAINT lb_doc__search_pkey PRIMARY KEY (id_doc);
--
-- Name: lb_doc__user_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres; Tablespace:
--
ALTER TABLE ONLY lb_doc__user
ADD CONSTRAINT lb_doc__user_pkey PRIMARY KEY (id_doc);
--
-- Name: lb_doc_app_user_pkey; Type: CONSTRAINT; Schema: public; Owner: lbu; Tablespace:
--
ALTER TABLE ONLY lb_doc_app_user
ADD CONSTRAINT lb_doc_app_user_pkey PRIMARY KEY (id_doc);
--
-- Name: lb_doc_log_lbconverter_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres; Tablespace:
--
ALTER TABLE ONLY lb_doc_log_lbconverter
ADD CONSTRAINT lb_doc_log_lbconverter_pkey PRIMARY KEY (id_doc);
--
-- Name: lb_doc_log_lbindex_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres; Tablespace:
--
ALTER TABLE ONLY lb_doc_log_lbindex
ADD CONSTRAINT lb_doc_log_lbindex_pkey PRIMARY KEY (id_doc);
--
-- Name: lb_file__form_pkey; Type: CONSTRAINT; Schema: public; Owner: lbu; Tablespace:
--
ALTER TABLE ONLY lb_file__form
ADD CONSTRAINT lb_file__form_pkey PRIMARY KEY (id_file);
--
-- Name: lb_file__history_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres; Tablespace:
--
ALTER TABLE ONLY lb_file__history
ADD CONSTRAINT lb_file__history_pkey PRIMARY KEY (id_file);
--
-- Name: lb_file__report_pkey; Type: CONSTRAINT; Schema: public; Owner: lbu; Tablespace:
--
ALTER TABLE ONLY lb_file__report
ADD CONSTRAINT lb_file__report_pkey PRIMARY KEY (id_file);
--
-- Name: lb_file__search_pkey; Type: CONSTRAINT; Schema: public; Owner: lbu; Tablespace:
--
ALTER TABLE ONLY lb_file__search
ADD CONSTRAINT lb_file__search_pkey PRIMARY KEY (id_file);
--
-- Name: lb_file__user_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres; Tablespace:
--
ALTER TABLE ONLY lb_file__user
ADD CONSTRAINT lb_file__user_pkey PRIMARY KEY (id_file);
--
-- Name: lb_file_app_user_pkey; Type: CONSTRAINT; Schema: public; Owner: lbu; Tablespace:
--
ALTER TABLE ONLY lb_file_app_user
ADD CONSTRAINT lb_file_app_user_pkey PRIMARY KEY (id_file);
--
-- Name: lb_file_log_lbconverter_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres; Tablespace:
--
ALTER TABLE ONLY lb_file_log_lbconverter
ADD CONSTRAINT lb_file_log_lbconverter_pkey PRIMARY KEY (id_file);
--
-- Name: lb_file_log_lbindex_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres; Tablespace:
--
ALTER TABLE ONLY lb_file_log_lbindex
ADD CONSTRAINT lb_file_log_lbindex_pkey PRIMARY KEY (id_file);
--
-- Name: lb_index_error_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres; Tablespace:
--
ALTER TABLE ONLY lb_index_error
ADD CONSTRAINT lb_index_error_pkey PRIMARY KEY (id_error);
--
-- Name: lb_txt_idx_nm_idx_key; Type: CONSTRAINT; Schema: public; Owner: postgres; Tablespace:
--
ALTER TABLE ONLY lb_txt_idx
ADD CONSTRAINT lb_txt_idx_nm_idx_key UNIQUE (nm_idx);
--
-- Name: lb_txt_idx_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres; Tablespace:
--
ALTER TABLE ONLY lb_txt_idx
ADD CONSTRAINT lb_txt_idx_pkey PRIMARY KEY (id_idx);
--
-- Name: public; Type: ACL; Schema: -; Owner: postgres
--
REVOKE ALL ON SCHEMA public FROM PUBLIC;
REVOKE ALL ON SCHEMA public FROM postgres;
GRANT ALL ON SCHEMA public TO postgres;
GRANT ALL ON SCHEMA public TO PUBLIC;
--
-- PostgreSQL database dump complete
--