-
Notifications
You must be signed in to change notification settings - Fork 9
/
public.sql
1001 lines (899 loc) · 31.7 KB
/
public.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
/*
Navicat Premium Data Transfer
Source Server : 123
Source Server Type : PostgreSQL
Source Server Version : 120003
Source Host : localhost:5432
Source Catalog : postgres
Source Schema : public
Target Server Type : PostgreSQL
Target Server Version : 120003
File Encoding : 65001
Date: 30/05/2020 22:06:37
*/
-- ----------------------------
-- Sequence structure for account_id_seq
-- ----------------------------
DROP SEQUENCE IF EXISTS "public"."account_id_seq";
CREATE SEQUENCE "public"."account_id_seq"
INCREMENT 1
MINVALUE 1
MAXVALUE 9223372036854775807
START 1
CACHE 1;
-- ----------------------------
-- Sequence structure for accounts_id_seq
-- ----------------------------
DROP SEQUENCE IF EXISTS "public"."accounts_id_seq";
CREATE SEQUENCE "public"."accounts_id_seq"
INCREMENT 1
MINVALUE 1
MAXVALUE 9223372036854775807
START 1
CACHE 1;
-- ----------------------------
-- Sequence structure for ban_seq
-- ----------------------------
DROP SEQUENCE IF EXISTS "public"."ban_seq";
CREATE SEQUENCE "public"."ban_seq"
INCREMENT 1
MINVALUE 1
MAXVALUE 9223372036854775807
START 1
CACHE 1;
-- ----------------------------
-- Sequence structure for channels_id_seq
-- ----------------------------
DROP SEQUENCE IF EXISTS "public"."channels_id_seq";
CREATE SEQUENCE "public"."channels_id_seq"
INCREMENT 1
MINVALUE 1
MAXVALUE 9223372036854775807
START 1
CACHE 1;
-- ----------------------------
-- Sequence structure for check_event_seq
-- ----------------------------
DROP SEQUENCE IF EXISTS "public"."check_event_seq";
CREATE SEQUENCE "public"."check_event_seq"
INCREMENT 1
MINVALUE 1
MAXVALUE 9223372036854775807
START 1
CACHE 1;
-- ----------------------------
-- Sequence structure for clan_seq
-- ----------------------------
DROP SEQUENCE IF EXISTS "public"."clan_seq";
CREATE SEQUENCE "public"."clan_seq"
INCREMENT 1
MINVALUE 1
MAXVALUE 9223372036854775807
START 1
CACHE 1;
-- ----------------------------
-- Sequence structure for clans_id_seq
-- ----------------------------
DROP SEQUENCE IF EXISTS "public"."clans_id_seq";
CREATE SEQUENCE "public"."clans_id_seq"
INCREMENT 1
MINVALUE 1
MAXVALUE 9223372036854775807
START 1
CACHE 1;
-- ----------------------------
-- Sequence structure for contas_seq
-- ----------------------------
DROP SEQUENCE IF EXISTS "public"."contas_seq";
CREATE SEQUENCE "public"."contas_seq"
INCREMENT 1
MINVALUE 1
MAXVALUE 9223372036854775807
START 1
CACHE 1;
-- ----------------------------
-- Sequence structure for gameservers_id_seq
-- ----------------------------
DROP SEQUENCE IF EXISTS "public"."gameservers_id_seq";
CREATE SEQUENCE "public"."gameservers_id_seq"
INCREMENT 1
MINVALUE 1
MAXVALUE 9223372036854775807
START 1
CACHE 1;
-- ----------------------------
-- Sequence structure for gift_id_seq
-- ----------------------------
DROP SEQUENCE IF EXISTS "public"."gift_id_seq";
CREATE SEQUENCE "public"."gift_id_seq"
INCREMENT 1
MINVALUE 1
MAXVALUE 9223372036854775807
START 1
CACHE 1;
-- ----------------------------
-- Sequence structure for ipsystem_id_seq
-- ----------------------------
DROP SEQUENCE IF EXISTS "public"."ipsystem_id_seq";
CREATE SEQUENCE "public"."ipsystem_id_seq"
INCREMENT 1
MINVALUE 1
MAXVALUE 9223372036854775807
START 1
CACHE 1;
-- ----------------------------
-- Sequence structure for ipsystem_seq
-- ----------------------------
DROP SEQUENCE IF EXISTS "public"."ipsystem_seq";
CREATE SEQUENCE "public"."ipsystem_seq"
INCREMENT 1
MINVALUE 1
MAXVALUE 9223372036854775807
START 1
CACHE 1;
-- ----------------------------
-- Sequence structure for items_id_seq
-- ----------------------------
DROP SEQUENCE IF EXISTS "public"."items_id_seq";
CREATE SEQUENCE "public"."items_id_seq"
INCREMENT 1
MINVALUE 1
MAXVALUE 9223372036854775807
START 1
CACHE 1;
-- ----------------------------
-- Sequence structure for jogador_amigo_seq
-- ----------------------------
DROP SEQUENCE IF EXISTS "public"."jogador_amigo_seq";
CREATE SEQUENCE "public"."jogador_amigo_seq"
INCREMENT 1
MINVALUE 1
MAXVALUE 9223372036854775807
START 1
CACHE 1;
-- ----------------------------
-- Sequence structure for jogador_inventario_seq
-- ----------------------------
DROP SEQUENCE IF EXISTS "public"."jogador_inventario_seq";
CREATE SEQUENCE "public"."jogador_inventario_seq"
INCREMENT 1
MINVALUE 1
MAXVALUE 9223372036854775807
START 1
CACHE 1;
-- ----------------------------
-- Sequence structure for jogador_mensagem_seq
-- ----------------------------
DROP SEQUENCE IF EXISTS "public"."jogador_mensagem_seq";
CREATE SEQUENCE "public"."jogador_mensagem_seq"
INCREMENT 1
MINVALUE 1
MAXVALUE 9223372036854775807
START 1
CACHE 1;
-- ----------------------------
-- Sequence structure for loja_seq
-- ----------------------------
DROP SEQUENCE IF EXISTS "public"."loja_seq";
CREATE SEQUENCE "public"."loja_seq"
INCREMENT 1
MINVALUE 1
MAXVALUE 9223372036854775807
START 1
CACHE 1;
-- ----------------------------
-- Sequence structure for message_id_seq
-- ----------------------------
DROP SEQUENCE IF EXISTS "public"."message_id_seq";
CREATE SEQUENCE "public"."message_id_seq"
INCREMENT 1
MINVALUE 1
MAXVALUE 9223372036854775807
START 1
CACHE 1;
-- ----------------------------
-- Sequence structure for player_eqipment_id_seq
-- ----------------------------
DROP SEQUENCE IF EXISTS "public"."player_eqipment_id_seq";
CREATE SEQUENCE "public"."player_eqipment_id_seq"
INCREMENT 1
MINVALUE 1
MAXVALUE 9223372036854775807
START 1
CACHE 1;
-- ----------------------------
-- Sequence structure for player_friends_player_account_id_seq
-- ----------------------------
DROP SEQUENCE IF EXISTS "public"."player_friends_player_account_id_seq";
CREATE SEQUENCE "public"."player_friends_player_account_id_seq"
INCREMENT 1
MINVALUE 1
MAXVALUE 9223372036854775807
START 1
CACHE 1;
-- ----------------------------
-- Sequence structure for player_mails_player_account_id_seq
-- ----------------------------
DROP SEQUENCE IF EXISTS "public"."player_mails_player_account_id_seq";
CREATE SEQUENCE "public"."player_mails_player_account_id_seq"
INCREMENT 1
MINVALUE 1
MAXVALUE 9223372036854775807
START 1
CACHE 1;
-- ----------------------------
-- Sequence structure for players_id_seq
-- ----------------------------
DROP SEQUENCE IF EXISTS "public"."players_id_seq";
CREATE SEQUENCE "public"."players_id_seq"
INCREMENT 1
MINVALUE 1
MAXVALUE 9223372036854775807
START 1
CACHE 1;
-- ----------------------------
-- Sequence structure for storage_seq
-- ----------------------------
DROP SEQUENCE IF EXISTS "public"."storage_seq";
CREATE SEQUENCE "public"."storage_seq"
INCREMENT 1
MINVALUE 1
MAXVALUE 9223372036854775807
START 1
CACHE 1;
-- ----------------------------
-- Sequence structure for templates_id_seq
-- ----------------------------
DROP SEQUENCE IF EXISTS "public"."templates_id_seq";
CREATE SEQUENCE "public"."templates_id_seq"
INCREMENT 1
MINVALUE 1
MAXVALUE 9223372036854775807
START 1
CACHE 1;
-- ----------------------------
-- Table structure for accounts
-- ----------------------------
DROP TABLE IF EXISTS "public"."accounts";
CREATE TABLE "public"."accounts" (
"login" varchar COLLATE "pg_catalog"."default" NOT NULL DEFAULT ''::character varying,
"password" varchar COLLATE "pg_catalog"."default" NOT NULL DEFAULT ''::character varying,
"player_id" int8 NOT NULL DEFAULT nextval('account_id_seq'::regclass),
"player_name" varchar COLLATE "pg_catalog"."default" NOT NULL DEFAULT ''::character varying,
"name_color" int4 NOT NULL DEFAULT 0,
"clan_id" int4 NOT NULL DEFAULT 0,
"rank" int4 NOT NULL DEFAULT 0,
"gp" int4 NOT NULL DEFAULT 60000,
"exp" int4 NOT NULL DEFAULT 0,
"pc_cafe" int4 NOT NULL DEFAULT 0,
"fights" int4 NOT NULL DEFAULT 0,
"fights_win" int4 NOT NULL DEFAULT 0,
"fights_lost" int4 NOT NULL DEFAULT 0,
"kills_count" int4 NOT NULL DEFAULT 0,
"deaths_count" int4 NOT NULL DEFAULT 0,
"headshots_count" int4 NOT NULL DEFAULT 0,
"escapes" int4 NOT NULL DEFAULT 0,
"access_level" int4 NOT NULL DEFAULT 0,
"lastip" varchar(32) COLLATE "pg_catalog"."default" NOT NULL DEFAULT 0,
"email" varchar COLLATE "pg_catalog"."default" NOT NULL DEFAULT ''::character varying,
"last_rankup_date" int8 NOT NULL DEFAULT 1010000,
"money" int4 NOT NULL DEFAULT 25000,
"online" bool NOT NULL DEFAULT false,
"weapon_primary" int4 NOT NULL DEFAULT 0,
"weapon_secondary" int4 NOT NULL DEFAULT 601002003,
"weapon_melee" int4 NOT NULL DEFAULT 702001001,
"weapon_thrown_normal" int4 NOT NULL DEFAULT 803007001,
"weapon_thrown_special" int4 NOT NULL DEFAULT 904007002,
"char_red" int4 NOT NULL DEFAULT 1001001005,
"char_blue" int4 NOT NULL DEFAULT 1001002006,
"char_helmet" int4 NOT NULL DEFAULT 1102003001,
"char_dino" int4 NOT NULL DEFAULT 1006003041,
"char_beret" int4 NOT NULL DEFAULT 0,
"brooch" int4 NOT NULL DEFAULT 10,
"insignia" int4 NOT NULL DEFAULT 124,
"medal" int4 NOT NULL DEFAULT 403,
"blue_order" int4 NOT NULL DEFAULT 186,
"mission_id1" int4 NOT NULL DEFAULT 1,
"clanaccess" int4 NOT NULL DEFAULT 0,
"clandate" int4 NOT NULL DEFAULT 0,
"effects" int8 NOT NULL DEFAULT 0,
"fights_draw" int4 NOT NULL DEFAULT 0,
"mission_id2" int4 NOT NULL DEFAULT 0,
"mission_id3" int4 NOT NULL DEFAULT 0,
"totalkills_count" int4 NOT NULL DEFAULT 0,
"totalfights_count" int4 NOT NULL DEFAULT 0,
"status" int8 NOT NULL DEFAULT '4294967295'::bigint,
"last_login" int8 NOT NULL DEFAULT 0,
"clan_game_pt" int4 NOT NULL DEFAULT 0,
"clan_wins_pt" int4 NOT NULL DEFAULT 0,
"last_mac" macaddr NOT NULL DEFAULT '00:00:00:00:00:00'::macaddr,
"ban_obj_id" int8 NOT NULL DEFAULT 0,
"token" varchar COLLATE "pg_catalog"."default",
"timegetcash" date,
"data_nasc" date,
"cad_ip" varchar(32) COLLATE "pg_catalog"."default"
)
;
-- ----------------------------
-- Table structure for accounts_rank
-- ----------------------------
DROP TABLE IF EXISTS "public"."accounts_rank";
CREATE TABLE "public"."accounts_rank" (
"login" varchar COLLATE "pg_catalog"."default" NOT NULL DEFAULT ''::character varying,
"password" varchar COLLATE "pg_catalog"."default" NOT NULL DEFAULT ''::character varying,
"player_id" int8 NOT NULL DEFAULT nextval('account_id_seq'::regclass),
"player_name" varchar COLLATE "pg_catalog"."default" NOT NULL DEFAULT ''::character varying,
"name_color" int4 NOT NULL DEFAULT 0,
"clan_id" int4 NOT NULL DEFAULT 0,
"rank" int4 NOT NULL DEFAULT 0,
"gp" int4 NOT NULL DEFAULT 60000,
"exp" int4 NOT NULL DEFAULT 0,
"pc_cafe" int4 NOT NULL DEFAULT 0,
"fights" int4 NOT NULL DEFAULT 0,
"fights_win" int4 NOT NULL DEFAULT 0,
"fights_lost" int4 NOT NULL DEFAULT 0,
"kills_count" int4 NOT NULL DEFAULT 0,
"deaths_count" int4 NOT NULL DEFAULT 0,
"headshots_count" int4 NOT NULL DEFAULT 0,
"escapes" int4 NOT NULL DEFAULT 0,
"access_level" int4 NOT NULL DEFAULT 0,
"lastip" varchar(32) COLLATE "pg_catalog"."default" NOT NULL DEFAULT 0,
"email" varchar COLLATE "pg_catalog"."default" NOT NULL DEFAULT ''::character varying,
"last_rankup_date" int8 NOT NULL DEFAULT 1010000,
"money" int4 NOT NULL DEFAULT 25000,
"online" bool NOT NULL DEFAULT false,
"weapon_primary" int4 NOT NULL DEFAULT 0,
"weapon_secondary" int4 NOT NULL DEFAULT 601002003,
"weapon_melee" int4 NOT NULL DEFAULT 702001001,
"weapon_thrown_normal" int4 NOT NULL DEFAULT 803007001,
"weapon_thrown_special" int4 NOT NULL DEFAULT 904007002,
"char_red" int4 NOT NULL DEFAULT 1001001005,
"char_blue" int4 NOT NULL DEFAULT 1001002006,
"char_helmet" int4 NOT NULL DEFAULT 1102003001,
"char_dino" int4 NOT NULL DEFAULT 1006003041,
"char_beret" int4 NOT NULL DEFAULT 0,
"brooch" int4 NOT NULL DEFAULT 10,
"insignia" int4 NOT NULL DEFAULT 124,
"medal" int4 NOT NULL DEFAULT 403,
"blue_order" int4 NOT NULL DEFAULT 186,
"mission_id1" int4 NOT NULL DEFAULT 1,
"clanaccess" int4 NOT NULL DEFAULT 0,
"clandate" int4 NOT NULL DEFAULT 0,
"effects" int8 NOT NULL DEFAULT 0,
"fights_draw" int4 NOT NULL DEFAULT 0,
"mission_id2" int4 NOT NULL DEFAULT 0,
"mission_id3" int4 NOT NULL DEFAULT 0,
"totalkills_count" int4 NOT NULL DEFAULT 0,
"totalfights_count" int4 NOT NULL DEFAULT 0,
"status" int8 NOT NULL DEFAULT '4294967295'::bigint,
"last_login" int8 NOT NULL DEFAULT 0,
"clan_game_pt" int4 NOT NULL DEFAULT 0,
"clan_wins_pt" int4 NOT NULL DEFAULT 0,
"last_mac" macaddr NOT NULL DEFAULT '00:00:00:00:00:00'::macaddr,
"ban_obj_id" int8 NOT NULL DEFAULT 0
)
;
-- ----------------------------
-- Records of accounts_rank
-- ----------------------------
-- ----------------------------
-- Table structure for ban_history
-- ----------------------------
DROP TABLE IF EXISTS "public"."ban_history";
CREATE TABLE "public"."ban_history" (
"object_id" int8 NOT NULL DEFAULT nextval('ban_seq'::regclass),
"provider_id" int8 NOT NULL DEFAULT 0,
"type" varchar(255) COLLATE "pg_catalog"."default" NOT NULL DEFAULT ''::character varying,
"value" varchar(255) COLLATE "pg_catalog"."default" NOT NULL DEFAULT ''::character varying,
"reason" varchar(255) COLLATE "pg_catalog"."default" NOT NULL DEFAULT ''::character varying,
"start_date" timestamp(6) NOT NULL DEFAULT '2000-01-01 00:00:00'::timestamp without time zone,
"end_date" timestamp(6) NOT NULL DEFAULT '2000-01-01 00:00:00'::timestamp without time zone
)
;
-- ----------------------------
-- Records of ban_history
-- ----------------------------
-- ----------------------------
-- Table structure for clan_data
-- ----------------------------
DROP TABLE IF EXISTS "public"."clan_data";
CREATE TABLE "public"."clan_data" (
"clan_id" int4 NOT NULL DEFAULT 0,
"clan_rank" int4 NOT NULL DEFAULT 0,
"clan_name" varchar COLLATE "pg_catalog"."default" DEFAULT ''::character varying,
"owner_id" int8 NOT NULL DEFAULT 0,
"logo" int8 NOT NULL DEFAULT 0,
"color" int4 NOT NULL DEFAULT 0,
"clan_info" varchar COLLATE "pg_catalog"."default" DEFAULT ''::character varying,
"clan_news" varchar COLLATE "pg_catalog"."default" DEFAULT ''::character varying,
"create_date" varchar COLLATE "pg_catalog"."default" NOT NULL DEFAULT ''::character varying,
"autoridade" int4 NOT NULL DEFAULT 0,
"limite_rank" int4 NOT NULL DEFAULT 0,
"limite_idade" int4 NOT NULL DEFAULT 0,
"limite_idade2" int4 NOT NULL DEFAULT 0,
"partidas" int4 NOT NULL DEFAULT 0,
"vitorias" int4 NOT NULL DEFAULT 0,
"derrotas" int4 NOT NULL DEFAULT 0,
"pontos" int4 NOT NULL DEFAULT 0,
"max_players" int4 NOT NULL DEFAULT 50,
"clan_exp" int4 NOT NULL DEFAULT 0
)
;
-- ----------------------------
-- Records of clan_data
-- ----------------------------
-- ----------------------------
-- Table structure for clan_invites
-- ----------------------------
DROP TABLE IF EXISTS "public"."clan_invites";
CREATE TABLE "public"."clan_invites" (
"clan_id" int4 NOT NULL DEFAULT 0,
"player_id" int8 NOT NULL DEFAULT 0,
"dateinvite" int4 NOT NULL DEFAULT 0,
"text" text COLLATE "pg_catalog"."default"
)
;
-- ----------------------------
-- Records of clan_invites
-- ----------------------------
-- ----------------------------
-- Table structure for configs
-- ----------------------------
DROP TABLE IF EXISTS "public"."configs";
CREATE TABLE "public"."configs" (
"owner_id" int8 NOT NULL DEFAULT 0,
"config" int4 NOT NULL DEFAULT 55,
"sangue" int4 NOT NULL DEFAULT 1,
"mira" int4 NOT NULL DEFAULT 1,
"mao" int4 NOT NULL DEFAULT 0,
"audio1" int4 NOT NULL DEFAULT 100,
"audio2" int4 NOT NULL DEFAULT 100,
"audio_enable" int4 NOT NULL DEFAULT 7,
"sensibilidade" int4 NOT NULL DEFAULT 50,
"visao" int4 NOT NULL DEFAULT 70,
"mouse_invertido" int4 NOT NULL DEFAULT 0,
"msgconvite" int4 NOT NULL DEFAULT 0,
"chatsusurro" int4 NOT NULL DEFAULT 0,
"macro" int4 NOT NULL DEFAULT 0,
"macro_1" varchar(32) COLLATE "pg_catalog"."default" NOT NULL DEFAULT ''::character varying,
"macro_2" varchar(32) COLLATE "pg_catalog"."default" NOT NULL DEFAULT ''::character varying,
"macro_3" varchar(32) COLLATE "pg_catalog"."default" NOT NULL DEFAULT ''::character varying,
"macro_4" varchar(32) COLLATE "pg_catalog"."default" NOT NULL DEFAULT ''::character varying,
"macro_5" varchar(32) COLLATE "pg_catalog"."default" NOT NULL DEFAULT ''::character varying
)
;
-- ----------------------------
-- Records of configs
-- ----------------------------
-- ----------------------------
-- Table structure for events_login
-- ----------------------------
DROP TABLE IF EXISTS "public"."events_login";
CREATE TABLE "public"."events_login" (
"start_date" int8 NOT NULL DEFAULT 0,
"end_date" int8 NOT NULL DEFAULT 0,
"reward_id" int4 NOT NULL DEFAULT 0,
"reward_count" int4 NOT NULL DEFAULT 0
)
;
-- ----------------------------
-- Records of events_login
-- ----------------------------
-- ----------------------------
-- Table structure for events_mapbonus
-- ----------------------------
DROP TABLE IF EXISTS "public"."events_mapbonus";
CREATE TABLE "public"."events_mapbonus" (
"start_date" int8 NOT NULL DEFAULT 0,
"end_date" int8 NOT NULL DEFAULT 0,
"map_id" int4 NOT NULL DEFAULT 0,
"stage_type" int4 NOT NULL DEFAULT 0,
"percent_xp" int4 NOT NULL DEFAULT 0,
"percent_gp" int4 NOT NULL DEFAULT 0
)
;
-- ----------------------------
-- Records of events_mapbonus
-- ----------------------------
-- ----------------------------
-- Table structure for events_playtime
-- ----------------------------
DROP TABLE IF EXISTS "public"."events_playtime";
CREATE TABLE "public"."events_playtime" (
"start_date" int8 NOT NULL DEFAULT 0,
"end_date" int8 NOT NULL DEFAULT 0,
"title" varchar(30) COLLATE "pg_catalog"."default" NOT NULL DEFAULT ''::character varying,
"seconds_target" int8 NOT NULL DEFAULT 1000,
"good_reward1" int4 NOT NULL DEFAULT 0,
"good_reward2" int4 NOT NULL DEFAULT 0,
"good_count1" int4 NOT NULL DEFAULT 0,
"good_count2" int4 NOT NULL DEFAULT 0
)
;
-- ----------------------------
-- Records of events_playtime
-- ----------------------------
-- ----------------------------
-- Table structure for events_quest
-- ----------------------------
DROP TABLE IF EXISTS "public"."events_quest";
CREATE TABLE "public"."events_quest" (
"start_date" int8 NOT NULL DEFAULT 0,
"end_date" int8 NOT NULL DEFAULT 0
)
;
-- ----------------------------
-- Records of events_quest
-- ----------------------------
-- ----------------------------
-- Table structure for events_rankup
-- ----------------------------
DROP TABLE IF EXISTS "public"."events_rankup";
CREATE TABLE "public"."events_rankup" (
"start_date" int8 NOT NULL DEFAULT 0,
"end_date" int8 NOT NULL DEFAULT 0,
"percent_xp" int4 NOT NULL DEFAULT 0,
"percent_gp" int4 NOT NULL DEFAULT 0
)
;
-- ----------------------------
-- Records of events_rankup
-- ----------------------------
INSERT INTO "public"."events_rankup" VALUES (171218, 311219, 1500, 1500);
INSERT INTO "public"."events_rankup" VALUES (171218, 311219, 1500, 1500);
INSERT INTO "public"."events_rankup" VALUES (181217, 191231, 1500, 1500);
INSERT INTO "public"."events_rankup" VALUES (181217, 191231, 1500, 1500);
INSERT INTO "public"."events_rankup" VALUES (171218005, 3112190000, 1500, 1500);
INSERT INTO "public"."events_rankup" VALUES (171218005, 3112190000, 1500, 1500);
INSERT INTO "public"."events_rankup" VALUES (1812170000, 1912310000, 1500, 1500);
INSERT INTO "public"."events_rankup" VALUES (1812170000, 1912310000, 1500, 1500);
-- ----------------------------
-- Table structure for events_visit
-- ----------------------------
DROP TABLE IF EXISTS "public"."events_visit";
CREATE TABLE "public"."events_visit" (
"event_id" int4 NOT NULL DEFAULT nextval('check_event_seq'::regclass),
"start_date" int8 NOT NULL DEFAULT 0,
"end_date" int8 NOT NULL DEFAULT 0,
"title" varchar(59) COLLATE "pg_catalog"."default" NOT NULL DEFAULT ''::character varying,
"checks" int4 NOT NULL DEFAULT 7,
"goods1" varchar COLLATE "pg_catalog"."default" NOT NULL,
"counts1" varchar COLLATE "pg_catalog"."default" NOT NULL,
"goods2" varchar COLLATE "pg_catalog"."default" NOT NULL DEFAULT ''::character varying,
"counts2" varchar COLLATE "pg_catalog"."default" NOT NULL DEFAULT ''::character varying
)
;
-- ----------------------------
-- Records of events_visit
-- ----------------------------
-- ----------------------------
-- Table structure for events_xmas
-- ----------------------------
DROP TABLE IF EXISTS "public"."events_xmas";
CREATE TABLE "public"."events_xmas" (
"start_date" int8 NOT NULL DEFAULT 0,
"end_date" int8 NOT NULL DEFAULT 0
)
;
-- ----------------------------
-- Records of events_xmas
-- ----------------------------
-- ----------------------------
-- Table structure for friends
-- ----------------------------
DROP TABLE IF EXISTS "public"."friends";
CREATE TABLE "public"."friends" (
"friend_id" int8 NOT NULL DEFAULT 0,
"owner_id" int8 NOT NULL DEFAULT 0,
"status" int4 NOT NULL DEFAULT 0
)
;
-- ----------------------------
-- Records of friends
-- ----------------------------
-- ----------------------------
-- Table structure for getcash
-- ----------------------------
DROP TABLE IF EXISTS "public"."getcash";
CREATE TABLE "public"."getcash" (
"login" varchar(255) COLLATE "pg_catalog"."default",
"timegetcash" int4
)
;
-- ----------------------------
-- Records of getcash
-- ----------------------------
-- ----------------------------
-- Table structure for getcash_vip_gold
-- ----------------------------
DROP TABLE IF EXISTS "public"."getcash_vip_gold";
CREATE TABLE "public"."getcash_vip_gold" (
"login" varchar(255) COLLATE "pg_catalog"."default",
"timegetcash" int4
)
;
-- ----------------------------
-- Records of getcash_vip_gold
-- ----------------------------
-- ----------------------------
-- Table structure for noticias
-- ----------------------------
DROP TABLE IF EXISTS "public"."noticias";
CREATE TABLE "public"."noticias" (
"titulo" text COLLATE "pg_catalog"."default",
"noticia" text COLLATE "pg_catalog"."default",
"autor" text COLLATE "pg_catalog"."default",
"tipo" text COLLATE "pg_catalog"."default",
"data" date,
"id" int8,
"col_name" text COLLATE "pg_catalog"."default"
)
;
-- ----------------------------
-- Records of noticias
-- ----------------------------
INSERT INTO "public"."noticias" VALUES ('dou o cu e chupo rola', '<p>dou o cu e chupo rola</p>', 'malakaloca', 'Eventos', '2020-05-30', 1, NULL);
INSERT INTO "public"."noticias" VALUES ('12312', '<p>teste</p>', 'teste', 'Noticias', '2020-05-30', 2, NULL);
INSERT INTO "public"."noticias" VALUES ('ste23', '<p>teste</p>', 'teste', 'Noticias', '2020-05-30', 3, NULL);
INSERT INTO "public"."noticias" VALUES ('teasd', '<p>tasdas</p>', 'teste', 'Punicoes', '2020-05-30', 4, NULL);
INSERT INTO "public"."noticias" VALUES ('123', '<p>123</p>', 'teste', 'Atualizacao', '2020-05-30', 5, NULL);
INSERT INTO "public"."noticias" VALUES ('Avasdas', '<p>123</p>', 'teste', 'Avisos', '2020-05-30', 6, NULL);
-- ----------------------------
-- Table structure for pin
-- ----------------------------
DROP TABLE IF EXISTS "public"."pin";
CREATE TABLE "public"."pin" (
"id" int4,
"pin" text COLLATE "pg_catalog"."default",
"valor" int8
)
;
-- ----------------------------
-- Records of pin
-- ----------------------------
INSERT INTO "public"."pin" VALUES (2, '1958642946589456', 100000);
-- ----------------------------
-- Table structure for pin_log
-- ----------------------------
DROP TABLE IF EXISTS "public"."pin_log";
CREATE TABLE "public"."pin_log" (
"login" varchar(255) COLLATE "pg_catalog"."default",
"pin" varchar(255) COLLATE "pg_catalog"."default",
"valor" varchar(255) COLLATE "pg_catalog"."default",
"data" date
)
;
-- ----------------------------
-- Table structure for suporte
-- ----------------------------
DROP TABLE IF EXISTS "public"."suporte";
CREATE TABLE "public"."suporte" (
"nickname" text COLLATE "pg_catalog"."default",
"titulo" text COLLATE "pg_catalog"."default",
"mensagem" text COLLATE "pg_catalog"."default",
"status" text COLLATE "pg_catalog"."default",
"id" int4,
"create_date" date
)
;
-- ----------------------------
-- Records of suporte
-- ----------------------------
INSERT INTO "public"."suporte" VALUES ('teste', 'teste', 'teste', '0', 1, '2020-05-30');
-- ----------------------------
-- Table structure for titles
-- ----------------------------
DROP TABLE IF EXISTS "public"."titles";
CREATE TABLE "public"."titles" (
"owner_id" int8 NOT NULL DEFAULT 0,
"titleequiped1" int4 NOT NULL DEFAULT 0,
"titleequiped2" int4 NOT NULL DEFAULT 0,
"titleequiped3" int4 NOT NULL DEFAULT 0,
"titlepos1" int4 NOT NULL DEFAULT 0,
"titlepos2" int4 NOT NULL DEFAULT 0,
"titlepos3" int4 NOT NULL DEFAULT 0,
"titlepos4" int4 NOT NULL DEFAULT 0,
"titlepos5" int4 NOT NULL DEFAULT 0,
"titlepos6" int4 NOT NULL DEFAULT 0,
"title1" int4 NOT NULL DEFAULT 0,
"title2" int4 NOT NULL DEFAULT 0,
"title3" int4 NOT NULL DEFAULT 0,
"title4" int4 NOT NULL DEFAULT 0,
"title5" int4 NOT NULL DEFAULT 0,
"title6" int4 NOT NULL DEFAULT 0,
"title7" int4 NOT NULL DEFAULT 0,
"title8" int4 NOT NULL DEFAULT 0,
"title9" int4 NOT NULL DEFAULT 0,
"title10" int4 NOT NULL DEFAULT 0,
"title11" int4 NOT NULL DEFAULT 0,
"title12" int4 NOT NULL DEFAULT 0,
"title13" int4 NOT NULL DEFAULT 0,
"title14" int4 NOT NULL DEFAULT 0,
"title15" int4 NOT NULL DEFAULT 0,
"title16" int4 NOT NULL DEFAULT 0,
"title17" int4 NOT NULL DEFAULT 0,
"title18" int4 NOT NULL DEFAULT 0,
"title19" int4 NOT NULL DEFAULT 0,
"title20" int4 NOT NULL DEFAULT 0,
"title21" int4 NOT NULL DEFAULT 0,
"title22" int4 NOT NULL DEFAULT 0,
"title23" int4 NOT NULL DEFAULT 0,
"title24" int4 NOT NULL DEFAULT 0,
"title25" int4 NOT NULL DEFAULT 0,
"title26" int4 NOT NULL DEFAULT 0,
"title27" int4 NOT NULL DEFAULT 0,
"title28" int4 NOT NULL DEFAULT 0,
"title29" int4 NOT NULL DEFAULT 0,
"title30" int4 NOT NULL DEFAULT 0,
"title31" int4 NOT NULL DEFAULT 0,
"title32" int4 NOT NULL DEFAULT 0,
"title33" int4 NOT NULL DEFAULT 0,
"title34" int4 NOT NULL DEFAULT 0,
"title35" int4 NOT NULL DEFAULT 0,
"title36" int4 NOT NULL DEFAULT 0,
"title37" int4 NOT NULL DEFAULT 0,
"title38" int4 NOT NULL DEFAULT 0,
"title39" int4 NOT NULL DEFAULT 0,
"title40" int4 NOT NULL DEFAULT 0,
"title41" int4 NOT NULL DEFAULT 0,
"title42" int4 NOT NULL DEFAULT 0,
"title43" int4 NOT NULL DEFAULT 0,
"title44" int4 NOT NULL DEFAULT 0
)
;
-- ----
-- ----------------------------
-- Table structure for vip
-- ----------------------------
DROP TABLE IF EXISTS "public"."vip";
CREATE TABLE "public"."vip" (
"player_id" varchar(255) COLLATE "pg_catalog"."default",
"login" varchar(255) COLLATE "pg_catalog"."default",
"player_name" varchar(255) COLLATE "pg_catalog"."default",
"data_dado" date,
"data_final" date
)
;
-- ----------------------------
-- Records of vip
-- ----------------------------
-- ----------------------------
-- Function structure for insert_account_activity
-- ----------------------------
DROP FUNCTION IF EXISTS "public"."insert_account_activity"();
CREATE OR REPLACE FUNCTION "public"."insert_account_activity"()
RETURNS "pg_catalog"."trigger" AS $BODY$
BEGIN
INSERT INTO account_activity(account_id) VALUES (NEW.id);
RETURN NEW;
END$BODY$
LANGUAGE plpgsql VOLATILE
COST 100;
-- ----------------------------
-- Function structure for insert_player_stats
-- ----------------------------
DROP FUNCTION IF EXISTS "public"."insert_player_stats"();
CREATE OR REPLACE FUNCTION "public"."insert_player_stats"()
RETURNS "pg_catalog"."trigger" AS $BODY$
BEGIN
INSERT INTO player_stats(player_id) VALUES (NEW.id);
RETURN NEW;
END$BODY$
LANGUAGE plpgsql VOLATILE
COST 100;
-- ----------------------------
-- Alter sequences owned by
-- ----------------------------
SELECT setval('"public"."account_id_seq"', 692, true);
-- ----------------------------
-- Alter sequences owned by
-- ----------------------------
SELECT setval('"public"."accounts_id_seq"', 10, true);
-- ----------------------------
-- Alter sequences owned by
-- ----------------------------
SELECT setval('"public"."ban_seq"', 10, false);
-- ----------------------------
-- Alter sequences owned by
-- ----------------------------
SELECT setval('"public"."channels_id_seq"', 10, false);
-- ----------------------------
-- Alter sequences owned by
-- ----------------------------
SELECT setval('"public"."check_event_seq"', 10, true);
-- ----------------------------
-- Alter sequences owned by
-- ----------------------------
SELECT setval('"public"."clan_seq"', 130, true);
-- ----------------------------
-- Alter sequences owned by
-- ----------------------------
SELECT setval('"public"."clans_id_seq"', 10, true);
-- ----------------------------
-- Alter sequences owned by
-- ----------------------------
SELECT setval('"public"."contas_seq"', 10, true);
-- ----------------------------
-- Alter sequences owned by
-- ----------------------------
SELECT setval('"public"."gameservers_id_seq"', 10, false);
-- ----------------------------
-- Alter sequences owned by
-- ----------------------------
SELECT setval('"public"."gift_id_seq"', 10, true);
-- ----------------------------
-- Alter sequences owned by
-- ----------------------------
SELECT setval('"public"."ipsystem_id_seq"', 10, false);
-- ----------------------------
-- Alter sequences owned by
-- ----------------------------
SELECT setval('"public"."ipsystem_seq"', 10, false);
-- ----------------------------
-- Alter sequences owned by
-- ----------------------------
SELECT setval('"public"."items_id_seq"', 28173, true);
-- ----------------------------
-- Alter sequences owned by
-- ----------------------------
SELECT setval('"public"."jogador_amigo_seq"', 10, true);
-- ----------------------------
-- Alter sequences owned by
-- ----------------------------
SELECT setval('"public"."jogador_inventario_seq"', 10, true);
-- ----------------------------
-- Alter sequences owned by
-- ----------------------------
SELECT setval('"public"."jogador_mensagem_seq"', 10, true);
-- ----------------------------
-- Alter sequences owned by
-- ----------------------------
SELECT setval('"public"."loja_seq"', 10, true);
-- ----------------------------
-- Alter sequences owned by
-- ----------------------------
SELECT setval('"public"."message_id_seq"', 986, true);
-- ----------------------------
-- Alter sequences owned by
-- ----------------------------
SELECT setval('"public"."player_eqipment_id_seq"', 10, true);
-- ----------------------------
-- Alter sequences owned by
-- ----------------------------
SELECT setval('"public"."player_friends_player_account_id_seq"', 10, false);
-- ----------------------------
-- Alter sequences owned by
-- ----------------------------
SELECT setval('"public"."player_mails_player_account_id_seq"', 5, false);
-- ----------------------------
-- Alter sequences owned by
-- ----------------------------
SELECT setval('"public"."players_id_seq"', 10, true);
-- ----------------------------
-- Alter sequences owned by
-- ----------------------------
SELECT setval('"public"."storage_seq"', 10, true);
-- ----------------------------
-- Alter sequences owned by
-- ----------------------------
SELECT setval('"public"."templates_id_seq"', 10, false);
-- ----------------------------
-- Primary Key structure for table accounts_rank
-- ----------------------------
ALTER TABLE "public"."accounts_rank" ADD CONSTRAINT "accounts_rank_pkey" PRIMARY KEY ("player_id") WITH (fillfactor=23);
-- ----------------------------
-- Primary Key structure for table clan_data
-- ----------------------------
ALTER TABLE "public"."clan_data" ADD CONSTRAINT "clan_data_pkey" PRIMARY KEY ("clan_id");
-- ----------------------------
-- Primary Key structure for table configs
-- ----------------------------
ALTER TABLE "public"."configs" ADD CONSTRAINT "configs_pkey" PRIMARY KEY ("owner_id");
-- ----------------------------
-- Primary Key structure for table player_configs
-- ----------------------------
ALTER TABLE "public"."player_configs" ADD CONSTRAINT "player_configs_pkey" PRIMARY KEY ("owner_id");
-- ----------------------------
-- Primary Key structure for table titles
-- ----------------------------