-
Notifications
You must be signed in to change notification settings - Fork 1
/
_postgres_seeder.sql
1602 lines (1116 loc) · 60.5 KB
/
_postgres_seeder.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
--
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;
--
-- Name: setup; Type: TYPE; Schema: public; Owner: michielswaanen
--
CREATE TYPE setup AS ENUM (
'EMAIL_VERIFICATION',
'INFORMATION_SETUP',
'AVATAR_SETUP',
'FINISHED'
);
ALTER TYPE setup OWNER TO michielswaanen;
SET default_tablespace = '';
SET default_with_oids = false;
--
-- Name: account; Type: TABLE; Schema: public; Owner: michielswaanen; Tablespace:
--
CREATE TABLE account (
account_id integer NOT NULL,
first_name character varying(35),
last_name character varying(35),
email character varying(50),
password character varying(256),
birth_date date,
city character varying(35),
phone character varying(35),
avatar character varying(100),
setup_process setup DEFAULT 'EMAIL_VERIFICATION'::setup,
admin boolean DEFAULT false,
created_at timestamp without time zone DEFAULT now(),
deleted boolean DEFAULT false
);
ALTER TABLE account OWNER TO michielswaanen;
--
-- Name: account_account_id_seq; Type: SEQUENCE; Schema: public; Owner: michielswaanen
--
CREATE SEQUENCE account_account_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE account_account_id_seq OWNER TO michielswaanen;
--
-- Name: account_account_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: michielswaanen
--
ALTER SEQUENCE account_account_id_seq OWNED BY account.account_id;
--
-- Name: account_confirmation; Type: TABLE; Schema: public; Owner: michielswaanen; Tablespace:
--
CREATE TABLE account_confirmation (
account_id integer,
confirmation_code integer,
expires_at timestamp without time zone DEFAULT (now() + '01:00:00'::interval)
);
ALTER TABLE account_confirmation OWNER TO michielswaanen;
--
-- Name: account_recovery; Type: TABLE; Schema: public; Owner: michielswaanen; Tablespace:
--
CREATE TABLE account_recovery (
account_recovery_id integer NOT NULL,
account_id integer,
recovery_code integer,
expires_at timestamp without time zone DEFAULT (now() + '01:00:00'::interval),
created_at timestamp without time zone DEFAULT now(),
deleted boolean DEFAULT false
);
ALTER TABLE account_recovery OWNER TO michielswaanen;
--
-- Name: account_recovery_account_recovery_id_seq; Type: SEQUENCE; Schema: public; Owner: michielswaanen
--
CREATE SEQUENCE account_recovery_account_recovery_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE account_recovery_account_recovery_id_seq OWNER TO michielswaanen;
--
-- Name: account_recovery_account_recovery_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: michielswaanen
--
ALTER SEQUENCE account_recovery_account_recovery_id_seq OWNED BY account_recovery.account_recovery_id;
--
-- Name: artist; Type: TABLE; Schema: public; Owner: michielswaanen; Tablespace:
--
CREATE TABLE artist (
artist_id integer NOT NULL,
genre_id integer,
name character varying(50),
avatar character varying(100)
);
ALTER TABLE artist OWNER TO michielswaanen;
--
-- Name: artist_artist_id_seq; Type: SEQUENCE; Schema: public; Owner: michielswaanen
--
CREATE SEQUENCE artist_artist_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE artist_artist_id_seq OWNER TO michielswaanen;
--
-- Name: artist_artist_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: michielswaanen
--
ALTER SEQUENCE artist_artist_id_seq OWNED BY artist.artist_id;
--
-- Name: booking; Type: TABLE; Schema: public; Owner: michielswaanen; Tablespace:
--
CREATE TABLE booking (
booking_id integer NOT NULL,
artist_id integer,
party_id integer,
start_time_performance timestamp without time zone,
end_time_performance timestamp without time zone,
cancelled boolean DEFAULT false
);
ALTER TABLE booking OWNER TO michielswaanen;
--
-- Name: booking_booking_id_seq; Type: SEQUENCE; Schema: public; Owner: michielswaanen
--
CREATE SEQUENCE booking_booking_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE booking_booking_id_seq OWNER TO michielswaanen;
--
-- Name: booking_booking_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: michielswaanen
--
ALTER SEQUENCE booking_booking_id_seq OWNED BY booking.booking_id;
--
-- Name: chat; Type: TABLE; Schema: public; Owner: michielswaanen; Tablespace:
--
CREATE TABLE chat (
chat_id integer NOT NULL,
account_id integer,
organizer_id integer,
sent_by_organizer boolean,
message character varying(256),
seen boolean DEFAULT false,
deleted boolean DEFAULT false,
created_at timestamp without time zone DEFAULT now()
);
ALTER TABLE chat OWNER TO michielswaanen;
--
-- Name: chat_chat_id_seq; Type: SEQUENCE; Schema: public; Owner: michielswaanen
--
CREATE SEQUENCE chat_chat_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE chat_chat_id_seq OWNER TO michielswaanen;
--
-- Name: chat_chat_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: michielswaanen
--
ALTER SEQUENCE chat_chat_id_seq OWNED BY chat.chat_id;
--
-- Name: following; Type: TABLE; Schema: public; Owner: michielswaanen; Tablespace:
--
CREATE TABLE following (
follower_account_id integer,
following_account_id integer,
following_party_id integer,
created_at timestamp without time zone DEFAULT now()
);
ALTER TABLE following OWNER TO michielswaanen;
--
-- Name: genre; Type: TABLE; Schema: public; Owner: michielswaanen; Tablespace:
--
CREATE TABLE genre (
genre_id integer NOT NULL,
name character varying(25),
popularity integer,
background_image character varying(50)
);
ALTER TABLE genre OWNER TO michielswaanen;
--
-- Name: genre_genre_id_seq; Type: SEQUENCE; Schema: public; Owner: michielswaanen
--
CREATE SEQUENCE genre_genre_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE genre_genre_id_seq OWNER TO michielswaanen;
--
-- Name: genre_genre_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: michielswaanen
--
ALTER SEQUENCE genre_genre_id_seq OWNED BY genre.genre_id;
--
-- Name: menu; Type: TABLE; Schema: public; Owner: michielswaanen; Tablespace:
--
CREATE TABLE menu (
menu_id integer NOT NULL,
party_id integer,
name character varying(50),
price_in_coupons integer,
age_restriction integer,
created_at timestamp without time zone DEFAULT now()
);
ALTER TABLE menu OWNER TO michielswaanen;
--
-- Name: menu_menu_id_seq; Type: SEQUENCE; Schema: public; Owner: michielswaanen
--
CREATE SEQUENCE menu_menu_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE menu_menu_id_seq OWNER TO michielswaanen;
--
-- Name: menu_menu_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: michielswaanen
--
ALTER SEQUENCE menu_menu_id_seq OWNED BY menu.menu_id;
--
-- Name: message; Type: TABLE; Schema: public; Owner: michielswaanen; Tablespace:
--
CREATE TABLE message (
message_id integer NOT NULL,
type character varying(25),
message character varying(511),
created_at timestamp without time zone DEFAULT now(),
deleted boolean DEFAULT false
);
ALTER TABLE message OWNER TO michielswaanen;
--
-- Name: message_message_id_seq; Type: SEQUENCE; Schema: public; Owner: michielswaanen
--
CREATE SEQUENCE message_message_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE message_message_id_seq OWNER TO michielswaanen;
--
-- Name: message_message_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: michielswaanen
--
ALTER SEQUENCE message_message_id_seq OWNED BY message.message_id;
--
-- Name: notification; Type: TABLE; Schema: public; Owner: michielswaanen; Tablespace:
--
CREATE TABLE notification (
notification_id integer NOT NULL,
party_id integer,
message_id integer,
account_id integer,
action character varying(100),
visible timestamp without time zone DEFAULT now(),
opened boolean DEFAULT false,
created_at timestamp without time zone DEFAULT now()
);
ALTER TABLE notification OWNER TO michielswaanen;
--
-- Name: notification_notification_id_seq; Type: SEQUENCE; Schema: public; Owner: michielswaanen
--
CREATE SEQUENCE notification_notification_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE notification_notification_id_seq OWNER TO michielswaanen;
--
-- Name: notification_notification_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: michielswaanen
--
ALTER SEQUENCE notification_notification_id_seq OWNED BY notification.notification_id;
--
-- Name: organizer; Type: TABLE; Schema: public; Owner: michielswaanen; Tablespace:
--
CREATE TABLE organizer (
organizer_id integer NOT NULL,
account_id integer,
organisation_name character varying(35),
description character varying(511),
contact_phone character varying(20),
contact_email character varying(50),
verified boolean DEFAULT false,
avatar character varying(100) DEFAULT './public/images/uploaded/organizer/avatar/organizer-0.jpg'::character varying,
created_at timestamp without time zone DEFAULT now(),
deleted boolean DEFAULT false
);
ALTER TABLE organizer OWNER TO michielswaanen;
--
-- Name: organizer_organizer_id_seq; Type: SEQUENCE; Schema: public; Owner: michielswaanen
--
CREATE SEQUENCE organizer_organizer_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE organizer_organizer_id_seq OWNER TO michielswaanen;
--
-- Name: organizer_organizer_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: michielswaanen
--
ALTER SEQUENCE organizer_organizer_id_seq OWNED BY organizer.organizer_id;
--
-- Name: party; Type: TABLE; Schema: public; Owner: michielswaanen; Tablespace:
--
CREATE TABLE party (
party_id integer NOT NULL,
genre_id integer,
organizer_id integer,
name character varying(50),
description character varying(511),
card_image character varying(100),
background_image character varying(100),
trailer_video character varying(100) DEFAULT NULL::character varying,
province character varying(35),
city character varying(35),
address character varying(35),
created_at timestamp without time zone DEFAULT now(),
deleted boolean DEFAULT false,
active boolean DEFAULT false
);
ALTER TABLE party OWNER TO michielswaanen;
--
-- Name: party_information; Type: TABLE; Schema: public; Owner: michielswaanen; Tablespace:
--
CREATE TABLE party_information (
party_id integer,
social_facebook character varying(100),
social_instagram character varying(100),
social_twitter character varying(100),
start_time_party timestamp without time zone,
end_time_party timestamp without time zone,
age_restriction integer,
coupon_price double precision,
coupon_amount_buy_in integer,
cloakroom_price double precision,
start_time_hh timestamp without time zone,
end_time_hh timestamp without time zone
);
ALTER TABLE party_information OWNER TO michielswaanen;
--
-- Name: party_party_id_seq; Type: SEQUENCE; Schema: public; Owner: michielswaanen
--
CREATE SEQUENCE party_party_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE party_party_id_seq OWNER TO michielswaanen;
--
-- Name: party_party_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: michielswaanen
--
ALTER SEQUENCE party_party_id_seq OWNED BY party.party_id;
--
-- Name: party_photo; Type: TABLE; Schema: public; Owner: michielswaanen; Tablespace:
--
CREATE TABLE party_photo (
party_photo_id integer NOT NULL,
party_id integer,
path character varying(100),
deleted boolean DEFAULT false
);
ALTER TABLE party_photo OWNER TO michielswaanen;
--
-- Name: party_photo_party_photo_id_seq; Type: SEQUENCE; Schema: public; Owner: michielswaanen
--
CREATE SEQUENCE party_photo_party_photo_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE party_photo_party_photo_id_seq OWNER TO michielswaanen;
--
-- Name: party_photo_party_photo_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: michielswaanen
--
ALTER SEQUENCE party_photo_party_photo_id_seq OWNED BY party_photo.party_photo_id;
--
-- Name: purchase; Type: TABLE; Schema: public; Owner: michielswaanen; Tablespace:
--
CREATE TABLE purchase (
purchase_id integer NOT NULL,
account_id integer,
ticket_id integer,
quantity integer,
created_at timestamp without time zone DEFAULT now(),
deleted boolean DEFAULT false
);
ALTER TABLE purchase OWNER TO michielswaanen;
--
-- Name: purchase_purchase_id_seq; Type: SEQUENCE; Schema: public; Owner: michielswaanen
--
CREATE SEQUENCE purchase_purchase_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE purchase_purchase_id_seq OWNER TO michielswaanen;
--
-- Name: purchase_purchase_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: michielswaanen
--
ALTER SEQUENCE purchase_purchase_id_seq OWNED BY purchase.purchase_id;
--
-- Name: rating; Type: TABLE; Schema: public; Owner: michielswaanen; Tablespace:
--
CREATE TABLE rating (
rating_id integer NOT NULL,
party_id integer,
organizer_id integer,
account_id integer,
rating integer,
title character varying(100),
comment character varying(511),
anonymous boolean,
created_at timestamp without time zone DEFAULT now(),
deleted boolean DEFAULT false
);
ALTER TABLE rating OWNER TO michielswaanen;
--
-- Name: rating_rating_id_seq; Type: SEQUENCE; Schema: public; Owner: michielswaanen
--
CREATE SEQUENCE rating_rating_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE rating_rating_id_seq OWNER TO michielswaanen;
--
-- Name: rating_rating_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: michielswaanen
--
ALTER SEQUENCE rating_rating_id_seq OWNED BY rating.rating_id;
--
-- Name: ticket; Type: TABLE; Schema: public; Owner: michielswaanen; Tablespace:
--
CREATE TABLE ticket (
ticket_id integer NOT NULL,
party_id integer,
name character varying(50),
description character varying(511),
total_quantity_available integer,
quantity_available integer,
price double precision,
start_time_sale timestamp without time zone,
end_time_sale timestamp without time zone,
refund boolean,
created_at timestamp without time zone DEFAULT now(),
deleted boolean DEFAULT false
);
ALTER TABLE ticket OWNER TO michielswaanen;
--
-- Name: ticket_ticket_id_seq; Type: SEQUENCE; Schema: public; Owner: michielswaanen
--
CREATE SEQUENCE ticket_ticket_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE ticket_ticket_id_seq OWNER TO michielswaanen;
--
-- Name: ticket_ticket_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: michielswaanen
--
ALTER SEQUENCE ticket_ticket_id_seq OWNED BY ticket.ticket_id;
--
-- Name: waiting_list; Type: TABLE; Schema: public; Owner: michielswaanen; Tablespace:
--
CREATE TABLE waiting_list (
waiting_list_id integer NOT NULL,
account_id integer,
ticket_id integer,
created_at timestamp without time zone DEFAULT now()
);
ALTER TABLE waiting_list OWNER TO michielswaanen;
--
-- Name: waiting_list_waiting_list_id_seq; Type: SEQUENCE; Schema: public; Owner: michielswaanen
--
CREATE SEQUENCE waiting_list_waiting_list_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE waiting_list_waiting_list_id_seq OWNER TO michielswaanen;
--
-- Name: waiting_list_waiting_list_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: michielswaanen
--
ALTER SEQUENCE waiting_list_waiting_list_id_seq OWNED BY waiting_list.waiting_list_id;
--
-- Name: account_id; Type: DEFAULT; Schema: public; Owner: michielswaanen
--
ALTER TABLE ONLY account ALTER COLUMN account_id SET DEFAULT nextval('account_account_id_seq'::regclass);
--
-- Name: account_recovery_id; Type: DEFAULT; Schema: public; Owner: michielswaanen
--
ALTER TABLE ONLY account_recovery ALTER COLUMN account_recovery_id SET DEFAULT nextval('account_recovery_account_recovery_id_seq'::regclass);
--
-- Name: artist_id; Type: DEFAULT; Schema: public; Owner: michielswaanen
--
ALTER TABLE ONLY artist ALTER COLUMN artist_id SET DEFAULT nextval('artist_artist_id_seq'::regclass);
--
-- Name: booking_id; Type: DEFAULT; Schema: public; Owner: michielswaanen
--
ALTER TABLE ONLY booking ALTER COLUMN booking_id SET DEFAULT nextval('booking_booking_id_seq'::regclass);
--
-- Name: chat_id; Type: DEFAULT; Schema: public; Owner: michielswaanen
--
ALTER TABLE ONLY chat ALTER COLUMN chat_id SET DEFAULT nextval('chat_chat_id_seq'::regclass);
--
-- Name: genre_id; Type: DEFAULT; Schema: public; Owner: michielswaanen
--
ALTER TABLE ONLY genre ALTER COLUMN genre_id SET DEFAULT nextval('genre_genre_id_seq'::regclass);
--
-- Name: menu_id; Type: DEFAULT; Schema: public; Owner: michielswaanen
--
ALTER TABLE ONLY menu ALTER COLUMN menu_id SET DEFAULT nextval('menu_menu_id_seq'::regclass);
--
-- Name: message_id; Type: DEFAULT; Schema: public; Owner: michielswaanen
--
ALTER TABLE ONLY message ALTER COLUMN message_id SET DEFAULT nextval('message_message_id_seq'::regclass);
--
-- Name: notification_id; Type: DEFAULT; Schema: public; Owner: michielswaanen
--
ALTER TABLE ONLY notification ALTER COLUMN notification_id SET DEFAULT nextval('notification_notification_id_seq'::regclass);
--
-- Name: organizer_id; Type: DEFAULT; Schema: public; Owner: michielswaanen
--
ALTER TABLE ONLY organizer ALTER COLUMN organizer_id SET DEFAULT nextval('organizer_organizer_id_seq'::regclass);
--
-- Name: party_id; Type: DEFAULT; Schema: public; Owner: michielswaanen
--
ALTER TABLE ONLY party ALTER COLUMN party_id SET DEFAULT nextval('party_party_id_seq'::regclass);
--
-- Name: party_photo_id; Type: DEFAULT; Schema: public; Owner: michielswaanen
--
ALTER TABLE ONLY party_photo ALTER COLUMN party_photo_id SET DEFAULT nextval('party_photo_party_photo_id_seq'::regclass);
--
-- Name: purchase_id; Type: DEFAULT; Schema: public; Owner: michielswaanen
--
ALTER TABLE ONLY purchase ALTER COLUMN purchase_id SET DEFAULT nextval('purchase_purchase_id_seq'::regclass);
--
-- Name: rating_id; Type: DEFAULT; Schema: public; Owner: michielswaanen
--
ALTER TABLE ONLY rating ALTER COLUMN rating_id SET DEFAULT nextval('rating_rating_id_seq'::regclass);
--
-- Name: ticket_id; Type: DEFAULT; Schema: public; Owner: michielswaanen
--
ALTER TABLE ONLY ticket ALTER COLUMN ticket_id SET DEFAULT nextval('ticket_ticket_id_seq'::regclass);
--
-- Name: waiting_list_id; Type: DEFAULT; Schema: public; Owner: michielswaanen
--
ALTER TABLE ONLY waiting_list ALTER COLUMN waiting_list_id SET DEFAULT nextval('waiting_list_waiting_list_id_seq'::regclass);
--
-- Data for Name: account; Type: TABLE DATA; Schema: public; Owner: michielswaanen
--
INSERT INTO account VALUES (6, 'Jeroen', 'Put', '[email protected]', 'a665a45920422f9d417e4867efdc4fb8a04a1f3fff1fa07e998e86f7f7a27ae3', '2019-06-13', 'Kuringen', '0495812346', './public/images/uploaded/account/avatar-6.jpg', 'FINISHED', false, '2019-06-03 11:43:48.390897', false);
INSERT INTO account VALUES (2, 'John', 'Doe', '[email protected]', 'a665a45920422f9d417e4867efdc4fb8a04a1f3fff1fa07e998e86f7f7a27ae3', '2000-08-10', 'Kuringen', '0495812458', './public/images/uploaded/account/avatar-2.png', 'FINISHED', false, '2019-05-30 15:20:28.425941', false);
INSERT INTO account VALUES (3, 'John', 'Admin', '[email protected]', 'a665a45920422f9d417e4867efdc4fb8a04a1f3fff1fa07e998e86f7f7a27ae3', '2000-08-10', 'Genk', '0495812458', './public/images/uploaded/account/avatar-3.png', 'FINISHED', true, '2019-05-30 18:13:53.752758', false);
INSERT INTO account VALUES (4, 'Jane', 'Doe', '[email protected]', 'a665a45920422f9d417e4867efdc4fb8a04a1f3fff1fa07e998e86f7f7a27ae3', '2000-08-10', 'Kiewit', '0495812458', './public/images/uploaded/account/avatar-4.jpg', 'FINISHED', false, '2019-05-30 18:17:53.310607', false);
INSERT INTO account VALUES (1, 'Michiel', 'Swaanen', '[email protected]', 'a665a45920422f9d417e4867efdc4fb8a04a1f3fff1fa07e998e86f7f7a27ae3', '2000-08-10', 'Hasselt', '0495812458', './public/images/uploaded/account/avatar-1.jpg', 'FINISHED', false, '2019-05-30 15:13:44.279516', false);
INSERT INTO account VALUES (5, 'Michiel', 'Swaanen', '[email protected]', 'a665a45920422f9d417e4867efdc4fb8a04a1f3fff1fa07e998e86f7f7a27ae3', NULL, NULL, NULL, NULL, 'EMAIL_VERIFICATION', false, '2019-06-03 11:42:33.163983', false);
--
-- Name: account_account_id_seq; Type: SEQUENCE SET; Schema: public; Owner: michielswaanen
--
SELECT pg_catalog.setval('account_account_id_seq', 6, true);
--
-- Data for Name: account_confirmation; Type: TABLE DATA; Schema: public; Owner: michielswaanen
--
INSERT INTO account_confirmation VALUES (5, 5143754, '2019-06-03 12:42:33.222926');
--
-- Data for Name: account_recovery; Type: TABLE DATA; Schema: public; Owner: michielswaanen
--
--
-- Name: account_recovery_account_recovery_id_seq; Type: SEQUENCE SET; Schema: public; Owner: michielswaanen
--
SELECT pg_catalog.setval('account_recovery_account_recovery_id_seq', 1, true);
--
-- Data for Name: artist; Type: TABLE DATA; Schema: public; Owner: michielswaanen
--
INSERT INTO artist VALUES (1, 2, 'DJ Fons', './public/images/uploaded/artist/artist-1.png');
INSERT INTO artist VALUES (2, 3, 'DJ Albert', './public/images/uploaded/artist/artist-2.png');
INSERT INTO artist VALUES (3, 4, 'DJ Dimitri', './public/images/uploaded/artist/artist-3.png');
INSERT INTO artist VALUES (4, 5, 'DJ Frank', './public/images/uploaded/artist/artist-4.png');
INSERT INTO artist VALUES (5, 3, 'DJ Rolf', './public/images/uploaded/artist/artist-5.png');
INSERT INTO artist VALUES (6, 5, 'DJ Cool', './public/images/uploaded/artist/artist-6.png');
INSERT INTO artist VALUES (7, 3, 'DJ Snoop', './public/images/uploaded/artist/artist-7.png');
INSERT INTO artist VALUES (8, 2, 'DJ Goo', './public/images/uploaded/artist/artist-8.png');
INSERT INTO artist VALUES (9, 2, 'DJ Kid', './public/images/uploaded/artist/artist-9.png');
INSERT INTO artist VALUES (10, 3, 'DJ Teletubie', './public/images/uploaded/artist/artist-10.png');
INSERT INTO artist VALUES (11, 2, 'DJ Ketnet', './public/images/uploaded/artist/artist-11.png');
INSERT INTO artist VALUES (12, 5, 'DJ Dab', './public/images/uploaded/artist/artist-12.png');
INSERT INTO artist VALUES (13, 4, 'DJ Khaled', './public/images/uploaded/artist/artist-13.png');
INSERT INTO artist VALUES (14, 5, 'DJ Garrix', './public/images/uploaded/artist/artist-14.png');
INSERT INTO artist VALUES (15, 3, 'DJ Wong', './public/images/uploaded/artist/artist-15.png');
INSERT INTO artist VALUES (16, 4, 'DJ Bob', './public/images/uploaded/artist/artist-16.png');
INSERT INTO artist VALUES (17, 4, 'DJ Electro', './public/images/uploaded/artist/artist-17.png');
INSERT INTO artist VALUES (18, 3, 'DJ Dub', './public/images/uploaded/artist/artist-18.png');
INSERT INTO artist VALUES (19, 2, 'DJ Home', './public/images/uploaded/artist/artist-19.png');
INSERT INTO artist VALUES (20, 1, 'DJ Bob', './public/images/uploaded/artist/artist-20.png');
INSERT INTO artist VALUES (21, 3, 'DJ Alberto', './public/images/uploaded/artist/artist-21.png');
INSERT INTO artist VALUES (22, 4, 'DJ Tim', './public/images/uploaded/artist/artist-22.png');
INSERT INTO artist VALUES (23, 4, 'DJ Tom', './public/images/uploaded/artist/artist-23.png');
INSERT INTO artist VALUES (24, 2, 'DJ Fons', './public/images/uploaded/artist/artist-24.png');
INSERT INTO artist VALUES (25, 1, 'DJ Dimitri', './public/images/uploaded/artist/artist-25.png');
INSERT INTO artist VALUES (26, 2, 'DJ Frank', './public/images/uploaded/artist/artist-26.png');
--
-- Name: artist_artist_id_seq; Type: SEQUENCE SET; Schema: public; Owner: michielswaanen
--
SELECT pg_catalog.setval('artist_artist_id_seq', 26, true);
--
-- Data for Name: booking; Type: TABLE DATA; Schema: public; Owner: michielswaanen
--
INSERT INTO booking VALUES (1, 1, 1, '2019-09-01 20:00:00', '2019-09-01 22:00:00', false);
INSERT INTO booking VALUES (2, 2, 1, '2019-09-01 22:00:00', '2019-09-01 00:00:00', false);
INSERT INTO booking VALUES (3, 3, 1, '2019-09-01 00:00:00', '2019-09-01 02:00:00', false);
INSERT INTO booking VALUES (4, 4, 1, '2019-09-01 02:00:00', '2019-09-01 05:00:00', false);
INSERT INTO booking VALUES (5, 5, 2, '2019-08-10 20:00:00', '2019-08-10 22:00:00', false);
INSERT INTO booking VALUES (6, 6, 2, '2019-08-10 22:00:00', '2019-08-10 00:00:00', false);
INSERT INTO booking VALUES (7, 7, 2, '2019-08-10 00:00:00', '2019-08-10 02:00:00', false);
INSERT INTO booking VALUES (8, 8, 2, '2019-08-10 02:00:00', '2019-08-10 04:00:00', false);
INSERT INTO booking VALUES (9, 9, 3, '2019-06-30 18:00:00', '2019-06-30 20:00:00', false);
INSERT INTO booking VALUES (10, 10, 3, '2019-06-30 20:00:00', '2019-06-30 22:00:00', false);
INSERT INTO booking VALUES (11, 11, 3, '2019-06-30 22:00:00', '2019-06-30 00:00:00', false);
INSERT INTO booking VALUES (12, 12, 3, '2019-06-30 00:00:00', '2019-06-30 02:00:00', false);
INSERT INTO booking VALUES (13, 13, 4, '2019-08-01 20:00:00', '2019-08-01 22:00:00', false);
INSERT INTO booking VALUES (14, 14, 4, '2019-08-01 22:00:00', '2019-08-01 01:00:00', false);
INSERT INTO booking VALUES (15, 15, 4, '2019-08-01 01:00:00', '2019-08-01 04:00:00', false);
INSERT INTO booking VALUES (16, 16, 4, '2019-08-01 04:00:00', '2019-08-01 06:00:00', false);
INSERT INTO booking VALUES (17, 17, 5, '2019-10-01 21:00:00', '2019-10-01 23:00:00', false);
INSERT INTO booking VALUES (18, 18, 5, '2019-10-01 23:00:00', '2019-10-01 01:00:00', false);
INSERT INTO booking VALUES (19, 19, 5, '2019-10-01 01:00:00', '2019-10-01 03:00:00', false);
INSERT INTO booking VALUES (20, 20, 6, '2019-07-30 20:00:00', '2019-07-30 22:00:00', false);
INSERT INTO booking VALUES (21, 21, 6, '2019-07-30 22:00:00', '2019-07-30 00:00:00', false);
INSERT INTO booking VALUES (22, 22, 6, '2019-07-30 00:00:00', '2019-07-30 02:00:00', false);
INSERT INTO booking VALUES (23, 23, 6, '2019-07-30 02:00:00', '2019-07-30 04:00:00', false);
INSERT INTO booking VALUES (24, 24, 7, '2019-06-01 20:00:00', '2019-06-01 22:00:00', false);
INSERT INTO booking VALUES (25, 25, 7, '2019-06-01 22:00:00', '2019-06-01 00:00:00', false);
INSERT INTO booking VALUES (26, 26, 7, '2019-06-01 00:00:00', '2019-06-01 02:00:00', false);
--
-- Name: booking_booking_id_seq; Type: SEQUENCE SET; Schema: public; Owner: michielswaanen
--
SELECT pg_catalog.setval('booking_booking_id_seq', 26, true);
--
-- Data for Name: chat; Type: TABLE DATA; Schema: public; Owner: michielswaanen
--
INSERT INTO chat VALUES (1, 4, 1, false, 'Hallo! Ik heb een vraag omtrent uw fuif. Heeft u even tijd?', true, false, '2019-05-30 18:47:39.78845');
INSERT INTO chat VALUES (2, 4, 1, true, 'Natuurlijk heb ik even tijd. Wat is uw vraag mevrouw?', true, false, '2019-05-30 18:48:28.632833');
INSERT INTO chat VALUES (3, 4, 1, false, 'Zijn er taxi''s in de buurt?', true, false, '2019-05-30 18:52:17.46997');
INSERT INTO chat VALUES (4, 4, 1, true, 'Ja, er word een parking voorzien voor taxi''s dichtbij de fuif.', true, false, '2019-05-30 18:52:40.996075');
INSERT INTO chat VALUES (5, 4, 1, true, 'Hallo', false, false, '2019-06-03 11:38:19.074931');
INSERT INTO chat VALUES (6, 6, 1, false, 'Hallo', true, false, '2019-06-03 11:48:04.840716');
INSERT INTO chat VALUES (7, 6, 1, true, 'Hallo', true, false, '2019-06-03 11:48:20.307587');
INSERT INTO chat VALUES (8, 6, 1, false, 'Test', true, false, '2019-06-03 11:48:31.33509');
--
-- Name: chat_chat_id_seq; Type: SEQUENCE SET; Schema: public; Owner: michielswaanen
--
SELECT pg_catalog.setval('chat_chat_id_seq', 8, true);
--
-- Data for Name: following; Type: TABLE DATA; Schema: public; Owner: michielswaanen
--
INSERT INTO following VALUES (1, 4, NULL, '2019-05-30 18:34:37.795319');
INSERT INTO following VALUES (4, 1, NULL, '2019-06-03 11:34:37.581961');
--
-- Data for Name: genre; Type: TABLE DATA; Schema: public; Owner: michielswaanen
--
INSERT INTO genre VALUES (1, 'R&B', 0, './public/images/uploaded/genre/genre-1.jpg');
INSERT INTO genre VALUES (2, 'House', 0, './public/images/uploaded/genre/genre-2.jpg');
INSERT INTO genre VALUES (3, 'Dubstep', 0, './public/images/uploaded/genre/genre-3.jpg');
INSERT INTO genre VALUES (4, 'EDM', 0, './public/images/uploaded/genre/genre-4.jpg');
INSERT INTO genre VALUES (5, 'Dance', 0, './public/images/uploaded/genre/genre-5.jpg');
--
-- Name: genre_genre_id_seq; Type: SEQUENCE SET; Schema: public; Owner: michielswaanen
--
SELECT pg_catalog.setval('genre_genre_id_seq', 5, true);
--
-- Data for Name: menu; Type: TABLE DATA; Schema: public; Owner: michielswaanen
--
INSERT INTO menu VALUES (1, 1, 'Red bull 25cl.', 1, 12, '2019-05-30 15:48:17.099978');
INSERT INTO menu VALUES (2, 1, 'Coca Cola 25cl.', 1, 12, '2019-05-30 15:52:28.595894');
INSERT INTO menu VALUES (4, 1, 'Water 25cl.', 1, 6, '2019-05-30 15:57:06.195537');
INSERT INTO menu VALUES (5, 1, 'Bruis Water 25cl.', 1, 6, '2019-05-30 15:57:19.177889');
INSERT INTO menu VALUES (6, 1, 'Woda 10cl.', 3, 18, '2019-05-30 15:57:34.21537');
INSERT INTO menu VALUES (7, 1, 'Fristi', 1, 6, '2019-05-30 15:58:16.54116');
INSERT INTO menu VALUES (10, 2, 'Coca Cola 25cl.', 1, 6, '2019-05-30 16:17:26.085908');
INSERT INTO menu VALUES (11, 2, 'Monster Green 35cl.', 2, 16, '2019-05-30 16:17:46.059075');
INSERT INTO menu VALUES (12, 2, 'Champagne 65cl.', 4, 18, '2019-05-30 16:18:15.082255');
INSERT INTO menu VALUES (13, 3, 'Fristi 25cl', 1, 6, '2019-05-30 16:53:17.673023');