-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdump.sql
2027 lines (1284 loc) · 48.4 KB
/
dump.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
--
-- PostgreSQL database dump
--
SET statement_timeout = 0;
SET client_encoding = 'UTF8';
SET standard_conforming_strings = on;
SET check_function_bodies = false;
SET client_min_messages = warning;
--
-- Name: general; Type: SCHEMA; Schema: -; Owner: postgres
--
CREATE SCHEMA general;
ALTER SCHEMA general OWNER TO postgres;
--
-- Name: SCHEMA general; Type: COMMENT; Schema: -; Owner: postgres
--
COMMENT ON SCHEMA general IS 'General data';
--
-- Name: shop; Type: SCHEMA; Schema: -; Owner: postgres
--
CREATE SCHEMA shop;
ALTER SCHEMA shop OWNER TO postgres;
--
-- Name: plpgsql; Type: EXTENSION; Schema: -; Owner:
--
CREATE EXTENSION IF NOT EXISTS plpgsql WITH SCHEMA pg_catalog;
--
-- Name: EXTENSION plpgsql; Type: COMMENT; Schema: -; Owner:
--
COMMENT ON EXTENSION plpgsql IS 'PL/pgSQL procedural language';
SET search_path = general, pg_catalog;
SET default_tablespace = '';
SET default_with_oids = false;
--
-- Name: articles; Type: TABLE; Schema: general; Owner: postgres; Tablespace:
--
CREATE TABLE articles (
id integer NOT NULL,
token character varying,
status numeric(1,0),
groupid numeric DEFAULT 0,
info character varying,
created numeric DEFAULT 0
);
ALTER TABLE general.articles OWNER TO postgres;
--
-- Name: COLUMN articles.status; Type: COMMENT; Schema: general; Owner: postgres
--
COMMENT ON COLUMN articles.status IS '0: normal, 1: used by some routine, 2: blocked';
--
-- Name: articles_id_seq; Type: SEQUENCE; Schema: general; Owner: postgres
--
CREATE SEQUENCE articles_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE general.articles_id_seq OWNER TO postgres;
--
-- Name: articles_id_seq; Type: SEQUENCE OWNED BY; Schema: general; Owner: postgres
--
ALTER SEQUENCE articles_id_seq OWNED BY articles.id;
--
-- Name: articles_id_seq; Type: SEQUENCE SET; Schema: general; Owner: postgres
--
SELECT pg_catalog.setval('articles_id_seq', 31, true);
--
-- Name: articles_lang; Type: TABLE; Schema: general; Owner: postgres; Tablespace:
--
CREATE TABLE articles_lang (
id integer NOT NULL,
article_id numeric DEFAULT 0,
language numeric DEFAULT 0,
text text,
user_id numeric DEFAULT 0,
created numeric DEFAULT 0,
intro text,
title character varying
);
ALTER TABLE general.articles_lang OWNER TO postgres;
--
-- Name: articles_lang_id_seq; Type: SEQUENCE; Schema: general; Owner: postgres
--
CREATE SEQUENCE articles_lang_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE general.articles_lang_id_seq OWNER TO postgres;
--
-- Name: articles_lang_id_seq; Type: SEQUENCE OWNED BY; Schema: general; Owner: postgres
--
ALTER SEQUENCE articles_lang_id_seq OWNED BY articles_lang.id;
--
-- Name: articles_lang_id_seq; Type: SEQUENCE SET; Schema: general; Owner: postgres
--
SELECT pg_catalog.setval('articles_lang_id_seq', 53, true);
--
-- Name: emails; Type: TABLE; Schema: general; Owner: postgres; Tablespace:
--
CREATE TABLE emails (
id integer NOT NULL,
subject character varying(255),
systemmsg boolean DEFAULT false
);
ALTER TABLE general.emails OWNER TO postgres;
--
-- Name: TABLE emails; Type: COMMENT; Schema: general; Owner: postgres
--
COMMENT ON TABLE emails IS 'E-mails';
--
-- Name: COLUMN emails.id; Type: COMMENT; Schema: general; Owner: postgres
--
COMMENT ON COLUMN emails.id IS 'ID';
--
-- Name: COLUMN emails.subject; Type: COMMENT; Schema: general; Owner: postgres
--
COMMENT ON COLUMN emails.subject IS 'Subject';
--
-- Name: COLUMN emails.systemmsg; Type: COMMENT; Schema: general; Owner: postgres
--
COMMENT ON COLUMN emails.systemmsg IS 'Rendszerüzenet';
--
-- Name: emails_id_seq; Type: SEQUENCE; Schema: general; Owner: postgres
--
CREATE SEQUENCE emails_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE general.emails_id_seq OWNER TO postgres;
--
-- Name: emails_id_seq; Type: SEQUENCE OWNED BY; Schema: general; Owner: postgres
--
ALTER SEQUENCE emails_id_seq OWNED BY emails.id;
--
-- Name: emails_id_seq; Type: SEQUENCE SET; Schema: general; Owner: postgres
--
SELECT pg_catalog.setval('emails_id_seq', 1, true);
--
-- Name: emails_lang; Type: TABLE; Schema: general; Owner: postgres; Tablespace:
--
CREATE TABLE emails_lang (
id integer NOT NULL,
lang numeric(6,0),
link_id numeric(6,0),
subject character varying(255),
body text
);
ALTER TABLE general.emails_lang OWNER TO postgres;
--
-- Name: TABLE emails_lang; Type: COMMENT; Schema: general; Owner: postgres
--
COMMENT ON TABLE emails_lang IS 'E-mail localizations';
--
-- Name: COLUMN emails_lang.id; Type: COMMENT; Schema: general; Owner: postgres
--
COMMENT ON COLUMN emails_lang.id IS 'ID';
--
-- Name: COLUMN emails_lang.lang; Type: COMMENT; Schema: general; Owner: postgres
--
COMMENT ON COLUMN emails_lang.lang IS 'Language ID';
--
-- Name: COLUMN emails_lang.link_id; Type: COMMENT; Schema: general; Owner: postgres
--
COMMENT ON COLUMN emails_lang.link_id IS 'Link ID (general.emails)';
--
-- Name: COLUMN emails_lang.subject; Type: COMMENT; Schema: general; Owner: postgres
--
COMMENT ON COLUMN emails_lang.subject IS 'E-mail subject';
--
-- Name: COLUMN emails_lang.body; Type: COMMENT; Schema: general; Owner: postgres
--
COMMENT ON COLUMN emails_lang.body IS 'E-mail body';
--
-- Name: emails_lang_id_seq; Type: SEQUENCE; Schema: general; Owner: postgres
--
CREATE SEQUENCE emails_lang_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE general.emails_lang_id_seq OWNER TO postgres;
--
-- Name: emails_lang_id_seq; Type: SEQUENCE OWNED BY; Schema: general; Owner: postgres
--
ALTER SEQUENCE emails_lang_id_seq OWNED BY emails_lang.id;
--
-- Name: emails_lang_id_seq; Type: SEQUENCE SET; Schema: general; Owner: postgres
--
SELECT pg_catalog.setval('emails_lang_id_seq', 2, true);
--
-- Name: filestorage; Type: TABLE; Schema: general; Owner: postgres; Tablespace:
--
CREATE TABLE filestorage (
id integer NOT NULL,
filename character varying,
accessed numeric DEFAULT 0,
created numeric,
user_id numeric DEFAULT 0,
protected numeric DEFAULT 0,
mime character varying DEFAULT 0,
info text
);
ALTER TABLE general.filestorage OWNER TO postgres;
--
-- Name: COLUMN filestorage.filename; Type: COMMENT; Schema: general; Owner: postgres
--
COMMENT ON COLUMN filestorage.filename IS 'Original filename';
--
-- Name: COLUMN filestorage.accessed; Type: COMMENT; Schema: general; Owner: postgres
--
COMMENT ON COLUMN filestorage.accessed IS 'Access counter';
--
-- Name: COLUMN filestorage.created; Type: COMMENT; Schema: general; Owner: postgres
--
COMMENT ON COLUMN filestorage.created IS 'Creation timestamp';
--
-- Name: COLUMN filestorage.user_id; Type: COMMENT; Schema: general; Owner: postgres
--
COMMENT ON COLUMN filestorage.user_id IS 'Uploader';
--
-- Name: COLUMN filestorage.protected; Type: COMMENT; Schema: general; Owner: postgres
--
COMMENT ON COLUMN filestorage.protected IS '0 - no protection, 1 - registered users, 2 - admins only';
--
-- Name: COLUMN filestorage.mime; Type: COMMENT; Schema: general; Owner: postgres
--
COMMENT ON COLUMN filestorage.mime IS 'MIME file type';
--
-- Name: COLUMN filestorage.info; Type: COMMENT; Schema: general; Owner: postgres
--
COMMENT ON COLUMN filestorage.info IS 'Description';
--
-- Name: filestorage_id_seq; Type: SEQUENCE; Schema: general; Owner: postgres
--
CREATE SEQUENCE filestorage_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE general.filestorage_id_seq OWNER TO postgres;
--
-- Name: filestorage_id_seq; Type: SEQUENCE OWNED BY; Schema: general; Owner: postgres
--
ALTER SEQUENCE filestorage_id_seq OWNED BY filestorage.id;
--
-- Name: filestorage_id_seq; Type: SEQUENCE SET; Schema: general; Owner: postgres
--
SELECT pg_catalog.setval('filestorage_id_seq', 17, true);
--
-- Name: gallery; Type: TABLE; Schema: general; Owner: postgres; Tablespace:
--
CREATE TABLE gallery (
id integer NOT NULL,
user_id numeric(6,0),
created numeric(32,0),
info character varying
);
ALTER TABLE general.gallery OWNER TO postgres;
--
-- Name: TABLE gallery; Type: COMMENT; Schema: general; Owner: postgres
--
COMMENT ON TABLE gallery IS 'Image gallery';
--
-- Name: COLUMN gallery.id; Type: COMMENT; Schema: general; Owner: postgres
--
COMMENT ON COLUMN gallery.id IS 'ID';
--
-- Name: COLUMN gallery.user_id; Type: COMMENT; Schema: general; Owner: postgres
--
COMMENT ON COLUMN gallery.user_id IS 'Uploader user ID';
--
-- Name: COLUMN gallery.created; Type: COMMENT; Schema: general; Owner: postgres
--
COMMENT ON COLUMN gallery.created IS 'Creation timestamp';
--
-- Name: gallery_lang; Type: TABLE; Schema: general; Owner: postgres; Tablespace:
--
CREATE TABLE gallery_lang (
id integer NOT NULL,
imageid numeric DEFAULT 0,
caption character varying,
language numeric
);
ALTER TABLE general.gallery_lang OWNER TO postgres;
--
-- Name: gallery_lang_id_seq; Type: SEQUENCE; Schema: general; Owner: postgres
--
CREATE SEQUENCE gallery_lang_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE general.gallery_lang_id_seq OWNER TO postgres;
--
-- Name: gallery_lang_id_seq; Type: SEQUENCE OWNED BY; Schema: general; Owner: postgres
--
ALTER SEQUENCE gallery_lang_id_seq OWNED BY gallery_lang.id;
--
-- Name: gallery_lang_id_seq; Type: SEQUENCE SET; Schema: general; Owner: postgres
--
SELECT pg_catalog.setval('gallery_lang_id_seq', 58, true);
--
-- Name: images_id_seq; Type: SEQUENCE; Schema: general; Owner: postgres
--
CREATE SEQUENCE images_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE general.images_id_seq OWNER TO postgres;
--
-- Name: images_id_seq; Type: SEQUENCE OWNED BY; Schema: general; Owner: postgres
--
ALTER SEQUENCE images_id_seq OWNED BY gallery.id;
--
-- Name: images_id_seq; Type: SEQUENCE SET; Schema: general; Owner: postgres
--
SELECT pg_catalog.setval('images_id_seq', 196, true);
--
-- Name: massmailer_addresslist; Type: TABLE; Schema: general; Owner: postgres; Tablespace:
--
CREATE TABLE massmailer_addresslist (
addresslist text,
userid numeric,
title character varying,
public boolean DEFAULT true,
id integer NOT NULL
);
ALTER TABLE general.massmailer_addresslist OWNER TO postgres;
--
-- Name: massmailer_addresslist_id_seq; Type: SEQUENCE; Schema: general; Owner: postgres
--
CREATE SEQUENCE massmailer_addresslist_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE general.massmailer_addresslist_id_seq OWNER TO postgres;
--
-- Name: massmailer_addresslist_id_seq; Type: SEQUENCE OWNED BY; Schema: general; Owner: postgres
--
ALTER SEQUENCE massmailer_addresslist_id_seq OWNED BY massmailer_addresslist.id;
--
-- Name: massmailer_addresslist_id_seq; Type: SEQUENCE SET; Schema: general; Owner: postgres
--
SELECT pg_catalog.setval('massmailer_addresslist_id_seq', 9, true);
--
-- Name: messagefolders; Type: TABLE; Schema: general; Owner: postgres; Tablespace:
--
CREATE TABLE messagefolders (
id integer NOT NULL,
title character varying,
created numeric
);
ALTER TABLE general.messagefolders OWNER TO postgres;
--
-- Name: messagefolders_id_seq; Type: SEQUENCE; Schema: general; Owner: postgres
--
CREATE SEQUENCE messagefolders_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE general.messagefolders_id_seq OWNER TO postgres;
--
-- Name: messagefolders_id_seq; Type: SEQUENCE OWNED BY; Schema: general; Owner: postgres
--
ALTER SEQUENCE messagefolders_id_seq OWNED BY messagefolders.id;
--
-- Name: messagefolders_id_seq; Type: SEQUENCE SET; Schema: general; Owner: postgres
--
SELECT pg_catalog.setval('messagefolders_id_seq', 8, true);
--
-- Name: messages; Type: TABLE; Schema: general; Owner: postgres; Tablespace:
--
CREATE TABLE messages (
id integer NOT NULL,
email character varying,
name character varying,
date numeric,
folderid numeric DEFAULT 0,
text text,
language numeric,
unread boolean DEFAULT true,
ip character varying,
replied boolean DEFAULT false,
phone character varying,
company character varying
);
ALTER TABLE general.messages OWNER TO postgres;
--
-- Name: messages_autoreply; Type: TABLE; Schema: general; Owner: postgres; Tablespace:
--
CREATE TABLE messages_autoreply (
id integer NOT NULL,
language numeric,
subject character varying,
body text,
info character varying
);
ALTER TABLE general.messages_autoreply OWNER TO postgres;
--
-- Name: messages_autoreply_lang_id_seq; Type: SEQUENCE; Schema: general; Owner: postgres
--
CREATE SEQUENCE messages_autoreply_lang_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE general.messages_autoreply_lang_id_seq OWNER TO postgres;
--
-- Name: messages_autoreply_lang_id_seq; Type: SEQUENCE OWNED BY; Schema: general; Owner: postgres
--
ALTER SEQUENCE messages_autoreply_lang_id_seq OWNED BY messages_autoreply.id;
--
-- Name: messages_autoreply_lang_id_seq; Type: SEQUENCE SET; Schema: general; Owner: postgres
--
SELECT pg_catalog.setval('messages_autoreply_lang_id_seq', 23, true);
--
-- Name: messages_id_seq; Type: SEQUENCE; Schema: general; Owner: postgres
--
CREATE SEQUENCE messages_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE general.messages_id_seq OWNER TO postgres;
--
-- Name: messages_id_seq; Type: SEQUENCE OWNED BY; Schema: general; Owner: postgres
--
ALTER SEQUENCE messages_id_seq OWNED BY messages.id;
--
-- Name: messages_id_seq; Type: SEQUENCE SET; Schema: general; Owner: postgres
--
SELECT pg_catalog.setval('messages_id_seq', 28, true);
--
-- Name: text_groups; Type: TABLE; Schema: general; Owner: postgres; Tablespace:
--
CREATE TABLE text_groups (
id integer NOT NULL,
token character varying(255),
info character varying(255)
);
ALTER TABLE general.text_groups OWNER TO postgres;
--
-- Name: TABLE text_groups; Type: COMMENT; Schema: general; Owner: postgres
--
COMMENT ON TABLE text_groups IS 'Text groups';
--
-- Name: COLUMN text_groups.id; Type: COMMENT; Schema: general; Owner: postgres
--
COMMENT ON COLUMN text_groups.id IS 'ID';
--
-- Name: COLUMN text_groups.token; Type: COMMENT; Schema: general; Owner: postgres
--
COMMENT ON COLUMN text_groups.token IS 'Group token';
--
-- Name: COLUMN text_groups.info; Type: COMMENT; Schema: general; Owner: postgres
--
COMMENT ON COLUMN text_groups.info IS 'Information about this group';
--
-- Name: text_groups_id_seq; Type: SEQUENCE; Schema: general; Owner: postgres
--
CREATE SEQUENCE text_groups_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE general.text_groups_id_seq OWNER TO postgres;
--
-- Name: text_groups_id_seq; Type: SEQUENCE OWNED BY; Schema: general; Owner: postgres
--
ALTER SEQUENCE text_groups_id_seq OWNED BY text_groups.id;
--
-- Name: text_groups_id_seq; Type: SEQUENCE SET; Schema: general; Owner: postgres
--
SELECT pg_catalog.setval('text_groups_id_seq', 63, true);
--
-- Name: texts; Type: TABLE; Schema: general; Owner: postgres; Tablespace:
--
CREATE TABLE texts (
id integer NOT NULL,
token character varying(255),
groupid numeric(6,0)
);
ALTER TABLE general.texts OWNER TO postgres;
--
-- Name: TABLE texts; Type: COMMENT; Schema: general; Owner: postgres
--
COMMENT ON TABLE texts IS 'Texts';
--
-- Name: COLUMN texts.id; Type: COMMENT; Schema: general; Owner: postgres
--
COMMENT ON COLUMN texts.id IS 'ID';
--
-- Name: COLUMN texts.token; Type: COMMENT; Schema: general; Owner: postgres
--
COMMENT ON COLUMN texts.token IS 'Token';
--
-- Name: COLUMN texts.groupid; Type: COMMENT; Schema: general; Owner: postgres
--
COMMENT ON COLUMN texts.groupid IS 'Group ID';
--
-- Name: texts_id_seq; Type: SEQUENCE; Schema: general; Owner: postgres
--
CREATE SEQUENCE texts_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE general.texts_id_seq OWNER TO postgres;
--
-- Name: texts_id_seq; Type: SEQUENCE OWNED BY; Schema: general; Owner: postgres
--
ALTER SEQUENCE texts_id_seq OWNED BY texts.id;
--
-- Name: texts_id_seq; Type: SEQUENCE SET; Schema: general; Owner: postgres
--
SELECT pg_catalog.setval('texts_id_seq', 227, true);
--
-- Name: texts_lang; Type: TABLE; Schema: general; Owner: postgres; Tablespace:
--
CREATE TABLE texts_lang (
id integer NOT NULL,
text_id numeric(6,0),
language numeric(6,0),
user_id numeric(6,0),
text text
);
ALTER TABLE general.texts_lang OWNER TO postgres;
--
-- Name: TABLE texts_lang; Type: COMMENT; Schema: general; Owner: postgres
--
COMMENT ON TABLE texts_lang IS 'Text translations';
--
-- Name: COLUMN texts_lang.id; Type: COMMENT; Schema: general; Owner: postgres
--
COMMENT ON COLUMN texts_lang.id IS 'ID';
--
-- Name: COLUMN texts_lang.text_id; Type: COMMENT; Schema: general; Owner: postgres
--
COMMENT ON COLUMN texts_lang.text_id IS 'Text ID';
--
-- Name: COLUMN texts_lang.language; Type: COMMENT; Schema: general; Owner: postgres
--
COMMENT ON COLUMN texts_lang.language IS 'Language ID';
--
-- Name: COLUMN texts_lang.user_id; Type: COMMENT; Schema: general; Owner: postgres
--
COMMENT ON COLUMN texts_lang.user_id IS 'Translator ID';
--
-- Name: COLUMN texts_lang.text; Type: COMMENT; Schema: general; Owner: postgres
--
COMMENT ON COLUMN texts_lang.text IS 'Text (translated)';
--
-- Name: texts_lang_id_seq; Type: SEQUENCE; Schema: general; Owner: postgres
--
CREATE SEQUENCE texts_lang_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE general.texts_lang_id_seq OWNER TO postgres;
--
-- Name: texts_lang_id_seq; Type: SEQUENCE OWNED BY; Schema: general; Owner: postgres
--
ALTER SEQUENCE texts_lang_id_seq OWNED BY texts_lang.id;
--
-- Name: texts_lang_id_seq; Type: SEQUENCE SET; Schema: general; Owner: postgres
--
SELECT pg_catalog.setval('texts_lang_id_seq', 584, true);
--
-- Name: users; Type: TABLE; Schema: general; Owner: postgres; Tablespace:
--
CREATE TABLE users (
id integer NOT NULL,
username character(255),
password character(255),
name character varying(255),
city character varying(255),
zip character varying(255),
address character varying(255),
state character varying(255),
language numeric(6,0),
email character varying(255),
resetcode character varying(255),
active boolean DEFAULT false,
admin boolean DEFAULT false,
newsletter boolean DEFAULT false,
country character varying(6) DEFAULT 'HU'::character varying,
phone1 character varying(3),
phone2 character varying(3),
phone3 character varying(9),
nickname character varying(64),
company character varying,
company_country character varying(6),
company_state character varying,
company_zip character varying,
company_city character varying,
company_address character varying
);
ALTER TABLE general.users OWNER TO postgres;
--
-- Name: TABLE users; Type: COMMENT; Schema: general; Owner: postgres
--
COMMENT ON TABLE users IS 'User data';
--
-- Name: COLUMN users.id; Type: COMMENT; Schema: general; Owner: postgres
--
COMMENT ON COLUMN users.id IS 'ID';
--
-- Name: COLUMN users.username; Type: COMMENT; Schema: general; Owner: postgres
--
COMMENT ON COLUMN users.username IS 'Username';
--
-- Name: COLUMN users.password; Type: COMMENT; Schema: general; Owner: postgres
--
COMMENT ON COLUMN users.password IS 'Password';
--
-- Name: COLUMN users.name; Type: COMMENT; Schema: general; Owner: postgres
--
COMMENT ON COLUMN users.name IS 'Name';
--
-- Name: COLUMN users.city; Type: COMMENT; Schema: general; Owner: postgres
--
COMMENT ON COLUMN users.city IS 'City';
--
-- Name: COLUMN users.zip; Type: COMMENT; Schema: general; Owner: postgres
--
COMMENT ON COLUMN users.zip IS 'ZIP code';
--
-- Name: COLUMN users.address; Type: COMMENT; Schema: general; Owner: postgres
--