-
Notifications
You must be signed in to change notification settings - Fork 1
/
data.sql
1646 lines (1160 loc) · 50.6 KB
/
data.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 10.3 (Debian 10.3-1.pgdg90+1)
-- Dumped by pg_dump version 10.3 (Debian 10.3-1.pgdg90+1)
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 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';
SET default_tablespace = '';
SET default_with_oids = false;
--
-- Name: comment_stars; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public.comment_stars (
id integer NOT NULL,
user_id integer NOT NULL,
comment_id integer NOT NULL,
created_at timestamp without time zone,
updated_at timestamp without time zone,
deleted_at timestamp without time zone
);
--
-- Name: comment_stars_id_seq; Type: SEQUENCE; Schema: public; Owner: -
--
CREATE SEQUENCE public.comment_stars_id_seq
AS integer
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
--
-- Name: comment_stars_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
--
ALTER SEQUENCE public.comment_stars_id_seq OWNED BY public.comment_stars.id;
--
-- Name: comments; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public.comments (
id integer NOT NULL,
post_id integer NOT NULL,
user_id integer NOT NULL,
content text,
created_at timestamp without time zone,
updated_at timestamp without time zone,
deleted_at timestamp without time zone
);
--
-- Name: comments_id_seq; Type: SEQUENCE; Schema: public; Owner: -
--
CREATE SEQUENCE public.comments_id_seq
AS integer
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
--
-- Name: comments_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
--
ALTER SEQUENCE public.comments_id_seq OWNED BY public.comments.id;
--
-- Name: hashtags; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public.hashtags (
id integer NOT NULL,
key_word character varying,
post_count integer DEFAULT 0,
created_at timestamp without time zone,
updated_at timestamp without time zone,
deleted_at timestamp without time zone
);
--
-- Name: hashtags_id_seq; Type: SEQUENCE; Schema: public; Owner: -
--
CREATE SEQUENCE public.hashtags_id_seq
AS integer
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
--
-- Name: hashtags_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
--
ALTER SEQUENCE public.hashtags_id_seq OWNED BY public.hashtags.id;
--
-- Name: images; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public.images (
id integer NOT NULL,
post_id integer NOT NULL,
name character varying(272),
created_at timestamp without time zone,
updated_at timestamp without time zone,
deleted_at timestamp without time zone
);
--
-- Name: images_id_seq; Type: SEQUENCE; Schema: public; Owner: -
--
CREATE SEQUENCE public.images_id_seq
AS integer
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
--
-- Name: images_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
--
ALTER SEQUENCE public.images_id_seq OWNED BY public.images.id;
--
-- Name: locations; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public.locations (
id integer NOT NULL,
place_id character varying,
post_count integer,
created_at timestamp without time zone,
updated_at timestamp without time zone,
deleted_at timestamp without time zone
);
--
-- Name: locations_id_seq; Type: SEQUENCE; Schema: public; Owner: -
--
CREATE SEQUENCE public.locations_id_seq
AS integer
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
--
-- Name: locations_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
--
ALTER SEQUENCE public.locations_id_seq OWNED BY public.locations.id;
--
-- Name: masters; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public.masters (
id integer NOT NULL,
owner_id integer,
owner_type text,
user_id integer NOT NULL,
created_at timestamp without time zone,
updated_at timestamp without time zone,
deleted_at timestamp without time zone
);
--
-- Name: masters_id_seq; Type: SEQUENCE; Schema: public; Owner: -
--
CREATE SEQUENCE public.masters_id_seq
AS integer
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
--
-- Name: masters_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
--
ALTER SEQUENCE public.masters_id_seq OWNED BY public.masters.id;
--
-- Name: matches; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public.matches (
id integer NOT NULL,
tournament_id integer,
description text,
start_date timestamp without time zone NOT NULL,
team1_id integer NOT NULL,
team2_id integer NOT NULL,
created_at timestamp without time zone,
updated_at timestamp without time zone,
deleted_at timestamp without time zone,
team1_goals integer,
team2_goals integer
);
--
-- Name: matches_id_seq; Type: SEQUENCE; Schema: public; Owner: -
--
CREATE SEQUENCE public.matches_id_seq
AS integer
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
--
-- Name: matches_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
--
ALTER SEQUENCE public.matches_id_seq OWNED BY public.matches.id;
--
-- Name: post_hashtags; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public.post_hashtags (
id integer NOT NULL,
post_id integer,
hashtag_id integer,
created_at timestamp without time zone,
updated_at timestamp without time zone,
deleted_at timestamp without time zone
);
--
-- Name: post_hashtags_id_seq; Type: SEQUENCE; Schema: public; Owner: -
--
CREATE SEQUENCE public.post_hashtags_id_seq
AS integer
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
--
-- Name: post_hashtags_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
--
ALTER SEQUENCE public.post_hashtags_id_seq OWNED BY public.post_hashtags.id;
--
-- Name: post_stars; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public.post_stars (
id integer NOT NULL,
user_id integer NOT NULL,
post_id integer NOT NULL,
created_at timestamp without time zone,
updated_at timestamp without time zone,
deleted_at timestamp without time zone
);
--
-- Name: post_stars_id_seq; Type: SEQUENCE; Schema: public; Owner: -
--
CREATE SEQUENCE public.post_stars_id_seq
AS integer
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
--
-- Name: post_stars_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
--
ALTER SEQUENCE public.post_stars_id_seq OWNED BY public.post_stars.id;
--
-- Name: posts; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public.posts (
id integer NOT NULL,
user_id integer NOT NULL,
caption text,
location_id integer,
created_at timestamp without time zone,
updated_at timestamp without time zone,
deleted_at timestamp without time zone,
type character varying(20) DEFAULT 'status'::character varying NOT NULL
);
--
-- Name: posts_id_seq; Type: SEQUENCE; Schema: public; Owner: -
--
CREATE SEQUENCE public.posts_id_seq
AS integer
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
--
-- Name: posts_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
--
ALTER SEQUENCE public.posts_id_seq OWNED BY public.posts.id;
--
-- Name: star_counts; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public.star_counts (
id integer NOT NULL,
owner_id integer,
owner_type text,
quantity integer DEFAULT 0,
created_at timestamp without time zone,
updated_at timestamp without time zone,
deleted_at timestamp without time zone
);
--
-- Name: star_counts_id_seq; Type: SEQUENCE; Schema: public; Owner: -
--
CREATE SEQUENCE public.star_counts_id_seq
AS integer
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
--
-- Name: star_counts_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
--
ALTER SEQUENCE public.star_counts_id_seq OWNED BY public.star_counts.id;
--
-- Name: team_players; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public.team_players (
id integer NOT NULL,
user_id integer NOT NULL,
team_id integer NOT NULL,
"position" character varying(10) NOT NULL,
created_at timestamp without time zone,
updated_at timestamp without time zone,
deleted_at timestamp without time zone
);
--
-- Name: team_players_id_seq; Type: SEQUENCE; Schema: public; Owner: -
--
CREATE SEQUENCE public.team_players_id_seq
AS integer
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
--
-- Name: team_players_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
--
ALTER SEQUENCE public.team_players_id_seq OWNED BY public.team_players.id;
--
-- Name: teams; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public.teams (
id integer NOT NULL,
name character varying(256) NOT NULL,
description text,
max_members integer DEFAULT 16,
created_at timestamp without time zone,
updated_at timestamp without time zone,
deleted_at timestamp without time zone
);
--
-- Name: teams_id_seq; Type: SEQUENCE; Schema: public; Owner: -
--
CREATE SEQUENCE public.teams_id_seq
AS integer
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
--
-- Name: teams_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
--
ALTER SEQUENCE public.teams_id_seq OWNED BY public.teams.id;
--
-- Name: tournament_teams; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public.tournament_teams (
id integer NOT NULL,
tournament_id integer NOT NULL,
team_id integer NOT NULL,
score integer DEFAULT 0,
"group" character varying(256),
created_at timestamp without time zone,
updated_at timestamp without time zone,
deleted_at timestamp without time zone
);
--
-- Name: tournament_teams_id_seq; Type: SEQUENCE; Schema: public; Owner: -
--
CREATE SEQUENCE public.tournament_teams_id_seq
AS integer
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
--
-- Name: tournament_teams_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
--
ALTER SEQUENCE public.tournament_teams_id_seq OWNED BY public.tournament_teams.id;
--
-- Name: tournaments; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public.tournaments (
id integer NOT NULL,
name character varying(256) NOT NULL,
description text,
start_date timestamp without time zone NOT NULL,
end_date timestamp without time zone NOT NULL,
created_at timestamp without time zone,
updated_at timestamp without time zone,
deleted_at timestamp without time zone
);
--
-- Name: tournaments_id_seq; Type: SEQUENCE; Schema: public; Owner: -
--
CREATE SEQUENCE public.tournaments_id_seq
AS integer
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
--
-- Name: tournaments_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
--
ALTER SEQUENCE public.tournaments_id_seq OWNED BY public.tournaments.id;
--
-- Name: user_follows; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public.user_follows (
id integer NOT NULL,
user_id integer NOT NULL,
follow_id integer NOT NULL,
created_at timestamp without time zone,
updated_at timestamp without time zone,
deleted_at timestamp without time zone
);
--
-- Name: user_follows_id_seq; Type: SEQUENCE; Schema: public; Owner: -
--
CREATE SEQUENCE public.user_follows_id_seq
AS integer
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
--
-- Name: user_follows_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
--
ALTER SEQUENCE public.user_follows_id_seq OWNED BY public.user_follows.id;
--
-- Name: users; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public.users (
id integer NOT NULL,
user_name character varying(32),
email character varying(256),
password character varying(256),
first_name character varying(256),
last_name character varying(256),
city character varying(256),
country character varying(256),
about character varying(500),
quote character varying(256),
birthday date,
role character varying(50) DEFAULT 'user'::character varying,
score integer DEFAULT 0,
created_at timestamp without time zone,
updated_at timestamp without time zone,
deleted_at timestamp without time zone
);
--
-- Name: users_id_seq; Type: SEQUENCE; Schema: public; Owner: -
--
CREATE SEQUENCE public.users_id_seq
AS integer
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
--
-- Name: users_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
--
ALTER SEQUENCE public.users_id_seq OWNED BY public.users.id;
--
-- Name: videos; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE public.videos (
id integer NOT NULL,
post_id integer NOT NULL,
name character varying(272),
created_at timestamp without time zone,
updated_at timestamp without time zone,
deleted_at timestamp without time zone
);
--
-- Name: videos_id_seq; Type: SEQUENCE; Schema: public; Owner: -
--
CREATE SEQUENCE public.videos_id_seq
AS integer
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
--
-- Name: videos_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
--
ALTER SEQUENCE public.videos_id_seq OWNED BY public.videos.id;
--
-- Name: comment_stars id; Type: DEFAULT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.comment_stars ALTER COLUMN id SET DEFAULT nextval('public.comment_stars_id_seq'::regclass);
--
-- Name: comments id; Type: DEFAULT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.comments ALTER COLUMN id SET DEFAULT nextval('public.comments_id_seq'::regclass);
--
-- Name: hashtags id; Type: DEFAULT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.hashtags ALTER COLUMN id SET DEFAULT nextval('public.hashtags_id_seq'::regclass);
--
-- Name: images id; Type: DEFAULT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.images ALTER COLUMN id SET DEFAULT nextval('public.images_id_seq'::regclass);
--
-- Name: locations id; Type: DEFAULT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.locations ALTER COLUMN id SET DEFAULT nextval('public.locations_id_seq'::regclass);
--
-- Name: masters id; Type: DEFAULT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.masters ALTER COLUMN id SET DEFAULT nextval('public.masters_id_seq'::regclass);
--
-- Name: matches id; Type: DEFAULT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.matches ALTER COLUMN id SET DEFAULT nextval('public.matches_id_seq'::regclass);
--
-- Name: post_hashtags id; Type: DEFAULT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.post_hashtags ALTER COLUMN id SET DEFAULT nextval('public.post_hashtags_id_seq'::regclass);
--
-- Name: post_stars id; Type: DEFAULT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.post_stars ALTER COLUMN id SET DEFAULT nextval('public.post_stars_id_seq'::regclass);
--
-- Name: posts id; Type: DEFAULT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.posts ALTER COLUMN id SET DEFAULT nextval('public.posts_id_seq'::regclass);
--
-- Name: star_counts id; Type: DEFAULT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.star_counts ALTER COLUMN id SET DEFAULT nextval('public.star_counts_id_seq'::regclass);
--
-- Name: team_players id; Type: DEFAULT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.team_players ALTER COLUMN id SET DEFAULT nextval('public.team_players_id_seq'::regclass);
--
-- Name: teams id; Type: DEFAULT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.teams ALTER COLUMN id SET DEFAULT nextval('public.teams_id_seq'::regclass);
--
-- Name: tournament_teams id; Type: DEFAULT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.tournament_teams ALTER COLUMN id SET DEFAULT nextval('public.tournament_teams_id_seq'::regclass);
--
-- Name: tournaments id; Type: DEFAULT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.tournaments ALTER COLUMN id SET DEFAULT nextval('public.tournaments_id_seq'::regclass);
--
-- Name: user_follows id; Type: DEFAULT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.user_follows ALTER COLUMN id SET DEFAULT nextval('public.user_follows_id_seq'::regclass);
--
-- Name: users id; Type: DEFAULT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.users ALTER COLUMN id SET DEFAULT nextval('public.users_id_seq'::regclass);
--
-- Name: videos id; Type: DEFAULT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.videos ALTER COLUMN id SET DEFAULT nextval('public.videos_id_seq'::regclass);
--
-- Data for Name: comment_stars; Type: TABLE DATA; Schema: public; Owner: -
--
COPY public.comment_stars (id, user_id, comment_id, created_at, updated_at, deleted_at) FROM stdin;
5 5 76 2018-05-20 19:48:54.486214 2018-05-20 19:48:54.486214 2018-05-20 19:49:06.052153
3 5 74 2018-05-20 19:37:39.275885 2018-05-20 19:51:59.309933 2018-05-20 19:51:59.684341
4 5 73 2018-05-20 19:37:40.146787 2018-05-20 19:52:11.075067 2018-05-20 19:52:18.094015
6 5 77 2018-05-21 01:13:08.506402 2018-05-21 01:13:08.506402 \N
7 1 84 2018-05-23 04:01:00.789582 2018-05-23 04:01:00.789582 \N
9 1 86 2018-05-23 04:01:22.949468 2018-05-23 04:01:22.949468 \N
10 1 80 2018-05-23 04:01:33.259737 2018-05-23 04:01:33.259737 \N
11 1 78 2018-05-23 04:01:43.969172 2018-05-23 04:01:43.969172 \N
12 1 90 2018-05-23 04:01:47.167177 2018-05-23 04:01:47.167177 \N
13 1 82 2018-05-26 17:11:46.311034 2018-05-26 17:11:46.311034 \N
8 1 85 2018-05-23 04:01:13.811051 2018-05-26 17:11:49.546932 2018-05-26 17:11:49.71672
\.
--
-- Data for Name: comments; Type: TABLE DATA; Schema: public; Owner: -
--
COPY public.comments (id, post_id, user_id, content, created_at, updated_at, deleted_at) FROM stdin;
73 30 5 comment 2018-05-20 19:33:57.87844 2018-05-20 19:33:57.87844 2018-05-20 19:56:07.273911
74 30 5 haha 2018-05-20 19:34:39.666363 2018-05-20 19:34:39.666363 2018-05-20 19:57:25.581712
75 30 5 abv 2018-05-20 19:39:20.357535 2018-05-20 19:39:20.357535 2018-05-20 20:00:34.460562
76 30 5 bvvv 2018-05-20 19:44:12.453791 2018-05-20 19:44:12.453791 2018-05-20 20:00:36.288269
77 31 5 test 2018-05-21 01:13:06.435558 2018-05-21 01:13:06.435558 \N
78 33 5 test 2018-05-21 01:47:42.306402 2018-05-21 01:47:42.306402 \N
80 33 1 asdasdzc 2018-05-23 03:18:27.600605 2018-05-23 03:18:27.600605 2018-05-26 17:11:44.318621
81 33 1 asdasdda 2018-05-23 03:18:38.47496 2018-05-23 03:18:38.47496 2018-05-26 17:11:45.24345
82 33 1 asdasdadsad 2018-05-23 03:19:14.473902 2018-05-23 03:19:14.473902 2018-05-26 17:11:47.083026
83 33 1 abc 2018-05-23 03:27:10.857277 2018-05-23 03:27:10.857277 2018-05-26 17:11:48.20123
84 33 1 asd 2018-05-23 03:29:06.335177 2018-05-23 03:29:06.335177 2018-05-26 17:11:48.871718
85 33 1 hahaha 2018-05-23 03:54:03.989754 2018-05-23 03:54:03.989754 2018-05-26 17:11:50.557264
86 33 1 hahaha 2018-05-23 03:56:40.815569 2018-05-23 03:56:40.815569 2018-05-26 17:11:50.733957
90 33 1 sao ha 2018-05-23 04:00:44.13575 2018-05-23 04:00:44.13575 2018-05-26 17:11:51.718662
79 32 1 test 2018-05-21 01:47:55.350768 2018-05-21 01:47:55.350768 2018-05-26 17:12:01.414882
87 32 1 hahaha 2018-05-23 03:56:48.979803 2018-05-23 03:56:48.979803 2018-05-26 17:12:03.18235
88 32 1 ??? 2018-05-23 03:58:18.095955 2018-05-23 03:58:18.095955 2018-05-26 17:12:04.01991
89 32 1 hahaha 2018-05-23 04:00:40.6291 2018-05-23 04:00:40.6291 2018-05-26 17:12:04.806473
91 34 1 haha 2018-05-27 16:03:51.540244 2018-05-27 16:03:51.540244 \N
92 46 1 test 2018-05-29 06:10:38.856036 2018-05-29 06:10:38.856036 \N
\.
--
-- Data for Name: hashtags; Type: TABLE DATA; Schema: public; Owner: -
--
COPY public.hashtags (id, key_word, post_count, created_at, updated_at, deleted_at) FROM stdin;
\.
--
-- Data for Name: images; Type: TABLE DATA; Schema: public; Owner: -
--
COPY public.images (id, post_id, name, created_at, updated_at, deleted_at) FROM stdin;
1 1 9a1a748024c50f75864a8162e822c2de1526043611.jpg 2018-05-11 13:00:41.815605 2018-05-11 13:00:41.815605 \N
3 5 0a43823a1429d30db0ff2c2c228241911526814047.png 2018-05-20 11:00:52.017524 2018-05-20 11:00:52.017524 \N
4 5 5bea826a3d776d934c74ad1f1c5d435f1526814047.png 2018-05-20 11:00:52.021636 2018-05-20 11:00:52.021636 \N
5 6 c71e4146b71c21a3fc7036df363dc39a1526814123.png 2018-05-20 11:02:07.94427 2018-05-20 11:02:07.94427 \N
6 7 c71e4146b71c21a3fc7036df363dc39a1526814123.png 2018-05-20 11:02:09.30692 2018-05-20 11:02:09.30692 \N
7 8 c71e4146b71c21a3fc7036df363dc39a1526814123.png 2018-05-20 11:02:25.381219 2018-05-20 11:02:25.381219 \N
8 9 dddaf631c478b57302b059537470ebcc1526814227.png 2018-05-20 11:03:50.93468 2018-05-20 11:03:50.93468 \N
9 10 fa3a0118ccf98a6011f377ffa790b78c1526814270.png 2018-05-20 11:04:37.933272 2018-05-20 11:04:37.933272 \N
10 22 f5b5d462ddc7e28c4c2ad137015382b11526815112.png 2018-05-20 11:18:36.767525 2018-05-20 11:18:36.767525 \N
13 25 e8423b86dabda32f2b171e7fd12ef39e1526818107.png 2018-05-20 12:08:36.060268 2018-05-20 12:08:36.060268 2018-05-20 17:03:28.921561
14 25 84a0a83dcbf1a4d52ecef5deff3cea2a1526818107.png 2018-05-20 12:08:36.062413 2018-05-20 12:08:36.062413 2018-05-20 17:03:28.921561
12 24 d1059a0adf3da7c0d8148ed0bf5b3d471526817161.png 2018-05-20 11:52:46.897501 2018-05-20 11:52:46.897501 2018-05-20 17:03:49.018682
11 23 946eaff07d100890cdaafd2fa0ac76611526816119.png 2018-05-20 11:35:27.358974 2018-05-20 11:35:27.358974 2018-05-20 17:03:57.978858
2 2 9a1a748024c50f75864a8162e822c2de1526043611.jpg 2018-05-11 16:36:58.651166 2018-05-11 16:36:58.651166 2018-05-20 17:06:39.972059
15 28 473dcf7e31f1d2fcc97d2c53db901aac1526840175.png 2018-05-20 18:16:19.457087 2018-05-20 18:16:19.457087 2018-05-20 18:35:58.256969
16 32 538d8b495064671eabe6f0c920ae21a21526866927.png 2018-05-21 01:42:27.158015 2018-05-21 01:42:27.158015 2018-05-26 17:18:44.123891
17 32 a8ea9a5f4119a77461cfb1ffe705f9a61526866927.png 2018-05-21 01:42:27.160833 2018-05-21 01:42:27.160833 2018-05-26 17:18:44.123891
18 32 5276474353f4b5f03ab609e66ff8b3fe1526866927.png 2018-05-21 01:42:27.162344 2018-05-21 01:42:27.162344 2018-05-26 17:18:44.123891
\.
--
-- Data for Name: locations; Type: TABLE DATA; Schema: public; Owner: -
--
COPY public.locations (id, place_id, post_count, created_at, updated_at, deleted_at) FROM stdin;
\.
--
-- Data for Name: masters; Type: TABLE DATA; Schema: public; Owner: -
--
COPY public.masters (id, owner_id, owner_type, user_id, created_at, updated_at, deleted_at) FROM stdin;
2 2 teams 1 2018-05-11 14:38:21.361972 2018-05-11 14:38:21.361972 \N
5 1 tournaments 1 2018-05-11 15:05:48.276021 2018-05-11 15:05:48.276021 \N
6 1 matches 1 2018-05-11 15:08:57.075898 2018-05-11 15:08:57.075898 \N
7 2 matches 1 2018-05-11 15:09:19.411308 2018-05-11 15:09:19.411308 \N
3 3 teams 1 2018-05-11 14:38:43.066454 2018-05-11 14:38:43.066454 \N
4 4 teams 1 2018-05-11 14:39:08.077581 2018-05-11 14:39:08.077581 \N
1 1 teams 1 2018-05-11 14:37:54.715426 2018-05-11 14:37:54.715426 \N
\.
--
-- Data for Name: matches; Type: TABLE DATA; Schema: public; Owner: -
--
COPY public.matches (id, tournament_id, description, start_date, team1_id, team2_id, created_at, updated_at, deleted_at, team1_goals, team2_goals) FROM stdin;
2 1 Match 1 group B 2018-05-05 15:04:05 2 4 2018-05-11 15:09:19.409343 2018-05-11 15:09:19.409343 \N 1 0
1 1 Match 1 group A 2018-05-05 15:04:05 1 3 2018-05-11 15:08:57.070876 2018-05-11 15:08:57.070876 \N 1 1
\.
--
-- Data for Name: post_hashtags; Type: TABLE DATA; Schema: public; Owner: -
--
COPY public.post_hashtags (id, post_id, hashtag_id, created_at, updated_at, deleted_at) FROM stdin;
\.
--
-- Data for Name: post_stars; Type: TABLE DATA; Schema: public; Owner: -
--
COPY public.post_stars (id, user_id, post_id, created_at, updated_at, deleted_at) FROM stdin;
5 5 30 2018-05-20 19:48:46.075967 2018-05-20 19:52:58.986871 \N
6 5 31 2018-05-21 01:13:09.979111 2018-05-21 01:13:09.979111 \N
7 5 33 2018-05-21 01:47:50.380517 2018-05-21 01:47:50.380517 \N
9 1 33 2018-05-23 03:27:31.096557 2018-05-23 04:01:30.830004 \N
8 1 32 2018-05-21 01:52:53.668761 2018-05-23 04:01:49.551723 \N
\.
--
-- Data for Name: posts; Type: TABLE DATA; Schema: public; Owner: -
--
COPY public.posts (id, user_id, caption, location_id, created_at, updated_at, deleted_at, type) FROM stdin;
27 1 test \N 2018-05-20 18:15:56.951368 2018-05-20 18:15:56.951368 2018-05-20 18:35:51.98347 talent-wanted
29 1 haha \N 2018-05-20 18:20:52.196081 2018-05-20 18:20:52.196081 2018-05-20 18:35:55.050789 status
28 1 test test1 \N 2018-05-20 18:16:19.4534 2018-05-20 18:16:19.4534 2018-05-20 18:35:58.253523 status
30 5 tìm gì cho sáng nay? \N 2018-05-20 19:11:16.050016 2018-05-20 19:11:16.050016 2018-05-20 20:00:42.296715 status
31 5 test \N 2018-05-21 01:12:02.934336 2018-05-21 01:12:02.934336 2018-05-21 01:14:19.320406 status
33 1 tin thu mon ...... \N 2018-05-21 01:47:21.741603 2018-05-21 01:47:21.741603 2018-05-26 17:18:36.10482 talent-wanted
32 5 test \N 2018-05-21 01:42:27.155065 2018-05-21 01:42:27.155065 2018-05-26 17:18:44.120648 status
34 1 this test\n \N 2018-05-27 15:52:48.935549 2018-05-27 15:52:48.935549 2018-05-29 03:45:18.264744 status
35 1 wtf \N 2018-05-29 05:48:07.935064 2018-05-29 05:48:07.935064 2018-05-29 05:48:43.978153 status
36 1 test \N 2018-05-29 05:49:43.143629 2018-05-29 05:49:43.143629 2018-05-29 05:49:54.767863 status
38 1 asdasdsad \N 2018-05-29 05:52:04.344845 2018-05-29 05:52:04.344845 2018-05-29 05:53:42.128145 status
37 1 asdsadas \N 2018-05-29 05:50:39.421701 2018-05-29 05:50:39.421701 2018-05-29 05:53:45.248282 status
45 1 asdaszxcgegrw \N 2018-05-29 06:07:37.815173 2018-05-29 06:07:37.815173 2018-05-29 06:10:47.857908 status
44 1 asdasdzxczx \N 2018-05-29 06:05:38.181566 2018-05-29 06:05:38.181566 2018-05-29 06:10:51.628513 status
43 1 sadsadzxcxz\n \N 2018-05-29 06:04:22.975841 2018-05-29 06:04:22.975841 2018-05-29 06:10:53.909439 status
42 1 asdasdzxczx \N 2018-05-29 06:02:41.231968 2018-05-29 06:02:41.231968 2018-05-29 06:10:57.011001 status
41 1 asdasdas \N 2018-05-29 06:02:16.169694 2018-05-29 06:02:16.169694 2018-05-29 06:10:59.240213 status
40 1 asdasd \N 2018-05-29 06:00:15.698258 2018-05-29 06:00:15.698258 2018-05-29 06:11:02.371773 status
39 1 asdads \N 2018-05-29 05:57:07.407755 2018-05-29 05:57:07.407755 2018-05-29 06:11:04.902423 status
46 1 asdasdxzcxzcwrewr2313 \N 2018-05-29 06:10:35.351979 2018-05-29 06:10:35.351979 2018-05-29 06:11:07.507322 status
\.
--
-- Data for Name: star_counts; Type: TABLE DATA; Schema: public; Owner: -
--
COPY public.star_counts (id, owner_id, owner_type, quantity, created_at, updated_at, deleted_at) FROM stdin;
99 27 posts 0 2018-05-20 18:15:56.955743 2018-05-20 18:15:56.955743 \N
100 28 posts 0 2018-05-20 18:16:19.455363 2018-05-20 18:16:19.455363 \N
101 29 posts 0 2018-05-20 18:20:52.198266 2018-05-20 18:20:52.198266 \N
105 75 comments 0 2018-05-20 19:39:20.360948 2018-05-20 19:39:20.360948 \N
106 76 comments 0 2018-05-20 19:44:12.455762 2018-05-20 19:49:06.045652 \N
104 74 comments 0 2018-05-20 19:34:39.670741 2018-05-20 19:51:59.683318 \N
103 73 comments 0 2018-05-20 19:33:57.882935 2018-05-20 19:52:18.092891 \N
102 30 posts 1 2018-05-20 19:11:16.054689 2018-05-20 19:52:58.990654 \N
108 77 comments 1 2018-05-21 01:13:06.445557 2018-05-21 01:13:08.512531 \N
107 31 posts 1 2018-05-21 01:12:02.938418 2018-05-21 01:13:09.983492 \N
112 79 comments 0 2018-05-21 01:47:55.352175 2018-05-21 01:47:55.352175 \N
114 81 comments 0 2018-05-23 03:18:38.4762 2018-05-23 03:18:38.4762 \N
116 83 comments 0 2018-05-23 03:27:10.858456 2018-05-23 03:27:10.858456 \N
120 87 comments 0 2018-05-23 03:56:48.980952 2018-05-23 03:56:48.980952 \N
121 88 comments 0 2018-05-23 03:58:18.097304 2018-05-23 03:58:18.097304 \N
122 89 comments 0 2018-05-23 04:00:40.630138 2018-05-23 04:00:40.630138 \N
117 84 comments 1 2018-05-23 03:29:06.337287 2018-05-23 04:01:00.798799 \N
119 86 comments 1 2018-05-23 03:56:40.816557 2018-05-23 04:01:22.954691 \N
110 33 posts 2 2018-05-21 01:47:21.744771 2018-05-23 04:01:30.834074 \N
113 80 comments 1 2018-05-23 03:18:27.60609 2018-05-23 04:01:33.269009 \N
111 78 comments 1 2018-05-21 01:47:42.308205 2018-05-23 04:01:43.973214 \N
123 90 comments 1 2018-05-23 04:00:44.136905 2018-05-23 04:01:47.174699 \N
109 32 posts 1 2018-05-21 01:42:27.156646 2018-05-23 04:01:49.554684 \N
115 82 comments 1 2018-05-23 03:19:14.476035 2018-05-26 17:11:46.321393 \N
118 85 comments 0 2018-05-23 03:54:03.991753 2018-05-26 17:11:49.715572 \N
124 34 posts 0 2018-05-27 15:52:48.942957 2018-05-27 15:52:48.942957 \N
125 91 comments 0 2018-05-27 16:03:51.545498 2018-05-27 16:03:51.545498 \N
126 35 posts 0 2018-05-29 05:48:07.939232 2018-05-29 05:48:07.939232 \N
127 36 posts 0 2018-05-29 05:49:43.146449 2018-05-29 05:49:43.146449 \N
128 37 posts 0 2018-05-29 05:50:39.423129 2018-05-29 05:50:39.423129 \N
129 38 posts 0 2018-05-29 05:52:04.346956 2018-05-29 05:52:04.346956 \N
130 39 posts 0 2018-05-29 05:57:07.409423 2018-05-29 05:57:07.409423 \N
131 40 posts 0 2018-05-29 06:00:15.700667 2018-05-29 06:00:15.700667 \N