-
Notifications
You must be signed in to change notification settings - Fork 25
/
matcha.pgsql
807 lines (577 loc) · 24.4 KB
/
matcha.pgsql
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
--
-- PostgreSQL database dump
--
-- Dumped from database version 9.6.15
-- Dumped by pg_dump version 9.6.15
SET statement_timeout = 0;
SET lock_timeout = 0;
SET idle_in_transaction_session_timeout = 0;
SET client_encoding = 'UTF8';
SET standard_conforming_strings = on;
SELECT pg_catalog.set_config('search_path', '', false);
SET check_function_bodies = false;
SET xmloption = content;
SET client_min_messages = warning;
SET row_security = off;
--
-- 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';
--
-- Name: block_seq; Type: SEQUENCE; Schema: public; Owner: yann
--
CREATE SEQUENCE public.block_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
MAXVALUE 99999999
CACHE 1;
ALTER TABLE public.block_seq OWNER TO yann;
SET default_tablespace = '';
SET default_with_oids = false;
--
-- Name: Block; Type: TABLE; Schema: public; Owner: yann
--
CREATE TABLE public."Block" (
id integer DEFAULT nextval('public.block_seq'::regclass) NOT NULL,
"blockedUser" integer NOT NULL,
"blockingUser" integer NOT NULL
);
ALTER TABLE public."Block" OWNER TO yann;
--
-- Name: gender_seq; Type: SEQUENCE; Schema: public; Owner: yann
--
CREATE SEQUENCE public.gender_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
MAXVALUE 99999999
CACHE 1;
ALTER TABLE public.gender_seq OWNER TO yann;
--
-- Name: Gender; Type: TABLE; Schema: public; Owner: yann
--
CREATE TABLE public."Gender" (
id integer DEFAULT nextval('public.gender_seq'::regclass) NOT NULL,
name text NOT NULL
);
ALTER TABLE public."Gender" OWNER TO yann;
--
-- Name: interest_seq; Type: SEQUENCE; Schema: public; Owner: yann
--
CREATE SEQUENCE public.interest_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
MAXVALUE 99999999
CACHE 1;
ALTER TABLE public.interest_seq OWNER TO yann;
--
-- Name: Interest; Type: TABLE; Schema: public; Owner: yann
--
CREATE TABLE public."Interest" (
id integer DEFAULT nextval('public.interest_seq'::regclass) NOT NULL,
name text NOT NULL
);
ALTER TABLE public."Interest" OWNER TO yann;
--
-- Name: like_seq; Type: SEQUENCE; Schema: public; Owner: yann
--
CREATE SEQUENCE public.like_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
MAXVALUE 99999999
CACHE 1;
ALTER TABLE public.like_seq OWNER TO yann;
--
-- Name: Like; Type: TABLE; Schema: public; Owner: yann
--
CREATE TABLE public."Like" (
id integer DEFAULT nextval('public.like_seq'::regclass) NOT NULL,
"likedUser" integer NOT NULL,
"likingUser" integer NOT NULL,
date timestamp without time zone NOT NULL
);
ALTER TABLE public."Like" OWNER TO yann;
--
-- Name: match_seq; Type: SEQUENCE; Schema: public; Owner: yann
--
CREATE SEQUENCE public.match_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
MAXVALUE 99999999
CACHE 1;
ALTER TABLE public.match_seq OWNER TO yann;
--
-- Name: Match; Type: TABLE; Schema: public; Owner: yann
--
CREATE TABLE public."Match" (
id integer DEFAULT nextval('public.match_seq'::regclass) NOT NULL,
user1 integer NOT NULL,
user2 integer NOT NULL,
date timestamp without time zone NOT NULL,
"lastMessage" integer NOT NULL
);
ALTER TABLE public."Match" OWNER TO yann;
--
-- Name: message_seq; Type: SEQUENCE; Schema: public; Owner: yann
--
CREATE SEQUENCE public.message_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
MAXVALUE 99999999
CACHE 1;
ALTER TABLE public.message_seq OWNER TO yann;
--
-- Name: Message; Type: TABLE; Schema: public; Owner: yann
--
CREATE TABLE public."Message" (
id integer DEFAULT nextval('public.message_seq'::regclass) NOT NULL,
match integer NOT NULL,
author integer NOT NULL,
content character varying NOT NULL,
"creationDate" timestamp without time zone NOT NULL,
read boolean DEFAULT false NOT NULL
);
ALTER TABLE public."Message" OWNER TO yann;
--
-- Name: report_seq; Type: SEQUENCE; Schema: public; Owner: yann
--
CREATE SEQUENCE public.report_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
MAXVALUE 99999999
CACHE 1;
ALTER TABLE public.report_seq OWNER TO yann;
--
-- Name: Report; Type: TABLE; Schema: public; Owner: yann
--
CREATE TABLE public."Report" (
id integer DEFAULT nextval('public.report_seq'::regclass) NOT NULL,
"reportedUser" integer NOT NULL,
"reportingUser" integer NOT NULL
);
ALTER TABLE public."Report" OWNER TO yann;
--
-- Name: user_seq; Type: SEQUENCE; Schema: public; Owner: yann
--
CREATE SEQUENCE public.user_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
MAXVALUE 99999999
CACHE 1;
ALTER TABLE public.user_seq OWNER TO yann;
--
-- Name: User; Type: TABLE; Schema: public; Owner: yann
--
CREATE TABLE public."User" (
id integer DEFAULT nextval('public.user_seq'::regclass) NOT NULL,
firstname character varying(30) NOT NULL,
surname character varying(40) NOT NULL,
username character varying(20) NOT NULL,
password character varying(100) NOT NULL,
email character varying(80) NOT NULL,
validated boolean DEFAULT false,
suspended boolean DEFAULT false,
gender integer,
"sexualOrientation" integer,
description text,
interests integer[],
images text[],
"profilePicture" text,
location numeric[],
"notificationMail" boolean DEFAULT true,
"notificationPush" boolean DEFAULT true,
"lastVisit" timestamp without time zone,
"popularityRate" double precision,
"birthDate" date
);
ALTER TABLE public."User" OWNER TO yann;
--
-- Name: uservalidation_seq; Type: SEQUENCE; Schema: public; Owner: yann
--
CREATE SEQUENCE public.uservalidation_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
MAXVALUE 99999999
CACHE 1;
ALTER TABLE public.uservalidation_seq OWNER TO yann;
--
-- Name: UserValidation; Type: TABLE; Schema: public; Owner: yann
--
CREATE TABLE public."UserValidation" (
id integer DEFAULT nextval('public.uservalidation_seq'::regclass) NOT NULL,
"userId" integer NOT NULL,
"validationKey" text NOT NULL,
"resetPasssword" text NOT NULL
);
ALTER TABLE public."UserValidation" OWNER TO yann;
--
-- Name: visit_seq; Type: SEQUENCE; Schema: public; Owner: yann
--
CREATE SEQUENCE public.visit_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
MAXVALUE 99999999
CACHE 1;
ALTER TABLE public.visit_seq OWNER TO yann;
--
-- Name: Visit; Type: TABLE; Schema: public; Owner: yann
--
CREATE TABLE public."Visit" (
id integer DEFAULT nextval('public.visit_seq'::regclass) NOT NULL,
visitor integer NOT NULL,
visited integer NOT NULL,
date timestamp without time zone NOT NULL
);
ALTER TABLE public."Visit" OWNER TO yann;
--
-- Data for Name: Block; Type: TABLE DATA; Schema: public; Owner: yann
--
COPY public."Block" (id, "blockedUser", "blockingUser") FROM stdin;
\.
--
-- Data for Name: Gender; Type: TABLE DATA; Schema: public; Owner: yann
--
COPY public."Gender" (id, name) FROM stdin;
1 Male
2 Female
3 Binary
4 Non-Binary
\.
--
-- Data for Name: Interest; Type: TABLE DATA; Schema: public; Owner: yann
--
COPY public."Interest" (id, name) FROM stdin;
1 poney
2 cuisine
3 ken
4 des bisous
5 yoga
6 les gentils
\.
--
-- Data for Name: Like; Type: TABLE DATA; Schema: public; Owner: yann
--
COPY public."Like" (id, "likedUser", "likingUser", date) FROM stdin;
\.
--
-- Data for Name: Match; Type: TABLE DATA; Schema: public; Owner: yann
--
COPY public."Match" (id, user1, user2, date, "lastMessage") FROM stdin;
\.
--
-- Data for Name: Message; Type: TABLE DATA; Schema: public; Owner: yann
--
COPY public."Message" (id, match, author, content, "creationDate", read) FROM stdin;
\.
--
-- Data for Name: Report; Type: TABLE DATA; Schema: public; Owner: yann
--
COPY public."Report" (id, "reportedUser", "reportingUser") FROM stdin;
\.
--
-- Data for Name: User; Type: TABLE DATA; Schema: public; Owner: yann
--
COPY public."User" (id, firstname, surname, username, password, email, validated, suspended, gender, "sexualOrientation", description, interests, images, "profilePicture", location, "notificationMail", "notificationPush", "lastVisit", "popularityRate", "birthDate") FROM stdin;
1 yann petitjean ypetitje yann [email protected] t f \N \N \N \N \N \N {1,2} t t \N \N \N
2 sego alquier salquier sego [email protected] t f \N \N \N \N \N \N \N t t \N \N \N
3 baptiste fraikin bafraiki baba [email protected] t t \N \N \N \N \N \N \N t t \N \N \N
11 antonin siguier antono mignon [email protected] f f \N \N \N \N \N \N \N t t \N \N \N
12 antonin siguier antono mignon [email protected] f f \N \N \N \N \N \N \N t t \N \N \N
14 antonin siguier antono mignon [email protected] f f \N \N \N \N \N \N \N t t \N \N \N
19 Yann PETITJEAN ds 123456 [email protected] f f \N \N \N \N \N \N \N t t \N \N \N
20 jhkj ghjjhk [email protected] 123456 [email protected] f f \N \N \N \N \N \N \N t t \N \N \N
21 Marc Albertini [email protected] 123456 [email protected] f f \N \N \N \N \N \N \N t t \N \N \N
22 Yann PETITJEAN [email protected] 123456 [email protected] f f \N \N \N \N \N \N \N t t \N \N \N
23 Yann PETITJEAN [email protected] 123456 [email protected] f f \N \N \N \N \N \N \N t t \N \N \N
24 Yann PETITJEAN [email protected] 123456 [email protected] f f \N \N \N \N \N \N \N t t \N \N \N
25 Marc Albertini [email protected] 123456 [email protected] f f \N \N \N \N \N \N \N t t \N \N \N
26 Yann PETITJEAN [email protected] 123456 [email protected] f f \N \N \N \N \N \N \N t t \N \N \N
27 antonin siguier antono mignon [email protected] f f \N \N \N \N \N \N \N t t \N \N \N
28 antonin siguier antono mignon [email protected] f f \N \N \N \N \N \N \N t t \N \N \N
29 antonin siguier antono mignon f f \N \N \N \N \N \N \N t t \N \N \N
31 antonin siguier antono mignon [email protected] f f \N \N \N \N \N \N \N t t \N \N \N
32 Yann PETITJEAN [email protected] 123456 [email protected] f f \N \N \N \N \N \N \N t t \N \N \N
33 Yann PETITJEAN [email protected] 123456 [email protected] f f \N \N \N \N \N \N \N t t \N \N \N
34 Yann PETITJEAN [email protected] 123456 [email protected] f f \N \N \N \N \N \N \N t t \N \N \N
35 Yann PETITJEAN [email protected] 123456 [email protected] f f \N \N \N \N \N \N \N t t \N \N \N
36 Yann PETITJEAN [email protected] 123456 [email protected] f f \N \N \N \N \N \N \N t t \N \N \N
37 Yann PETITJEAN [email protected] 123456 [email protected] f f \N \N \N \N \N \N \N t t \N \N \N
38 Marc Albertini [email protected] 123456 [email protected] f f \N \N \N \N \N \N \N t t \N \N \N
39 Marc Albertini [email protected] 123456 [email protected] f f \N \N \N \N \N \N \N t t \N \N \N
40 Yann PETITJEAN [email protected] 123456 [email protected] f f \N \N \N \N \N \N \N t t \N \N \N
41 Yann PETITJEAN [email protected] 123456 [email protected] f f \N \N \N \N \N \N \N t t \N \N \N
42 Yann PETITJEAN [email protected] 123456 [email protected] f f \N \N \N \N \N \N \N t t \N \N \N
43 Yann PETITJEAN [email protected] 123456 [email protected] f f \N \N \N \N \N \N \N t t \N \N \N
44 Yann PETITJEAN [email protected] 123456 [email protected] f f \N \N \N \N \N \N \N t t \N \N \N
45 Yann PETITJEAN [email protected] 123456 [email protected] f f \N \N \N \N \N \N \N t t \N \N \N
46 Yann PETITJEAN [email protected] 123456 [email protected] f f \N \N \N \N \N \N \N t t \N \N \N
47 Yann PETITJEAN [email protected] 123456 [email protected] f f \N \N \N \N \N \N \N t t \N \N \N
48 Yann PETITJEAN [email protected] 123456 [email protected] f f \N \N \N \N \N \N \N t t \N \N \N
49 Yann PETITJEAN [email protected] 123456 [email protected] f f \N \N \N \N \N \N \N t t \N \N \N
50 Yann PETITJEAN [email protected] 123456 [email protected] f f \N \N \N \N \N \N \N t t \N \N \N
51 Yann PETITJEAN [email protected] 123456 [email protected] f f \N \N \N \N \N \N \N t t \N \N \N
52 Yann PETITJEAN [email protected] 123456 [email protected] f f \N \N \N \N \N \N \N t t \N \N \N
53 Yann PETITJEAN [email protected] 123456 [email protected] f f \N \N \N \N \N \N \N t t \N \N \N
54 Yann PETITJEAN [email protected] 123456 [email protected] f f \N \N \N \N \N \N \N t t \N \N \N
55 Marc Albertini [email protected] 123456 [email protected] f f \N \N \N \N \N \N \N t t \N \N \N
58 Yann PETITJEAN fgh fgh [email protected] f f \N \N \N \N \N \N \N t t \N \N \N
59 Yann PETITJEAN fgd dfg [email protected] f f \N \N \N \N \N \N \N t t \N \N \N
60 antonin siguier antono mignon [email protected] f f \N \N \N \N \N \N \N t t \N \N \N
61 antonin siguier antono mignon [email protected] f f \N \N \N \N \N \N \N t t \N \N \N
62 antonin siguier antono mignon [email protected] f f \N \N \N \N \N \N \N t t \N \N \N
63 antonin siguier antono mignon [email protected] f f \N \N \N \N \N \N \N t t \N \N \N
64 antonin siguier antono mignon [email protected] f f \N \N \N \N \N \N \N t t \N \N \N
65 antonin siguier antono mignon [email protected] f f \N \N \N \N \N \N \N t t \N \N \N
66 antonin siguier antono mignon [email protected] f f \N \N \N \N \N \N \N t t \N \N \N
67 antonin siguier antono mignon anto f f \N \N \N \N \N \N \N t t \N \N \N
68 antonin siguier antono mignon anto f f \N \N \N \N \N \N \N t t \N \N \N
69 antonin siguier antono mignon [email protected] f f \N \N \N \N \N \N \N t t \N \N \N
70 antonin siguier antono mignon [email protected] f f \N \N \N \N \N \N \N t t \N \N \N
71 antonin siguier antono mignon anto f f \N \N \N \N \N \N \N t t \N \N \N
72 antonin siguier antono mignon anto@ f f \N \N \N \N \N \N \N t t \N \N \N
73 antonin siguier antono mignon [email protected] f f \N \N \N \N \N \N \N t t \N \N \N
74 antonin siguier antono mignon [email protected] f f \N \N \N \N \N \N \N t t \N \N \N
75 antonin siguier antono mignon [email protected] f f \N \N \N \N \N \N \N t t \N \N \N
76 antonin siguier antono mignon [email protected] f f \N \N \N \N \N \N \N t t \N \N \N
77 antonin siguier antono mignon [email protected] f f \N \N \N \N \N \N \N t t \N \N \N
79 antonin siguier anto/ mignon [email protected] f f \N \N \N \N \N \N \N t t \N \N \N
80 antonin siguier anto mignon [email protected] f f \N \N \N \N \N \N \N t t \N \N \N
81 antonin siguier anto mignon [email protected] f f \N \N \N \N \N \N \N t t \N \N \N
82 antonin siguier anto mignon [email protected] f f \N \N \N \N \N \N \N t t \N \N \N
83 antonin siguier anto Mignon38 [email protected] f f \N \N \N \N \N \N \N t t \N \N \N
84 antonin siguier anto Mignon38 [email protected] f f \N \N \N \N \N \N \N t t \N \N \N
85 antonin siguier anto Mignon*38 [email protected] f f \N \N \N \N \N \N \N t t \N \N \N
86 antonin siguier anto mignon*38 [email protected] f f \N \N \N \N \N \N \N t t \N \N \N
87 antonin siguier anto mignon*38 [email protected] f f \N \N \N \N \N \N \N t t \N \N \N
88 antonin siguier a mignon*38 [email protected] f f \N \N \N \N \N \N \N t t \N \N \N
89 antonin siguier adfngjhjsgjhfdjl mignon*38 [email protected] f f \N \N \N \N \N \N \N t t \N \N \N
90 antonin siguier anto mignon*38 [email protected] f f \N \N \N \N \N \N \N t t \N \N \N
91 antonin siguier anto mignon*38 [email protected] f f \N \N \N \N \N \N \N t t \N \N \N
92 anthonin siguier ansdggfd Mignon38. [email protected] f f \N \N \N \N \N \N \N t t \N \N \N
93 anthonin siguier ansdggfdcvn Mignon38. [email protected] f f \N \N \N \N \N \N \N t t \N \N \N
94 anthonin siguier ansdggfdcvnch Mignon38. [email protected] f f \N \N \N \N \N \N \N t t \N \N \N
95 anc siguier ansdggf Mignon38. [email protected] f f \N \N \N \N \N \N \N t t \N \N \N
96 anc siguier ansdggfh Mignon38. [email protected] f f \N \N \N \N \N \N \N t t \N \N \N
15 lalala siguier salutcava mignon [email protected] f f \N \N \N \N \N \N \N t t \N \N \N
97 anc siguier ansdggfhsdf Mignon38. [email protected] f f \N \N \N \N \N \N \N t t \N \N \N
17 adrien toto adridu75 mignon [email protected] f f 3 \N arsuncriuih7rfg757h895hf2687511fj \N \N \N \N t t \N \N \N
98 anc siguier ansdggfhsdfdfg Mignon38. [email protected] f f \N \N \N \N \N \N \N t t \N \N \N
99 anc siguier ansdggfhsd Mignon38. [email protected] f f \N \N \N \N \N \N \N t t \N \N \N
100 dhh fg fgn fdh [email protected] f f \N \N \N \N \N \N \N t t \N \N \N
101 Yann PETITJEAN rrrew qwe [email protected] f f \N \N \N \N \N \N \N t t \N \N \N
102 Yann PETITJEAN erewrrew qwe [email protected] f f \N \N \N \N \N \N \N t t \N \N \N
103 Yann PETITJEAN qwe qwe [email protected] f f \N \N \N \N \N \N \N t t \N \N \N
104 ygig igiug lggi giihu [email protected] f f \N \N \N \N \N \N \N t t \N \N \N
105 hohoh uhhoih uhi thrrht [email protected] f f \N \N \N \N \N \N \N t t \N \N \N
106 Yann PETITJEAN qwd qwddwq [email protected] f f \N \N \N \N \N \N \N t t \N \N \N
107 rger etryty rty 1234 [email protected] f f \N \N \N \N \N \N \N t t \N \N \N
108 Yann PETITJEAN dsf sdf [email protected] f f \N \N \N \N \N \N \N t t \N \N \N
109 Yann PETITJEAN dsf2e sdf [email protected] f f \N \N \N \N \N \N \N t t \N \N \N
110 Yann PETITJEAN asd asd [email protected] f f \N \N \N \N \N \N \N t t \N \N \N
111 Yann PETITJEAN qwertg qwe [email protected] f f \N \N \N \N \N \N \N t t \N \N \N
112 Yann PETITJEAN wegegwe r [email protected] f f \N \N \N \N \N \N \N t t \N \N \N
113 Yann PETITJEAN yann 4 [email protected] f f \N \N \N \N \N \N \N t t \N \N \N
114 Yann PETITJEANwqd qwdfd qdw [email protected] f f \N \N \N \N \N \N \N t t \N \N \N
115 Yann etryty rrtert q [email protected] f f \N \N \N \N \N \N \N t t \N \N \N
116 aergh petitjean ewger rert [email protected]@ f f \N \N \N \N \N \N \N t t \N \N \N
117 Yann PETITJEAN bkjbjk 1234 [email protected] f f \N \N \N \N \N \N \N t t \N \N \N
118 Yann PETITJEAN gzgrgrrtae e [email protected]@ f f \N \N \N \N \N \N \N t t \N \N \N
119 Yann PETITJEAN ewf wef [email protected] f f \N \N \N \N \N \N \N t t \N \N \N
120 Yann PETITJEAN sdv sdv [email protected] f f \N \N \N \N \N \N \N t t \N \N \N
\.
--
-- Data for Name: UserValidation; Type: TABLE DATA; Schema: public; Owner: yann
--
COPY public."UserValidation" (id, "userId", "validationKey", "resetPasssword") FROM stdin;
\.
--
-- Data for Name: Visit; Type: TABLE DATA; Schema: public; Owner: yann
--
COPY public."Visit" (id, visitor, visited, date) FROM stdin;
\.
--
-- Name: block_seq; Type: SEQUENCE SET; Schema: public; Owner: yann
--
SELECT pg_catalog.setval('public.block_seq', 1, false);
--
-- Name: gender_seq; Type: SEQUENCE SET; Schema: public; Owner: yann
--
SELECT pg_catalog.setval('public.gender_seq', 4, true);
--
-- Name: interest_seq; Type: SEQUENCE SET; Schema: public; Owner: yann
--
SELECT pg_catalog.setval('public.interest_seq', 6, true);
--
-- Name: like_seq; Type: SEQUENCE SET; Schema: public; Owner: yann
--
SELECT pg_catalog.setval('public.like_seq', 1, false);
--
-- Name: match_seq; Type: SEQUENCE SET; Schema: public; Owner: yann
--
SELECT pg_catalog.setval('public.match_seq', 1, false);
--
-- Name: message_seq; Type: SEQUENCE SET; Schema: public; Owner: yann
--
SELECT pg_catalog.setval('public.message_seq', 1, false);
--
-- Name: report_seq; Type: SEQUENCE SET; Schema: public; Owner: yann
--
SELECT pg_catalog.setval('public.report_seq', 1, false);
--
-- Name: user_seq; Type: SEQUENCE SET; Schema: public; Owner: yann
--
SELECT pg_catalog.setval('public.user_seq', 120, true);
--
-- Name: uservalidation_seq; Type: SEQUENCE SET; Schema: public; Owner: yann
--
SELECT pg_catalog.setval('public.uservalidation_seq', 1, false);
--
-- Name: visit_seq; Type: SEQUENCE SET; Schema: public; Owner: yann
--
SELECT pg_catalog.setval('public.visit_seq', 1, false);
--
-- Name: Block pk_Block; Type: CONSTRAINT; Schema: public; Owner: yann
--
ALTER TABLE ONLY public."Block"
ADD CONSTRAINT "pk_Block" PRIMARY KEY (id);
--
-- Name: Gender pk_Gender; Type: CONSTRAINT; Schema: public; Owner: yann
--
ALTER TABLE ONLY public."Gender"
ADD CONSTRAINT "pk_Gender" PRIMARY KEY (id);
--
-- Name: Interest pk_Interest; Type: CONSTRAINT; Schema: public; Owner: yann
--
ALTER TABLE ONLY public."Interest"
ADD CONSTRAINT "pk_Interest" PRIMARY KEY (id);
--
-- Name: Like pk_Like; Type: CONSTRAINT; Schema: public; Owner: yann
--
ALTER TABLE ONLY public."Like"
ADD CONSTRAINT "pk_Like" PRIMARY KEY (id);
--
-- Name: Match pk_Match; Type: CONSTRAINT; Schema: public; Owner: yann
--
ALTER TABLE ONLY public."Match"
ADD CONSTRAINT "pk_Match" PRIMARY KEY (id);
--
-- Name: Message pk_Message; Type: CONSTRAINT; Schema: public; Owner: yann
--
ALTER TABLE ONLY public."Message"
ADD CONSTRAINT "pk_Message" PRIMARY KEY (id);
--
-- Name: Report pk_Report; Type: CONSTRAINT; Schema: public; Owner: yann
--
ALTER TABLE ONLY public."Report"
ADD CONSTRAINT "pk_Report" PRIMARY KEY (id);
--
-- Name: User pk_User; Type: CONSTRAINT; Schema: public; Owner: yann
--
ALTER TABLE ONLY public."User"
ADD CONSTRAINT "pk_User" PRIMARY KEY (id);
--
-- Name: UserValidation pk_UserValidation; Type: CONSTRAINT; Schema: public; Owner: yann
--
ALTER TABLE ONLY public."UserValidation"
ADD CONSTRAINT "pk_UserValidation" PRIMARY KEY (id);
--
-- Name: Visit pk_Visit; Type: CONSTRAINT; Schema: public; Owner: yann
--
ALTER TABLE ONLY public."Visit"
ADD CONSTRAINT "pk_Visit" PRIMARY KEY (id);
--
-- Name: Block fk_Block_blockedUser; Type: FK CONSTRAINT; Schema: public; Owner: yann
--
ALTER TABLE ONLY public."Block"
ADD CONSTRAINT "fk_Block_blockedUser" FOREIGN KEY ("blockedUser") REFERENCES public."User"(id);
--
-- Name: Block fk_Block_blockingUser; Type: FK CONSTRAINT; Schema: public; Owner: yann
--
ALTER TABLE ONLY public."Block"
ADD CONSTRAINT "fk_Block_blockingUser" FOREIGN KEY ("blockingUser") REFERENCES public."User"(id);
--
-- Name: Like fk_Like_likedUser; Type: FK CONSTRAINT; Schema: public; Owner: yann
--
ALTER TABLE ONLY public."Like"
ADD CONSTRAINT "fk_Like_likedUser" FOREIGN KEY ("likedUser") REFERENCES public."User"(id);
--
-- Name: Like fk_Like_likingUser; Type: FK CONSTRAINT; Schema: public; Owner: yann
--
ALTER TABLE ONLY public."Like"
ADD CONSTRAINT "fk_Like_likingUser" FOREIGN KEY ("likingUser") REFERENCES public."User"(id);
--
-- Name: Match fk_Match_lastMessage; Type: FK CONSTRAINT; Schema: public; Owner: yann
--
ALTER TABLE ONLY public."Match"
ADD CONSTRAINT "fk_Match_lastMessage" FOREIGN KEY ("lastMessage") REFERENCES public."Message"(id);
--
-- Name: Match fk_Match_user1; Type: FK CONSTRAINT; Schema: public; Owner: yann
--
ALTER TABLE ONLY public."Match"
ADD CONSTRAINT "fk_Match_user1" FOREIGN KEY (user1) REFERENCES public."User"(id);
--
-- Name: Match fk_Match_user2; Type: FK CONSTRAINT; Schema: public; Owner: yann
--
ALTER TABLE ONLY public."Match"
ADD CONSTRAINT "fk_Match_user2" FOREIGN KEY (user2) REFERENCES public."User"(id);
--
-- Name: Message fk_Message_author; Type: FK CONSTRAINT; Schema: public; Owner: yann
--
ALTER TABLE ONLY public."Message"
ADD CONSTRAINT "fk_Message_author" FOREIGN KEY (author) REFERENCES public."User"(id);
--
-- Name: Message fk_Message_match; Type: FK CONSTRAINT; Schema: public; Owner: yann
--
ALTER TABLE ONLY public."Message"
ADD CONSTRAINT "fk_Message_match" FOREIGN KEY (match) REFERENCES public."Match"(id);
--
-- Name: Report fk_Report_reportedUser; Type: FK CONSTRAINT; Schema: public; Owner: yann
--
ALTER TABLE ONLY public."Report"
ADD CONSTRAINT "fk_Report_reportedUser" FOREIGN KEY ("reportedUser") REFERENCES public."User"(id);
--
-- Name: Report fk_Report_reportingUser; Type: FK CONSTRAINT; Schema: public; Owner: yann
--
ALTER TABLE ONLY public."Report"
ADD CONSTRAINT "fk_Report_reportingUser" FOREIGN KEY ("reportingUser") REFERENCES public."User"(id);
--
-- Name: UserValidation fk_UserValidation_userId; Type: FK CONSTRAINT; Schema: public; Owner: yann
--
ALTER TABLE ONLY public."UserValidation"
ADD CONSTRAINT "fk_UserValidation_userId" FOREIGN KEY ("userId") REFERENCES public."User"(id);
--
-- Name: User fk_User_gender; Type: FK CONSTRAINT; Schema: public; Owner: yann
--
ALTER TABLE ONLY public."User"
ADD CONSTRAINT "fk_User_gender" FOREIGN KEY (gender) REFERENCES public."Gender"(id);
--
-- Name: User fk_User_sexualOrientation; Type: FK CONSTRAINT; Schema: public; Owner: yann
--
ALTER TABLE ONLY public."User"
ADD CONSTRAINT "fk_User_sexualOrientation" FOREIGN KEY ("sexualOrientation") REFERENCES public."Gender"(id);
--
-- Name: Visit fk_Visit_visited; Type: FK CONSTRAINT; Schema: public; Owner: yann
--
ALTER TABLE ONLY public."Visit"
ADD CONSTRAINT "fk_Visit_visited" FOREIGN KEY (visited) REFERENCES public."User"(id);
--
-- Name: Visit fk_Visit_visitor; Type: FK CONSTRAINT; Schema: public; Owner: yann
--
ALTER TABLE ONLY public."Visit"
ADD CONSTRAINT "fk_Visit_visitor" FOREIGN KEY (visitor) REFERENCES public."User"(id);
--
-- PostgreSQL database dump complete
--