-
Notifications
You must be signed in to change notification settings - Fork 0
/
vagato.dump
1678 lines (1226 loc) · 71.1 KB
/
vagato.dump
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
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
--
SET statement_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: accommodation_equipments; Type: TABLE; Schema: public; Owner: m3dw3; Tablespace:
--
CREATE TABLE accommodation_equipments (
id integer NOT NULL,
accommodation_id integer,
equipment_id integer,
created_at timestamp without time zone,
updated_at timestamp without time zone
);
ALTER TABLE public.accommodation_equipments OWNER TO m3dw3;
--
-- Name: accommodation_equipments_id_seq; Type: SEQUENCE; Schema: public; Owner: m3dw3
--
CREATE SEQUENCE accommodation_equipments_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.accommodation_equipments_id_seq OWNER TO m3dw3;
--
-- Name: accommodation_equipments_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: m3dw3
--
ALTER SEQUENCE accommodation_equipments_id_seq OWNED BY accommodation_equipments.id;
--
-- Name: accommodations; Type: TABLE; Schema: public; Owner: m3dw3; Tablespace:
--
CREATE TABLE accommodations (
id integer NOT NULL,
name character varying,
code character varying,
description text,
owner_id integer,
categry_id integer,
created_at timestamp without time zone,
updated_at timestamp without time zone,
image_file_name character varying,
image_content_type character varying,
image_file_size integer,
image_updated_at timestamp without time zone
);
ALTER TABLE public.accommodations OWNER TO m3dw3;
--
-- Name: accommodations_id_seq; Type: SEQUENCE; Schema: public; Owner: m3dw3
--
CREATE SEQUENCE accommodations_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.accommodations_id_seq OWNER TO m3dw3;
--
-- Name: accommodations_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: m3dw3
--
ALTER SEQUENCE accommodations_id_seq OWNED BY accommodations.id;
--
-- Name: accommodations_serviices; Type: TABLE; Schema: public; Owner: m3dw3; Tablespace:
--
CREATE TABLE accommodations_serviices (
accommodation_id integer,
serviice_id integer
);
ALTER TABLE public.accommodations_serviices OWNER TO m3dw3;
--
-- Name: addresses; Type: TABLE; Schema: public; Owner: m3dw3; Tablespace:
--
CREATE TABLE addresses (
id integer NOT NULL,
country character varying,
zip character varying,
city character varying,
address character varying,
latitude double precision,
longitude double precision,
addressable_id integer,
addressable_type character varying,
created_at timestamp without time zone,
updated_at timestamp without time zone
);
ALTER TABLE public.addresses OWNER TO m3dw3;
--
-- Name: addresses_id_seq; Type: SEQUENCE; Schema: public; Owner: m3dw3
--
CREATE SEQUENCE addresses_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.addresses_id_seq OWNER TO m3dw3;
--
-- Name: addresses_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: m3dw3
--
ALTER SEQUENCE addresses_id_seq OWNED BY addresses.id;
--
-- Name: admins; Type: TABLE; Schema: public; Owner: m3dw3; Tablespace:
--
CREATE TABLE admins (
id integer NOT NULL,
name character varying,
phone character varying,
created_at timestamp without time zone NOT NULL,
updated_at timestamp without time zone NOT NULL
);
ALTER TABLE public.admins OWNER TO m3dw3;
--
-- Name: admins_id_seq; Type: SEQUENCE; Schema: public; Owner: m3dw3
--
CREATE SEQUENCE admins_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.admins_id_seq OWNER TO m3dw3;
--
-- Name: admins_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: m3dw3
--
ALTER SEQUENCE admins_id_seq OWNED BY admins.id;
--
-- Name: bookings; Type: TABLE; Schema: public; Owner: m3dw3; Tablespace:
--
CREATE TABLE bookings (
id integer NOT NULL,
start_date date,
end_date date,
num_of_nights integer,
state character varying,
guest_id integer,
created_at timestamp without time zone NOT NULL,
updated_at timestamp without time zone NOT NULL
);
ALTER TABLE public.bookings OWNER TO m3dw3;
--
-- Name: bookings_guests; Type: TABLE; Schema: public; Owner: m3dw3; Tablespace:
--
CREATE TABLE bookings_guests (
id integer NOT NULL,
guest_id integer,
booking_id integer,
room_id integer,
role character varying,
created_at timestamp without time zone,
updated_at timestamp without time zone,
bed integer,
room_index integer
);
ALTER TABLE public.bookings_guests OWNER TO m3dw3;
--
-- Name: bookings_guests_id_seq; Type: SEQUENCE; Schema: public; Owner: m3dw3
--
CREATE SEQUENCE bookings_guests_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.bookings_guests_id_seq OWNER TO m3dw3;
--
-- Name: bookings_guests_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: m3dw3
--
ALTER SEQUENCE bookings_guests_id_seq OWNED BY bookings_guests.id;
--
-- Name: bookings_id_seq; Type: SEQUENCE; Schema: public; Owner: m3dw3
--
CREATE SEQUENCE bookings_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.bookings_id_seq OWNER TO m3dw3;
--
-- Name: bookings_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: m3dw3
--
ALTER SEQUENCE bookings_id_seq OWNED BY bookings.id;
--
-- Name: bookings_rooms; Type: TABLE; Schema: public; Owner: m3dw3; Tablespace:
--
CREATE TABLE bookings_rooms (
id integer NOT NULL,
booking_id integer,
room_id integer,
status character varying,
created_at timestamp without time zone,
updated_at timestamp without time zone,
index integer
);
ALTER TABLE public.bookings_rooms OWNER TO m3dw3;
--
-- Name: bookings_rooms_id_seq; Type: SEQUENCE; Schema: public; Owner: m3dw3
--
CREATE SEQUENCE bookings_rooms_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.bookings_rooms_id_seq OWNER TO m3dw3;
--
-- Name: bookings_rooms_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: m3dw3
--
ALTER SEQUENCE bookings_rooms_id_seq OWNED BY bookings_rooms.id;
--
-- Name: categries; Type: TABLE; Schema: public; Owner: m3dw3; Tablespace:
--
CREATE TABLE categries (
id integer NOT NULL,
name character varying,
code character varying,
value integer,
created_at timestamp without time zone,
updated_at timestamp without time zone
);
ALTER TABLE public.categries OWNER TO m3dw3;
--
-- Name: categries_id_seq; Type: SEQUENCE; Schema: public; Owner: m3dw3
--
CREATE SEQUENCE categries_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.categries_id_seq OWNER TO m3dw3;
--
-- Name: categries_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: m3dw3
--
ALTER SEQUENCE categries_id_seq OWNED BY categries.id;
--
-- Name: comments; Type: TABLE; Schema: public; Owner: m3dw3; Tablespace:
--
CREATE TABLE comments (
id integer NOT NULL,
stars integer,
text text,
guest_id integer,
accommodation_id integer,
booking_id integer,
created_at timestamp without time zone NOT NULL,
updated_at timestamp without time zone NOT NULL
);
ALTER TABLE public.comments OWNER TO m3dw3;
--
-- Name: comments_id_seq; Type: SEQUENCE; Schema: public; Owner: m3dw3
--
CREATE SEQUENCE comments_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.comments_id_seq OWNER TO m3dw3;
--
-- Name: comments_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: m3dw3
--
ALTER SEQUENCE comments_id_seq OWNED BY comments.id;
--
-- Name: equipment; Type: TABLE; Schema: public; Owner: m3dw3; Tablespace:
--
CREATE TABLE equipment (
id integer NOT NULL,
name character varying,
code character varying,
created_at timestamp without time zone,
updated_at timestamp without time zone
);
ALTER TABLE public.equipment OWNER TO m3dw3;
--
-- Name: equipment_id_seq; Type: SEQUENCE; Schema: public; Owner: m3dw3
--
CREATE SEQUENCE equipment_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.equipment_id_seq OWNER TO m3dw3;
--
-- Name: equipment_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: m3dw3
--
ALTER SEQUENCE equipment_id_seq OWNED BY equipment.id;
--
-- Name: equipment_rooms; Type: TABLE; Schema: public; Owner: m3dw3; Tablespace:
--
CREATE TABLE equipment_rooms (
id integer NOT NULL,
room_id integer,
equipment_id integer,
created_at timestamp without time zone,
updated_at timestamp without time zone
);
ALTER TABLE public.equipment_rooms OWNER TO m3dw3;
--
-- Name: equipment_rooms_id_seq; Type: SEQUENCE; Schema: public; Owner: m3dw3
--
CREATE SEQUENCE equipment_rooms_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.equipment_rooms_id_seq OWNER TO m3dw3;
--
-- Name: equipment_rooms_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: m3dw3
--
ALTER SEQUENCE equipment_rooms_id_seq OWNED BY equipment_rooms.id;
--
-- Name: guests; Type: TABLE; Schema: public; Owner: m3dw3; Tablespace:
--
CREATE TABLE guests (
id integer NOT NULL,
name character varying,
phone character varying,
day_of_birth date,
guest_id integer,
created_at timestamp without time zone NOT NULL,
updated_at timestamp without time zone NOT NULL
);
ALTER TABLE public.guests OWNER TO m3dw3;
--
-- Name: guests_id_seq; Type: SEQUENCE; Schema: public; Owner: m3dw3
--
CREATE SEQUENCE guests_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.guests_id_seq OWNER TO m3dw3;
--
-- Name: guests_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: m3dw3
--
ALTER SEQUENCE guests_id_seq OWNED BY guests.id;
--
-- Name: owners; Type: TABLE; Schema: public; Owner: m3dw3; Tablespace:
--
CREATE TABLE owners (
id integer NOT NULL,
name character varying,
created_at timestamp without time zone NOT NULL,
updated_at timestamp without time zone NOT NULL
);
ALTER TABLE public.owners OWNER TO m3dw3;
--
-- Name: owners_id_seq; Type: SEQUENCE; Schema: public; Owner: m3dw3
--
CREATE SEQUENCE owners_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.owners_id_seq OWNER TO m3dw3;
--
-- Name: owners_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: m3dw3
--
ALTER SEQUENCE owners_id_seq OWNED BY owners.id;
--
-- Name: prices; Type: TABLE; Schema: public; Owner: m3dw3; Tablespace:
--
CREATE TABLE prices (
id integer NOT NULL,
value double precision,
currency character varying,
ifa double precision,
vat double precision,
room_id integer,
created_at timestamp without time zone,
updated_at timestamp without time zone
);
ALTER TABLE public.prices OWNER TO m3dw3;
--
-- Name: prices_id_seq; Type: SEQUENCE; Schema: public; Owner: m3dw3
--
CREATE SEQUENCE prices_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.prices_id_seq OWNER TO m3dw3;
--
-- Name: prices_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: m3dw3
--
ALTER SEQUENCE prices_id_seq OWNED BY prices.id;
--
-- Name: properties; Type: TABLE; Schema: public; Owner: m3dw3; Tablespace:
--
CREATE TABLE properties (
id integer NOT NULL,
key character varying,
value text,
"group" character varying,
created_at timestamp without time zone NOT NULL,
updated_at timestamp without time zone NOT NULL,
title character varying
);
ALTER TABLE public.properties OWNER TO m3dw3;
--
-- Name: properties_id_seq; Type: SEQUENCE; Schema: public; Owner: m3dw3
--
CREATE SEQUENCE properties_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.properties_id_seq OWNER TO m3dw3;
--
-- Name: properties_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: m3dw3
--
ALTER SEQUENCE properties_id_seq OWNED BY properties.id;
--
-- Name: rooms; Type: TABLE; Schema: public; Owner: m3dw3; Tablespace:
--
CREATE TABLE rooms (
id integer NOT NULL,
name character varying,
code character varying,
accommodation_id integer,
num_of_this integer,
capacity integer,
description text,
created_at timestamp without time zone,
updated_at timestamp without time zone,
image_file_name character varying,
image_content_type character varying,
image_file_size integer,
image_updated_at timestamp without time zone
);
ALTER TABLE public.rooms OWNER TO m3dw3;
--
-- Name: rooms_id_seq; Type: SEQUENCE; Schema: public; Owner: m3dw3
--
CREATE SEQUENCE rooms_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.rooms_id_seq OWNER TO m3dw3;
--
-- Name: rooms_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: m3dw3
--
ALTER SEQUENCE rooms_id_seq OWNED BY rooms.id;
--
-- Name: schema_migrations; Type: TABLE; Schema: public; Owner: m3dw3; Tablespace:
--
CREATE TABLE schema_migrations (
version character varying NOT NULL
);
ALTER TABLE public.schema_migrations OWNER TO m3dw3;
--
-- Name: serviices; Type: TABLE; Schema: public; Owner: m3dw3; Tablespace:
--
CREATE TABLE serviices (
id integer NOT NULL,
name character varying,
code character varying,
created_at timestamp without time zone,
updated_at timestamp without time zone
);
ALTER TABLE public.serviices OWNER TO m3dw3;
--
-- Name: serviices_id_seq; Type: SEQUENCE; Schema: public; Owner: m3dw3
--
CREATE SEQUENCE serviices_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.serviices_id_seq OWNER TO m3dw3;
--
-- Name: serviices_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: m3dw3
--
ALTER SEQUENCE serviices_id_seq OWNED BY serviices.id;
--
-- Name: users; Type: TABLE; Schema: public; Owner: m3dw3; Tablespace:
--
CREATE TABLE users (
id integer 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,
sign_in_count integer DEFAULT 0 NOT NULL,
current_sign_in_at timestamp without time zone,
last_sign_in_at timestamp without time zone,
current_sign_in_ip inet,
last_sign_in_ip inet,
role_type character varying,
role_id integer,
created_at timestamp without time zone,
updated_at timestamp without time zone
);
ALTER TABLE public.users OWNER TO m3dw3;
--
-- Name: users_id_seq; Type: SEQUENCE; Schema: public; Owner: m3dw3
--
CREATE SEQUENCE users_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.users_id_seq OWNER TO m3dw3;
--
-- Name: users_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: m3dw3
--
ALTER SEQUENCE users_id_seq OWNED BY users.id;
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: m3dw3
--
ALTER TABLE ONLY accommodation_equipments ALTER COLUMN id SET DEFAULT nextval('accommodation_equipments_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: m3dw3
--
ALTER TABLE ONLY accommodations ALTER COLUMN id SET DEFAULT nextval('accommodations_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: m3dw3
--
ALTER TABLE ONLY addresses ALTER COLUMN id SET DEFAULT nextval('addresses_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: m3dw3
--
ALTER TABLE ONLY admins ALTER COLUMN id SET DEFAULT nextval('admins_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: m3dw3
--
ALTER TABLE ONLY bookings ALTER COLUMN id SET DEFAULT nextval('bookings_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: m3dw3
--
ALTER TABLE ONLY bookings_guests ALTER COLUMN id SET DEFAULT nextval('bookings_guests_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: m3dw3
--
ALTER TABLE ONLY bookings_rooms ALTER COLUMN id SET DEFAULT nextval('bookings_rooms_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: m3dw3
--
ALTER TABLE ONLY categries ALTER COLUMN id SET DEFAULT nextval('categries_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: m3dw3
--
ALTER TABLE ONLY comments ALTER COLUMN id SET DEFAULT nextval('comments_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: m3dw3
--
ALTER TABLE ONLY equipment ALTER COLUMN id SET DEFAULT nextval('equipment_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: m3dw3
--
ALTER TABLE ONLY equipment_rooms ALTER COLUMN id SET DEFAULT nextval('equipment_rooms_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: m3dw3
--
ALTER TABLE ONLY guests ALTER COLUMN id SET DEFAULT nextval('guests_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: m3dw3
--
ALTER TABLE ONLY owners ALTER COLUMN id SET DEFAULT nextval('owners_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: m3dw3
--
ALTER TABLE ONLY prices ALTER COLUMN id SET DEFAULT nextval('prices_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: m3dw3
--
ALTER TABLE ONLY properties ALTER COLUMN id SET DEFAULT nextval('properties_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: m3dw3
--
ALTER TABLE ONLY rooms ALTER COLUMN id SET DEFAULT nextval('rooms_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: m3dw3
--
ALTER TABLE ONLY serviices ALTER COLUMN id SET DEFAULT nextval('serviices_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: m3dw3
--
ALTER TABLE ONLY users ALTER COLUMN id SET DEFAULT nextval('users_id_seq'::regclass);
--
-- Data for Name: accommodation_equipments; Type: TABLE DATA; Schema: public; Owner: m3dw3
--
COPY accommodation_equipments (id, accommodation_id, equipment_id, created_at, updated_at) FROM stdin;
\.
--
-- Name: accommodation_equipments_id_seq; Type: SEQUENCE SET; Schema: public; Owner: m3dw3
--
SELECT pg_catalog.setval('accommodation_equipments_id_seq', 1, false);
--
-- Data for Name: accommodations; Type: TABLE DATA; Schema: public; Owner: m3dw3
--
COPY accommodations (id, name, code, description, owner_id, categry_id, created_at, updated_at, image_file_name, image_content_type, image_file_size, image_updated_at) FROM stdin;
2 Hotel 1 \N Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec nec dui dictum, vestibulum ante non, vestibulum enim. Nunc convallis neque eu elit mollis, nec tincidunt ex viverra. Pellentesque posuere, ex vitae dapibus viverra, justo libero vestibulum nunc, et congue leo velit a nisi. Aenean et scelerisque mi. Fusce nec molestie magna. Integer fringilla auctor metus sed commodo. Sed at aliquet neque. Nunc faucibus porta consectetur. Cras ac dui consectetur, rutrum magna consequat, eleifend tortor.\r\n\r\nCras dolor diam, tempus nec scelerisque vel, pretium sit amet nulla. Etiam luctus leo sed ipsum tincidunt, id ornare leo vestibulum. Maecenas nisi elit, cursus non fermentum quis, viverra et massa. In sollicitudin justo tortor, id efficitur dolor volutpat sed. Proin ac metus odio. Integer tempus ac purus a mattis. Pellentesque accumsan dolor mattis dui pellentesque viverra. 2 5 2015-02-20 16:09:09.067244 2015-03-27 17:19:23.741037 hotel1.jpg image/jpeg 225926 2015-03-27 17:19:23.030537
3 Hotel 2 \N Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec nec dui dictum, vestibulum ante non, vestibulum enim. Nunc convallis neque eu elit mollis, nec tincidunt ex viverra. Pellentesque posuere, ex vitae dapibus viverra, justo libero vestibulum nunc, et congue leo velit a nisi. Aenean et scelerisque mi. Fusce nec molestie magna. Integer fringilla auctor metus sed commodo. Sed at aliquet neque. Nunc faucibus porta consectetur. Cras ac dui consectetur, rutrum magna consequat, eleifend tortor.\r\n\r\nCras dolor diam, tempus nec scelerisque vel, pretium sit amet nulla. Etiam luctus leo sed ipsum tincidunt, id ornare leo vestibulum. Maecenas nisi elit, cursus non fermentum quis, viverra et massa. In sollicitudin justo tortor, id efficitur dolor volutpat sed. Proin ac metus odio. Integer tempus ac purus a mattis. Pellentesque accumsan dolor mattis dui pellentesque viverra. 3 4 2015-02-20 16:18:08.967696 2015-03-27 17:20:48.040515 hotel2.jpg image/jpeg 188728 2015-03-27 17:20:47.650846
4 Hotel 3 \N Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam ut massa at est cursus dictum ut sed nisl. Sed elementum a leo consectetur dignissim. Etiam non faucibus ex, sed molestie velit. Phasellus elementum hendrerit lectus at interdum. Aenean iaculis vestibulum ultrices. Vivamus a risus rhoncus, ultrices eros sit amet, ultricies ipsum. Integer in turpis ligula. Vivamus molestie dictum purus, quis tempus diam tincidunt nec. Pellentesque sagittis nunc tortor, id rhoncus felis lobortis ac. Sed felis justo, cursus eget nisi rutrum, luctus maximus arcu. Nunc elementum dapibus pharetra. Aliquam dapibus justo et ornare luctus. Phasellus tempor suscipit suscipit. Nam dignissim aliquet consequat. Morbi dapibus efficitur ante, quis interdum nisi. Sed elit nibh, sollicitudin quis dapibus sit amet, tempus sit amet risus.\r\n\r\nInteger sed turpis pharetra, lobortis augue vel, porttitor dolor. Ut faucibus efficitur libero, in consectetur nunc ullamcorper in. Donec efficitur gravida sem at semper. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Integer malesuada nisi arcu, egestas feugiat purus venenatis at. Nulla facilisi. Donec maximus ultrices dolor, non viverra arcu viverra in. Vestibulum tempus non eros sit amet gravida. Proin molestie consectetur lacus quis pellentesque. Suspendisse maximus mi quis nisl dictum, quis egestas eros molestie. Nam aliquam tempus risus, in dignissim massa sollicitudin non. Phasellus nunc orci, imperdiet in nunc ac, lobortis mattis felis. Proin ante odio, ornare vel magna vitae, eleifend facilisis dolor. Nam suscipit quis lacus id porta. Vestibulum euismod vehicula justo. 4 3 2015-02-20 16:22:43.934142 2015-03-27 17:23:46.588471 hotel3.jpg image/jpeg 1020563 2015-03-27 17:23:45.950071
5 Hotel 4 \N Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam ut massa at est cursus dictum ut sed nisl. Sed elementum a leo consectetur dignissim. Etiam non faucibus ex, sed molestie velit. Phasellus elementum hendrerit lectus at interdum. Aenean iaculis vestibulum ultrices. Vivamus a risus rhoncus, ultrices eros sit amet, ultricies ipsum. Integer in turpis ligula. Vivamus molestie dictum purus, quis tempus diam tincidunt nec. Pellentesque sagittis nunc tortor, id rhoncus felis lobortis ac. Sed felis justo, cursus eget nisi rutrum, luctus maximus arcu. Nunc elementum dapibus pharetra. Aliquam dapibus justo et ornare luctus. Phasellus tempor suscipit suscipit. Nam dignissim aliquet consequat. Morbi dapibus efficitur ante, quis interdum nisi. Sed elit nibh, sollicitudin quis dapibus sit amet, tempus sit amet risus.\r\n\r\nInteger sed turpis pharetra, lobortis augue vel, porttitor dolor. Ut faucibus efficitur libero, in consectetur nunc ullamcorper in. Donec efficitur gravida sem at semper. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Integer malesuada nisi arcu, egestas feugiat purus venenatis at. Nulla facilisi. Donec maximus ultrices dolor, non viverra arcu viverra in. Vestibulum tempus non eros sit amet gravida. Proin molestie consectetur lacus quis pellentesque. Suspendisse maximus mi quis nisl dictum, quis egestas eros molestie. Nam aliquam tempus risus, in dignissim massa sollicitudin non. Phasellus nunc orci, imperdiet in nunc ac, lobortis mattis felis. Proin ante odio, ornare vel magna vitae, eleifend facilisis dolor. Nam suscipit quis lacus id porta. Vestibulum euismod vehicula justo. 4 4 2015-02-20 16:23:47.184568 2015-03-27 17:24:13.201612 hotel4.jpg image/jpeg 227782 2015-03-27 17:24:12.816145
6 Hotel Lővér Sopron \N Lorem ipsum dolor sit amet, consectetur adipiscing elit. In nec tincidunt justo. Suspendisse potenti. Nunc vehicula cursus sagittis. Etiam mollis justo leo, vitae consequat diam sollicitudin sed. Etiam tincidunt, nibh vestibulum faucibus condimentum, odio massa dictum turpis, a cursus enim nibh quis ante. Nulla facilisi. Ut viverra est vitae neque laoreet, finibus aliquam nisi ultricies. Etiam tempor, nunc eget viverra aliquam, felis nibh finibus sapien, vitae aliquet ante diam eget purus. Nam eleifend elementum massa in luctus. Nullam varius sapien ipsum. Sed ut nunc libero. 2 3 2015-03-29 08:53:23.91417 2015-03-29 08:53:23.91417 \N \N \N \N
7 Hotel Sopron \N Lorem ipsum dolor sit amet, consectetur adipiscing elit. In nec tincidunt justo. Suspendisse potenti. Nunc vehicula cursus sagittis. Etiam mollis justo leo, vitae consequat diam sollicitudin sed. Etiam tincidunt, nibh vestibulum faucibus condimentum, odio massa dictum turpis, a cursus enim nibh quis ante. Nulla facilisi. Ut viverra est vitae neque laoreet, finibus aliquam nisi ultricies. Etiam tempor, nunc eget viverra aliquam, felis nibh finibus sapien, vitae aliquet ante diam eget purus. Nam eleifend elementum massa in luctus. Nullam varius sapien ipsum. Sed ut nunc libero. 2 4 2015-03-29 08:59:38.763643 2015-03-29 08:59:38.763643 \N \N \N \N
8 Hotel Szieszta \N Lorem ipsum dolor sit amet, consectetur adipiscing elit. In nec tincidunt justo. Suspendisse potenti. Nunc vehicula cursus sagittis. Etiam mollis justo leo, vitae consequat diam sollicitudin sed. Etiam tincidunt, nibh vestibulum faucibus condimentum, odio massa dictum turpis, a cursus enim nibh quis ante. Nulla facilisi. Ut viverra est vitae neque laoreet, finibus aliquam nisi ultricies. Etiam tempor, nunc eget viverra aliquam, felis nibh finibus sapien, vitae aliquet ante diam eget purus. Nam eleifend elementum massa in luctus. Nullam varius sapien ipsum. Sed ut nunc libero. 2 3 2015-03-29 09:13:05.921333 2015-03-29 09:13:05.921333 \N \N \N \N
\.
--
-- Name: accommodations_id_seq; Type: SEQUENCE SET; Schema: public; Owner: m3dw3
--
SELECT pg_catalog.setval('accommodations_id_seq', 17, true);
--
-- Data for Name: accommodations_serviices; Type: TABLE DATA; Schema: public; Owner: m3dw3
--
COPY accommodations_serviices (accommodation_id, serviice_id) FROM stdin;
2 1
2 3
2 5
3 3
3 5
4 3
4 5
5 3
5 4
5 5
6 1
6 2
6 3
6 4
6 5
7 1
7 2
7 5
8 1
8 2
8 3
8 4
8 5
2 1
2 3
2 5
3 3
3 5
4 3
4 5
5 3
5 4
5 5
6 1
6 2
6 3
6 4
6 5
7 1
7 2
7 5
8 1
8 2
8 3
8 4
8 5
9 3
9 4
9 5
10 1
10 2
10 3
10 4
10 5
11 3
11 5
12 1
12 2
12 3
12 4
12 5
13 3
13 5
14 4
14 5
15 1
15 3
15 4
15 5
16 1
16 3
16 4
16 5
17 5
\.
--
-- Data for Name: addresses; Type: TABLE DATA; Schema: public; Owner: m3dw3
--