generated from datauy/Plantilla--NombreDeProyecto-Version-backSiAplica
-
Notifications
You must be signed in to change notification settings - Fork 0
/
db.sql
2974 lines (2501 loc) · 143 KB
/
db.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.5.25
-- Dumped by pg_dump version 9.5.25
--
-- Name: active_admin_comments; Type: TABLE; Schema: public; Owner: ats
--
CREATE TABLE active_admin_comments (
id bigint NOT NULL,
namespace character varying,
body text,
resource_type character varying,
resource_id bigint,
author_type character varying,
author_id bigint,
created_at timestamp(6) without time zone NOT NULL,
updated_at timestamp(6) without time zone NOT NULL
);
ALTER TABLE active_admin_comments OWNER TO ats;
--
-- Name: active_admin_comments_id_seq; Type: SEQUENCE; Schema: public; Owner: ats
--
CREATE SEQUENCE active_admin_comments_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE active_admin_comments_id_seq OWNER TO ats;
--
-- Name: active_admin_comments_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: ats
--
ALTER SEQUENCE active_admin_comments_id_seq OWNED BY active_admin_comments.id;
--
-- Name: active_storage_attachments; Type: TABLE; Schema: public; Owner: ats
--
CREATE TABLE active_storage_attachments (
id bigint NOT NULL,
name character varying NOT NULL,
record_type character varying NOT NULL,
record_id bigint NOT NULL,
blob_id bigint NOT NULL,
created_at timestamp without time zone NOT NULL
);
ALTER TABLE active_storage_attachments OWNER TO ats;
--
-- Name: active_storage_attachments_id_seq; Type: SEQUENCE; Schema: public; Owner: ats
--
CREATE SEQUENCE active_storage_attachments_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE active_storage_attachments_id_seq OWNER TO ats;
--
-- Name: active_storage_attachments_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: ats
--
ALTER SEQUENCE active_storage_attachments_id_seq OWNED BY active_storage_attachments.id;
--
-- Name: active_storage_blobs; Type: TABLE; Schema: public; Owner: ats
--
CREATE TABLE active_storage_blobs (
id bigint NOT NULL,
key character varying NOT NULL,
filename character varying NOT NULL,
content_type character varying,
metadata text,
service_name character varying NOT NULL,
byte_size bigint NOT NULL,
checksum character varying NOT NULL,
created_at timestamp without time zone NOT NULL
);
ALTER TABLE active_storage_blobs OWNER TO ats;
--
-- Name: active_storage_blobs_id_seq; Type: SEQUENCE; Schema: public; Owner: ats
--
CREATE SEQUENCE active_storage_blobs_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE active_storage_blobs_id_seq OWNER TO ats;
--
-- Name: active_storage_blobs_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: ats
--
ALTER SEQUENCE active_storage_blobs_id_seq OWNED BY active_storage_blobs.id;
--
-- Name: active_storage_variant_records; Type: TABLE; Schema: public; Owner: ats
--
CREATE TABLE active_storage_variant_records (
id bigint NOT NULL,
blob_id bigint NOT NULL,
variation_digest character varying NOT NULL
);
ALTER TABLE active_storage_variant_records OWNER TO ats;
--
-- Name: active_storage_variant_records_id_seq; Type: SEQUENCE; Schema: public; Owner: ats
--
CREATE SEQUENCE active_storage_variant_records_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE active_storage_variant_records_id_seq OWNER TO ats;
--
-- Name: active_storage_variant_records_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: ats
--
ALTER SEQUENCE active_storage_variant_records_id_seq OWNED BY active_storage_variant_records.id;
--
-- Name: admin_users; Type: TABLE; Schema: public; Owner: ats
--
CREATE TABLE admin_users (
id bigint NOT NULL,
email character varying DEFAULT ''::character varying NOT NULL,
encrypted_password character varying DEFAULT ''::character varying NOT NULL,
reset_password_token character varying,
reset_password_sent_at timestamp without time zone,
remember_created_at timestamp without time zone,
created_at timestamp(6) without time zone NOT NULL,
updated_at timestamp(6) without time zone NOT NULL
);
ALTER TABLE admin_users OWNER TO ats;
--
-- Name: admin_users_id_seq; Type: SEQUENCE; Schema: public; Owner: ats
--
CREATE SEQUENCE admin_users_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE admin_users_id_seq OWNER TO ats;
--
-- Name: admin_users_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: ats
--
ALTER SEQUENCE admin_users_id_seq OWNED BY admin_users.id;
--
-- Name: ar_internal_metadata; Type: TABLE; Schema: public; Owner: ats
--
CREATE TABLE ar_internal_metadata (
key character varying NOT NULL,
value character varying,
created_at timestamp(6) without time zone NOT NULL,
updated_at timestamp(6) without time zone NOT NULL
);
ALTER TABLE ar_internal_metadata OWNER TO ats;
--
-- Name: buildings; Type: TABLE; Schema: public; Owner: ats
--
CREATE TABLE buildings (
id bigint NOT NULL,
name character varying,
address character varying,
state integer,
created_at timestamp(6) without time zone NOT NULL,
updated_at timestamp(6) without time zone NOT NULL
);
ALTER TABLE buildings OWNER TO ats;
--
-- Name: buildings_id_seq; Type: SEQUENCE; Schema: public; Owner: ats
--
CREATE SEQUENCE buildings_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE buildings_id_seq OWNER TO ats;
--
-- Name: buildings_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: ats
--
ALTER SEQUENCE buildings_id_seq OWNED BY buildings.id;
--
-- Name: buildings_services; Type: TABLE; Schema: public; Owner: ats
--
CREATE TABLE buildings_services (
service_id bigint NOT NULL,
building_id bigint NOT NULL
);
ALTER TABLE buildings_services OWNER TO ats;
--
-- Name: events; Type: TABLE; Schema: public; Owner: ats
--
CREATE TABLE events (
id bigint NOT NULL,
etype integer,
title character varying,
description text,
value integer,
edate date,
created_at timestamp(6) without time zone NOT NULL,
updated_at timestamp(6) without time zone NOT NULL
);
ALTER TABLE events OWNER TO ats;
--
-- Name: events_id_seq; Type: SEQUENCE; Schema: public; Owner: ats
--
CREATE SEQUENCE events_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE events_id_seq OWNER TO ats;
--
-- Name: events_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: ats
--
ALTER SEQUENCE events_id_seq OWNED BY events.id;
--
-- Name: import_logs; Type: TABLE; Schema: public; Owner: ats
--
CREATE TABLE import_logs (
id bigint NOT NULL,
import_version_id bigint NOT NULL,
object_type character varying,
object_id integer,
created_at timestamp(6) without time zone NOT NULL,
updated_at timestamp(6) without time zone NOT NULL
);
ALTER TABLE import_logs OWNER TO ats;
--
-- Name: import_logs_id_seq; Type: SEQUENCE; Schema: public; Owner: ats
--
CREATE SEQUENCE import_logs_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE import_logs_id_seq OWNER TO ats;
--
-- Name: import_logs_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: ats
--
ALTER SEQUENCE import_logs_id_seq OWNED BY import_logs.id;
--
-- Name: import_versions; Type: TABLE; Schema: public; Owner: ats
--
CREATE TABLE import_versions (
id bigint NOT NULL,
name character varying,
created_at timestamp(6) without time zone NOT NULL,
updated_at timestamp(6) without time zone NOT NULL
);
ALTER TABLE import_versions OWNER TO ats;
--
-- Name: import_versions_id_seq; Type: SEQUENCE; Schema: public; Owner: ats
--
CREATE SEQUENCE import_versions_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE import_versions_id_seq OWNER TO ats;
--
-- Name: import_versions_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: ats
--
ALTER SEQUENCE import_versions_id_seq OWNED BY import_versions.id;
--
-- Name: intangibles; Type: TABLE; Schema: public; Owner: ats
--
CREATE TABLE intangibles (
id bigint NOT NULL,
detail text,
noun character varying,
name character varying,
observations text,
naming_details text,
naming_date date,
created_at timestamp(6) without time zone NOT NULL,
updated_at timestamp(6) without time zone NOT NULL,
thing_id bigint
);
ALTER TABLE intangibles OWNER TO ats;
--
-- Name: intangibles_id_seq; Type: SEQUENCE; Schema: public; Owner: ats
--
CREATE SEQUENCE intangibles_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE intangibles_id_seq OWNER TO ats;
--
-- Name: intangibles_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: ats
--
ALTER SEQUENCE intangibles_id_seq OWNED BY intangibles.id;
--
-- Name: intangibles_people; Type: TABLE; Schema: public; Owner: ats
--
CREATE TABLE intangibles_people (
person_id bigint NOT NULL,
intangible_id bigint NOT NULL
);
ALTER TABLE intangibles_people OWNER TO ats;
--
-- Name: intangibles_services; Type: TABLE; Schema: public; Owner: ats
--
CREATE TABLE intangibles_services (
service_id bigint NOT NULL,
intangible_id bigint NOT NULL
);
ALTER TABLE intangibles_services OWNER TO ats;
--
-- Name: people; Type: TABLE; Schema: public; Owner: ats
--
CREATE TABLE people (
id bigint NOT NULL,
name character varying,
bio text,
sex integer,
created_at timestamp(6) without time zone NOT NULL,
updated_at timestamp(6) without time zone NOT NULL
);
ALTER TABLE people OWNER TO ats;
--
-- Name: people_id_seq; Type: SEQUENCE; Schema: public; Owner: ats
--
CREATE SEQUENCE people_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE people_id_seq OWNER TO ats;
--
-- Name: people_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: ats
--
ALTER SEQUENCE people_id_seq OWNED BY people.id;
--
-- Name: people_places; Type: TABLE; Schema: public; Owner: ats
--
CREATE TABLE people_places (
place_id bigint NOT NULL,
person_id bigint NOT NULL
);
ALTER TABLE people_places OWNER TO ats;
--
-- Name: places; Type: TABLE; Schema: public; Owner: ats
--
CREATE TABLE places (
id bigint NOT NULL,
building_id bigint NOT NULL,
type integer,
detail character varying,
name character varying,
observations text,
naming_details text,
naming_date date,
created_at timestamp(6) without time zone NOT NULL,
updated_at timestamp(6) without time zone NOT NULL,
ptype integer,
thing_id bigint
);
ALTER TABLE places OWNER TO ats;
--
-- Name: places_id_seq; Type: SEQUENCE; Schema: public; Owner: ats
--
CREATE SEQUENCE places_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE places_id_seq OWNER TO ats;
--
-- Name: places_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: ats
--
ALTER SEQUENCE places_id_seq OWNED BY places.id;
--
-- Name: schema_migrations; Type: TABLE; Schema: public; Owner: ats
--
CREATE TABLE schema_migrations (
version character varying NOT NULL
);
ALTER TABLE schema_migrations OWNER TO ats;
--
-- Name: service_data; Type: TABLE; Schema: public; Owner: ats
--
CREATE TABLE service_data (
id bigint NOT NULL,
service_id bigint NOT NULL,
stype integer,
man integer,
created_at timestamp(6) without time zone NOT NULL,
updated_at timestamp(6) without time zone NOT NULL,
woman integer,
year integer
);
ALTER TABLE service_data OWNER TO ats;
--
-- Name: service_data_id_seq; Type: SEQUENCE; Schema: public; Owner: ats
--
CREATE SEQUENCE service_data_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE service_data_id_seq OWNER TO ats;
--
-- Name: service_data_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: ats
--
ALTER SEQUENCE service_data_id_seq OWNED BY service_data.id;
--
-- Name: services; Type: TABLE; Schema: public; Owner: ats
--
CREATE TABLE services (
id bigint NOT NULL,
name character varying,
created_at timestamp(6) without time zone NOT NULL,
updated_at timestamp(6) without time zone NOT NULL
);
ALTER TABLE services OWNER TO ats;
--
-- Name: services_id_seq; Type: SEQUENCE; Schema: public; Owner: ats
--
CREATE SEQUENCE services_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE services_id_seq OWNER TO ats;
--
-- Name: services_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: ats
--
ALTER SEQUENCE services_id_seq OWNED BY services.id;
--
-- Name: things; Type: TABLE; Schema: public; Owner: ats
--
CREATE TABLE things (
id bigint NOT NULL,
name character varying,
ttype integer,
description text,
created_at timestamp(6) without time zone NOT NULL,
updated_at timestamp(6) without time zone NOT NULL
);
ALTER TABLE things OWNER TO ats;
--
-- Name: things_id_seq; Type: SEQUENCE; Schema: public; Owner: ats
--
CREATE SEQUENCE things_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE things_id_seq OWNER TO ats;
--
-- Name: things_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: ats
--
ALTER SEQUENCE things_id_seq OWNED BY things.id;
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: ats
--
ALTER TABLE ONLY active_admin_comments ALTER COLUMN id SET DEFAULT nextval('active_admin_comments_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: ats
--
ALTER TABLE ONLY active_storage_attachments ALTER COLUMN id SET DEFAULT nextval('active_storage_attachments_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: ats
--
ALTER TABLE ONLY active_storage_blobs ALTER COLUMN id SET DEFAULT nextval('active_storage_blobs_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: ats
--
ALTER TABLE ONLY active_storage_variant_records ALTER COLUMN id SET DEFAULT nextval('active_storage_variant_records_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: ats
--
ALTER TABLE ONLY admin_users ALTER COLUMN id SET DEFAULT nextval('admin_users_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: ats
--
ALTER TABLE ONLY buildings ALTER COLUMN id SET DEFAULT nextval('buildings_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: ats
--
ALTER TABLE ONLY events ALTER COLUMN id SET DEFAULT nextval('events_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: ats
--
ALTER TABLE ONLY import_logs ALTER COLUMN id SET DEFAULT nextval('import_logs_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: ats
--
ALTER TABLE ONLY import_versions ALTER COLUMN id SET DEFAULT nextval('import_versions_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: ats
--
ALTER TABLE ONLY intangibles ALTER COLUMN id SET DEFAULT nextval('intangibles_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: ats
--
ALTER TABLE ONLY people ALTER COLUMN id SET DEFAULT nextval('people_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: ats
--
ALTER TABLE ONLY places ALTER COLUMN id SET DEFAULT nextval('places_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: ats
--
ALTER TABLE ONLY service_data ALTER COLUMN id SET DEFAULT nextval('service_data_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: ats
--
ALTER TABLE ONLY services ALTER COLUMN id SET DEFAULT nextval('services_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: ats
--
ALTER TABLE ONLY things ALTER COLUMN id SET DEFAULT nextval('things_id_seq'::regclass);
--
-- Data for Name: active_admin_comments; Type: TABLE DATA; Schema: public; Owner: ats
--
COPY active_admin_comments (id, namespace, body, resource_type, resource_id, author_type, author_id, created_at, updated_at) FROM stdin;
\.
--
-- Name: active_admin_comments_id_seq; Type: SEQUENCE SET; Schema: public; Owner: ats
--
SELECT pg_catalog.setval('active_admin_comments_id_seq', 1, false);
--
-- Data for Name: active_storage_attachments; Type: TABLE DATA; Schema: public; Owner: ats
--
COPY active_storage_attachments (id, name, record_type, record_id, blob_id, created_at) FROM stdin;
\.
--
-- Name: active_storage_attachments_id_seq; Type: SEQUENCE SET; Schema: public; Owner: ats
--
SELECT pg_catalog.setval('active_storage_attachments_id_seq', 1, false);
--
-- Data for Name: active_storage_blobs; Type: TABLE DATA; Schema: public; Owner: ats
--
COPY active_storage_blobs (id, key, filename, content_type, metadata, service_name, byte_size, checksum, created_at) FROM stdin;
\.
--
-- Name: active_storage_blobs_id_seq; Type: SEQUENCE SET; Schema: public; Owner: ats
--
SELECT pg_catalog.setval('active_storage_blobs_id_seq', 1, false);
--
-- Data for Name: active_storage_variant_records; Type: TABLE DATA; Schema: public; Owner: ats
--
COPY active_storage_variant_records (id, blob_id, variation_digest) FROM stdin;
\.
--
-- Name: active_storage_variant_records_id_seq; Type: SEQUENCE SET; Schema: public; Owner: ats
--
SELECT pg_catalog.setval('active_storage_variant_records_id_seq', 1, false);
--
-- Data for Name: admin_users; Type: TABLE DATA; Schema: public; Owner: ats
--
COPY admin_users (id, email, encrypted_password, reset_password_token, reset_password_sent_at, remember_created_at, created_at, updated_at) FROM stdin;
2 admin@example.com $2a$11$Q/S8dV6UHXJUUM6lLdJAYuRUYprkCfSRh0eh6/UGNl/DHbWW0CVBC \N \N \N 2020-11-15 08:55:37.806625 2020-11-15 08:55:37.806625
\.
--
-- Name: admin_users_id_seq; Type: SEQUENCE SET; Schema: public; Owner: ats
--
SELECT pg_catalog.setval('admin_users_id_seq', 2, true);
--
-- Data for Name: ar_internal_metadata; Type: TABLE DATA; Schema: public; Owner: ats
--
COPY ar_internal_metadata (key, value, created_at, updated_at) FROM stdin;
environment development 2021-07-20 05:28:08.447943 2021-07-20 05:28:08.447943
\.
--
-- Data for Name: buildings; Type: TABLE DATA; Schema: public; Owner: ats
--
COPY buildings (id, name, address, state, created_at, updated_at) FROM stdin;
1 CURE - Playa Hermosa, Maldonado Calle 30, 20200 Playa Hermosa, Departamento de Maldonado - Parada 11, Ruta 10 \N 2021-07-20 05:31:00.816837 2021-07-20 05:31:00.816837
2 CURE - Playa Hermosa, Maldonado Calle 30, 20200 Playa Hermosa, Departamento de Maldonado - Parada 11, Ruta 11 \N 2021-07-20 05:53:58.638947 2021-07-20 05:53:58.638947
3 CURE - Playa Hermosa, Maldonado Calle 30, 20200 Playa Hermosa, Departamento de Maldonado - Parada 11, Ruta 12 \N 2021-07-20 05:53:58.723493 2021-07-20 05:53:58.723493
4 CURE - Playa Hermosa, Maldonado Calle 30, 20200 Playa Hermosa, Departamento de Maldonado - Parada 11, Ruta 13 \N 2021-07-20 05:53:58.776134 2021-07-20 05:53:58.776134
5 CURE - Playa Hermosa, Maldonado Calle 30, 20200 Playa Hermosa, Departamento de Maldonado - Parada 11, Ruta 14 \N 2021-07-20 05:53:58.840468 2021-07-20 05:53:58.840468
6 CURE - Playa Hermosa, Maldonado Calle 30, 20200 Playa Hermosa, Departamento de Maldonado - Parada 11, Ruta 15 \N 2021-07-20 05:53:58.88398 2021-07-20 05:53:58.88398
7 CURE - Playa Hermosa, Maldonado Calle 30, 20200 Playa Hermosa, Departamento de Maldonado - Parada 11, Ruta 16 \N 2021-07-20 05:53:58.926015 2021-07-20 05:53:58.926015
8 CURE - Playa Hermosa, Maldonado Calle 30, 20200 Playa Hermosa, Departamento de Maldonado - Parada 11, Ruta 17 \N 2021-07-20 05:53:59.023987 2021-07-20 05:53:59.023987
9 CURE - Playa Hermosa, Maldonado Calle 30, 20200 Playa Hermosa, Departamento de Maldonado - Parada 11, Ruta 18 \N 2021-07-20 05:53:59.057861 2021-07-20 05:53:59.057861
10 CURE - Playa Hermosa, Maldonado Calle 30, 20200 Playa Hermosa, Departamento de Maldonado - Parada 11, Ruta 19 \N 2021-07-20 05:53:59.089444 2021-07-20 05:53:59.089444
11 CURE - Playa Hermosa, Maldonado Calle 30, 20200 Playa Hermosa, Departamento de Maldonado - Parada 11, Ruta 20 \N 2021-07-20 05:53:59.141097 2021-07-20 05:53:59.141097
12 CURE - Playa Hermosa, Maldonado Calle 30, 20200 Playa Hermosa, Departamento de Maldonado - Parada 11, Ruta 21 \N 2021-07-20 05:53:59.198876 2021-07-20 05:53:59.198876
13 CURE - Playa Hermosa, Maldonado Calle 30, 20200 Playa Hermosa, Departamento de Maldonado - Parada 11, Ruta 22 \N 2021-07-20 05:53:59.234069 2021-07-20 05:53:59.234069
14 CURE - Playa Hermosa, Maldonado Calle 30, 20200 Playa Hermosa, Departamento de Maldonado - Parada 11, Ruta 23 \N 2021-07-20 05:53:59.303457 2021-07-20 05:53:59.303457
15 CURE - Playa Hermosa, Maldonado Calle 30, 20200 Playa Hermosa, Departamento de Maldonado - Parada 11, Ruta 24 \N 2021-07-20 05:53:59.351695 2021-07-20 05:53:59.351695
16 CURE - Playa Hermosa, Maldonado Calle 30, 20200 Playa Hermosa, Departamento de Maldonado - Parada 11, Ruta 25 \N 2021-07-20 05:53:59.393111 2021-07-20 05:53:59.393111
17 CURE - Playa Hermosa, Maldonado Calle 30, 20200 Playa Hermosa, Departamento de Maldonado - Parada 11, Ruta 26 \N 2021-07-20 05:53:59.423934 2021-07-20 05:53:59.423934
18 CURE - Playa Hermosa, Maldonado Calle 30, 20200 Playa Hermosa, Departamento de Maldonado - Parada 11, Ruta 27 \N 2021-07-20 05:53:59.462919 2021-07-20 05:53:59.462919
19 Edificio Central José Martí 3328 \N 2021-07-20 05:53:59.500339 2021-07-20 05:53:59.500339
20 \N \N \N 2021-07-20 05:53:59.565731 2021-07-20 05:53:59.565731
21 Ex Liceo Francés Avd. 18 de Julio 1772 \N 2021-07-20 05:53:59.578972 2021-07-20 05:53:59.578972
22 Facultad de Ciencias Igua 4225 \N 2021-07-20 05:53:59.664121 2021-07-20 05:53:59.664121
23 Facultad de Ciencias Igua 4225 - Anexo Norte \N 2021-07-20 05:53:59.725646 2021-07-20 05:53:59.725646
24 Facultad de Ciencias Iguá 4225 \N 2021-07-20 05:53:59.771797 2021-07-20 05:53:59.771797
25 Sede central Gonzalo Ramírez 1926 \N 2021-07-20 05:53:59.814837 2021-07-20 05:53:59.814837
26 IESTA Eduardo Acevedo 1139 \N 2021-07-20 05:53:59.997768 2021-07-20 05:53:59.997768
27 Sede FIC San Salvador 1944 \N 2021-07-20 05:54:00.042476 2021-07-20 05:54:00.042476
28 Edificio principal Julio Herrera y Reissig 565 \N 2021-07-20 05:54:00.139756 2021-07-20 05:54:00.139756
29 N/C N/C \N 2021-07-20 05:54:00.335674 2021-07-20 05:54:00.335674
30 Edificio Aulario N/C \N 2021-07-20 05:54:00.390977 2021-07-20 05:54:00.390977
31 Complejo El Faro Julio Herrera y Reissig 633 \N 2021-07-20 05:54:00.738172 2021-07-20 05:54:00.738172
32 Edificio INCO N/C \N 2021-07-20 05:54:00.813909 2021-07-20 05:54:00.813909
33 ISEF Sede de Parque Batlle Prof. Alberto Langlade Montevideo Parque Batlle sin número. \N 2021-07-20 05:54:00.847548 2021-07-20 05:54:00.847548
34 ISEF Sede de Malvín Norte Prof.Irene Preobrayensky Montevideo Rambla Euskal Erria 4095 \N 2021-07-20 05:54:00.906417 2021-07-20 05:54:00.906417
35 Cede central Universidad Paysandú Florida 1065 \N 2021-07-20 05:54:00.988864 2021-07-20 05:54:00.988864
36 Salón Facultad de Medicina \N 2021-07-20 05:54:01.039991 2021-07-20 05:54:01.039991
37 Anfiteatro Departamento de fisiología \N 2021-07-20 05:54:01.08955 2021-07-20 05:54:01.08955
38 Anfiteatro Departamento de anatomía \N 2021-07-20 05:54:01.124115 2021-07-20 05:54:01.124115
39 Sala Facultad de Medicina \N 2021-07-20 05:54:01.168708 2021-07-20 05:54:01.168708
40 Instituto Departamento de anatomía \N 2021-07-20 05:54:01.206769 2021-07-20 05:54:01.206769
41 Facultad de Psicología Tristán Narvaja 1674 \N 2021-07-20 05:54:01.289305 2021-07-20 05:54:01.289305
42 Edificio Central – Rectorado 18 de Julio 1824 \N 2021-07-20 05:54:01.373037 2021-07-20 05:54:01.373037
43 Edificio Central - Instituto Confucio Av. Dr. Manuel Albo 2663 \N 2021-07-20 05:54:01.424695 2021-07-20 05:54:01.424695
44 Centro Universitario de Rivera Ituzaingo 667 \N 2021-07-20 05:54:01.452344 2021-07-20 05:54:01.452344
45 Centro Universitario de Rivera Ruta 5 Guido Machado Brum, Km. 495 \N 2021-07-20 05:54:01.486853 2021-07-20 05:54:01.486853
46 Avd. 18 de Julio 1772 Comisión \N 2021-07-26 14:37:18.874246 2021-07-26 14:37:18.874246
\.
--
-- Name: buildings_id_seq; Type: SEQUENCE SET; Schema: public; Owner: ats
--
SELECT pg_catalog.setval('buildings_id_seq', 46, true);
--
-- Data for Name: buildings_services; Type: TABLE DATA; Schema: public; Owner: ats
--
COPY buildings_services (service_id, building_id) FROM stdin;
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 2
1 3
1 4
1 5
1 6
1 7
1 8
1 9
1 10
1 11
1 12
1 13
1 14
1 15
1 16
1 17
1 18
2 19
2 20
2 21
2 19
3 22
3 23
3 24
4 25
4 25
4 25
4 25
4 25
4 26
5 27
5 27
6 28
6 28
6 28
6 28
6 28
6 29
6 30
6 28
6 28
6 28
6 28
6 28
6 29
6 31
6 28
6 32
7 33
7 34
7 33
7 35
8 36
8 37
8 38
8 39
8 40
9 41
9 41
10 42
11 43
12 44
12 45
1 1
1 2
1 3
1 4
1 5
1 6
1 7
1 8
1 9
1 10
1 11
1 12
1 13
1 14
1 15
1 16
1 17
1 18
2 19
2 20
2 21
2 19
3 22