-
Notifications
You must be signed in to change notification settings - Fork 0
/
db.sqlc
4759 lines (3253 loc) · 118 KB
/
db.sqlc
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: plpgsql; Type: EXTENSION; Schema: -; Owner:
--
CREATE EXTENSION IF NOT EXISTS plpgsql WITH SCHEMA pg_catalog;
--
-- Name: EXTENSION plpgsql; Type: COMMENT; Schema: -; Owner:
--
COMMENT ON EXTENSION plpgsql IS 'PL/pgSQL procedural language';
SET search_path = public, pg_catalog;
SET default_tablespace = '';
SET default_with_oids = false;
--
-- Name: attachments; Type: TABLE; Schema: public; Owner: redmine; Tablespace:
--
CREATE TABLE attachments (
id integer NOT NULL,
container_id integer,
container_type character varying(30) DEFAULT NULL::character varying,
filename character varying(255) DEFAULT ''::character varying NOT NULL,
disk_filename character varying(255) DEFAULT ''::character varying NOT NULL,
filesize integer DEFAULT 0 NOT NULL,
content_type character varying(255) DEFAULT ''::character varying,
digest character varying(40) DEFAULT ''::character varying NOT NULL,
downloads integer DEFAULT 0 NOT NULL,
author_id integer DEFAULT 0 NOT NULL,
created_on timestamp without time zone,
description character varying(255),
disk_directory character varying(255)
);
ALTER TABLE public.attachments OWNER TO redmine;
--
-- Name: attachments_id_seq; Type: SEQUENCE; Schema: public; Owner: redmine
--
CREATE SEQUENCE attachments_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.attachments_id_seq OWNER TO redmine;
--
-- Name: attachments_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: redmine
--
ALTER SEQUENCE attachments_id_seq OWNED BY attachments.id;
--
-- Name: auth_sources; Type: TABLE; Schema: public; Owner: redmine; Tablespace:
--
CREATE TABLE auth_sources (
id integer NOT NULL,
type character varying(30) DEFAULT ''::character varying NOT NULL,
name character varying(60) DEFAULT ''::character varying NOT NULL,
host character varying(60),
port integer,
account character varying(255),
account_password character varying(255) DEFAULT ''::character varying,
base_dn character varying(255),
attr_login character varying(30),
attr_firstname character varying(30),
attr_lastname character varying(30),
attr_mail character varying(30),
onthefly_register boolean DEFAULT false NOT NULL,
tls boolean DEFAULT false NOT NULL,
filter character varying(255),
timeout integer
);
ALTER TABLE public.auth_sources OWNER TO redmine;
--
-- Name: auth_sources_id_seq; Type: SEQUENCE; Schema: public; Owner: redmine
--
CREATE SEQUENCE auth_sources_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.auth_sources_id_seq OWNER TO redmine;
--
-- Name: auth_sources_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: redmine
--
ALTER SEQUENCE auth_sources_id_seq OWNED BY auth_sources.id;
--
-- Name: boards; Type: TABLE; Schema: public; Owner: redmine; Tablespace:
--
CREATE TABLE boards (
id integer NOT NULL,
project_id integer NOT NULL,
name character varying(255) DEFAULT ''::character varying NOT NULL,
description character varying(255),
"position" integer DEFAULT 1,
topics_count integer DEFAULT 0 NOT NULL,
messages_count integer DEFAULT 0 NOT NULL,
last_message_id integer,
parent_id integer
);
ALTER TABLE public.boards OWNER TO redmine;
--
-- Name: boards_id_seq; Type: SEQUENCE; Schema: public; Owner: redmine
--
CREATE SEQUENCE boards_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.boards_id_seq OWNER TO redmine;
--
-- Name: boards_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: redmine
--
ALTER SEQUENCE boards_id_seq OWNED BY boards.id;
--
-- Name: burndown_days; Type: TABLE; Schema: public; Owner: redmine; Tablespace:
--
CREATE TABLE burndown_days (
id integer NOT NULL,
points_committed integer DEFAULT 0 NOT NULL,
points_accepted integer DEFAULT 0 NOT NULL,
points_resolved integer DEFAULT 0 NOT NULL,
remaining_hours double precision DEFAULT 0 NOT NULL,
version_id integer NOT NULL,
created_at timestamp without time zone NOT NULL,
updated_at timestamp without time zone NOT NULL
);
ALTER TABLE public.burndown_days OWNER TO redmine;
--
-- Name: burndown_days_id_seq; Type: SEQUENCE; Schema: public; Owner: redmine
--
CREATE SEQUENCE burndown_days_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.burndown_days_id_seq OWNER TO redmine;
--
-- Name: burndown_days_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: redmine
--
ALTER SEQUENCE burndown_days_id_seq OWNED BY burndown_days.id;
--
-- Name: changes; Type: TABLE; Schema: public; Owner: redmine; Tablespace:
--
CREATE TABLE changes (
id integer NOT NULL,
changeset_id integer NOT NULL,
action character varying(1) DEFAULT ''::character varying NOT NULL,
path text NOT NULL,
from_path text,
from_revision character varying(255),
revision character varying(255),
branch character varying(255)
);
ALTER TABLE public.changes OWNER TO redmine;
--
-- Name: changes_id_seq; Type: SEQUENCE; Schema: public; Owner: redmine
--
CREATE SEQUENCE changes_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.changes_id_seq OWNER TO redmine;
--
-- Name: changes_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: redmine
--
ALTER SEQUENCE changes_id_seq OWNED BY changes.id;
--
-- Name: changeset_parents; Type: TABLE; Schema: public; Owner: redmine; Tablespace:
--
CREATE TABLE changeset_parents (
changeset_id integer NOT NULL,
parent_id integer NOT NULL
);
ALTER TABLE public.changeset_parents OWNER TO redmine;
--
-- Name: changesets; Type: TABLE; Schema: public; Owner: redmine; Tablespace:
--
CREATE TABLE changesets (
id integer NOT NULL,
repository_id integer NOT NULL,
revision character varying(255) NOT NULL,
committer character varying(255),
committed_on timestamp without time zone NOT NULL,
comments text,
commit_date date,
scmid character varying(255),
user_id integer
);
ALTER TABLE public.changesets OWNER TO redmine;
--
-- Name: changesets_id_seq; Type: SEQUENCE; Schema: public; Owner: redmine
--
CREATE SEQUENCE changesets_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.changesets_id_seq OWNER TO redmine;
--
-- Name: changesets_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: redmine
--
ALTER SEQUENCE changesets_id_seq OWNED BY changesets.id;
--
-- Name: changesets_issues; Type: TABLE; Schema: public; Owner: redmine; Tablespace:
--
CREATE TABLE changesets_issues (
changeset_id integer NOT NULL,
issue_id integer NOT NULL
);
ALTER TABLE public.changesets_issues OWNER TO redmine;
--
-- Name: comments; Type: TABLE; Schema: public; Owner: redmine; Tablespace:
--
CREATE TABLE comments (
id integer NOT NULL,
commented_type character varying(30) DEFAULT ''::character varying NOT NULL,
commented_id integer DEFAULT 0 NOT NULL,
author_id integer DEFAULT 0 NOT NULL,
comments text,
created_on timestamp without time zone NOT NULL,
updated_on timestamp without time zone NOT NULL
);
ALTER TABLE public.comments OWNER TO redmine;
--
-- Name: comments_id_seq; Type: SEQUENCE; Schema: public; Owner: redmine
--
CREATE SEQUENCE comments_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.comments_id_seq OWNER TO redmine;
--
-- Name: comments_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: redmine
--
ALTER SEQUENCE comments_id_seq OWNED BY comments.id;
--
-- Name: custom_fields; Type: TABLE; Schema: public; Owner: redmine; Tablespace:
--
CREATE TABLE custom_fields (
id integer NOT NULL,
type character varying(30) DEFAULT ''::character varying NOT NULL,
name character varying(30) DEFAULT ''::character varying NOT NULL,
field_format character varying(30) DEFAULT ''::character varying NOT NULL,
possible_values text,
regexp character varying(255) DEFAULT ''::character varying,
min_length integer DEFAULT 0 NOT NULL,
max_length integer DEFAULT 0 NOT NULL,
is_required boolean DEFAULT false NOT NULL,
is_for_all boolean DEFAULT false NOT NULL,
is_filter boolean DEFAULT false NOT NULL,
"position" integer DEFAULT 1,
searchable boolean DEFAULT false,
default_value text,
editable boolean DEFAULT true,
visible boolean DEFAULT true NOT NULL,
multiple boolean DEFAULT false
);
ALTER TABLE public.custom_fields OWNER TO redmine;
--
-- Name: custom_fields_id_seq; Type: SEQUENCE; Schema: public; Owner: redmine
--
CREATE SEQUENCE custom_fields_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.custom_fields_id_seq OWNER TO redmine;
--
-- Name: custom_fields_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: redmine
--
ALTER SEQUENCE custom_fields_id_seq OWNED BY custom_fields.id;
--
-- Name: custom_fields_projects; Type: TABLE; Schema: public; Owner: redmine; Tablespace:
--
CREATE TABLE custom_fields_projects (
custom_field_id integer DEFAULT 0 NOT NULL,
project_id integer DEFAULT 0 NOT NULL
);
ALTER TABLE public.custom_fields_projects OWNER TO redmine;
--
-- Name: custom_fields_trackers; Type: TABLE; Schema: public; Owner: redmine; Tablespace:
--
CREATE TABLE custom_fields_trackers (
custom_field_id integer DEFAULT 0 NOT NULL,
tracker_id integer DEFAULT 0 NOT NULL
);
ALTER TABLE public.custom_fields_trackers OWNER TO redmine;
--
-- Name: custom_values; Type: TABLE; Schema: public; Owner: redmine; Tablespace:
--
CREATE TABLE custom_values (
id integer NOT NULL,
customized_type character varying(30) DEFAULT ''::character varying NOT NULL,
customized_id integer DEFAULT 0 NOT NULL,
custom_field_id integer DEFAULT 0 NOT NULL,
value text
);
ALTER TABLE public.custom_values OWNER TO redmine;
--
-- Name: custom_values_id_seq; Type: SEQUENCE; Schema: public; Owner: redmine
--
CREATE SEQUENCE custom_values_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.custom_values_id_seq OWNER TO redmine;
--
-- Name: custom_values_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: redmine
--
ALTER SEQUENCE custom_values_id_seq OWNED BY custom_values.id;
--
-- Name: documents; Type: TABLE; Schema: public; Owner: redmine; Tablespace:
--
CREATE TABLE documents (
id integer NOT NULL,
project_id integer DEFAULT 0 NOT NULL,
category_id integer DEFAULT 0 NOT NULL,
title character varying(60) DEFAULT ''::character varying NOT NULL,
description text,
created_on timestamp without time zone
);
ALTER TABLE public.documents OWNER TO redmine;
--
-- Name: documents_id_seq; Type: SEQUENCE; Schema: public; Owner: redmine
--
CREATE SEQUENCE documents_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.documents_id_seq OWNER TO redmine;
--
-- Name: documents_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: redmine
--
ALTER SEQUENCE documents_id_seq OWNED BY documents.id;
--
-- Name: enabled_modules; Type: TABLE; Schema: public; Owner: redmine; Tablespace:
--
CREATE TABLE enabled_modules (
id integer NOT NULL,
project_id integer,
name character varying(255) NOT NULL
);
ALTER TABLE public.enabled_modules OWNER TO redmine;
--
-- Name: enabled_modules_id_seq; Type: SEQUENCE; Schema: public; Owner: redmine
--
CREATE SEQUENCE enabled_modules_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.enabled_modules_id_seq OWNER TO redmine;
--
-- Name: enabled_modules_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: redmine
--
ALTER SEQUENCE enabled_modules_id_seq OWNED BY enabled_modules.id;
--
-- Name: enumerations; Type: TABLE; Schema: public; Owner: redmine; Tablespace:
--
CREATE TABLE enumerations (
id integer NOT NULL,
name character varying(30) DEFAULT ''::character varying NOT NULL,
"position" integer DEFAULT 1,
is_default boolean DEFAULT false NOT NULL,
type character varying(255),
active boolean DEFAULT true NOT NULL,
project_id integer,
parent_id integer,
position_name character varying(30)
);
ALTER TABLE public.enumerations OWNER TO redmine;
--
-- Name: enumerations_id_seq; Type: SEQUENCE; Schema: public; Owner: redmine
--
CREATE SEQUENCE enumerations_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.enumerations_id_seq OWNER TO redmine;
--
-- Name: enumerations_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: redmine
--
ALTER SEQUENCE enumerations_id_seq OWNED BY enumerations.id;
--
-- Name: groups_users; Type: TABLE; Schema: public; Owner: redmine; Tablespace:
--
CREATE TABLE groups_users (
group_id integer NOT NULL,
user_id integer NOT NULL
);
ALTER TABLE public.groups_users OWNER TO redmine;
--
-- Name: issue_categories; Type: TABLE; Schema: public; Owner: redmine; Tablespace:
--
CREATE TABLE issue_categories (
id integer NOT NULL,
project_id integer DEFAULT 0 NOT NULL,
name character varying(30) DEFAULT ''::character varying NOT NULL,
assigned_to_id integer
);
ALTER TABLE public.issue_categories OWNER TO redmine;
--
-- Name: issue_categories_id_seq; Type: SEQUENCE; Schema: public; Owner: redmine
--
CREATE SEQUENCE issue_categories_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.issue_categories_id_seq OWNER TO redmine;
--
-- Name: issue_categories_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: redmine
--
ALTER SEQUENCE issue_categories_id_seq OWNED BY issue_categories.id;
--
-- Name: issue_relations; Type: TABLE; Schema: public; Owner: redmine; Tablespace:
--
CREATE TABLE issue_relations (
id integer NOT NULL,
issue_from_id integer NOT NULL,
issue_to_id integer NOT NULL,
relation_type character varying(255) DEFAULT ''::character varying NOT NULL,
delay integer
);
ALTER TABLE public.issue_relations OWNER TO redmine;
--
-- Name: issue_relations_id_seq; Type: SEQUENCE; Schema: public; Owner: redmine
--
CREATE SEQUENCE issue_relations_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.issue_relations_id_seq OWNER TO redmine;
--
-- Name: issue_relations_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: redmine
--
ALTER SEQUENCE issue_relations_id_seq OWNED BY issue_relations.id;
--
-- Name: issue_statuses; Type: TABLE; Schema: public; Owner: redmine; Tablespace:
--
CREATE TABLE issue_statuses (
id integer NOT NULL,
name character varying(30) DEFAULT ''::character varying NOT NULL,
is_closed boolean DEFAULT false NOT NULL,
is_default boolean DEFAULT false NOT NULL,
"position" integer DEFAULT 1,
default_done_ratio integer
);
ALTER TABLE public.issue_statuses OWNER TO redmine;
--
-- Name: issue_statuses_id_seq; Type: SEQUENCE; Schema: public; Owner: redmine
--
CREATE SEQUENCE issue_statuses_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.issue_statuses_id_seq OWNER TO redmine;
--
-- Name: issue_statuses_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: redmine
--
ALTER SEQUENCE issue_statuses_id_seq OWNED BY issue_statuses.id;
--
-- Name: issues; Type: TABLE; Schema: public; Owner: redmine; Tablespace:
--
CREATE TABLE issues (
id integer NOT NULL,
tracker_id integer NOT NULL,
project_id integer NOT NULL,
subject character varying(255) DEFAULT ''::character varying NOT NULL,
description text,
due_date date,
category_id integer,
status_id integer NOT NULL,
assigned_to_id integer,
priority_id integer NOT NULL,
fixed_version_id integer,
author_id integer NOT NULL,
lock_version integer DEFAULT 0 NOT NULL,
created_on timestamp without time zone,
updated_on timestamp without time zone,
start_date date,
done_ratio integer DEFAULT 0 NOT NULL,
estimated_hours double precision,
parent_id integer,
root_id integer,
lft integer,
rgt integer,
is_private boolean DEFAULT false NOT NULL,
closed_on timestamp without time zone,
"position" integer NOT NULL,
remaining_hours double precision,
release_id integer,
story_points double precision,
release_relationship character varying(255) DEFAULT 'auto'::character varying NOT NULL
);
ALTER TABLE public.issues OWNER TO redmine;
--
-- Name: issues_id_seq; Type: SEQUENCE; Schema: public; Owner: redmine
--
CREATE SEQUENCE issues_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.issues_id_seq OWNER TO redmine;
--
-- Name: issues_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: redmine
--
ALTER SEQUENCE issues_id_seq OWNED BY issues.id;
--
-- Name: journal_details; Type: TABLE; Schema: public; Owner: redmine; Tablespace:
--
CREATE TABLE journal_details (
id integer NOT NULL,
journal_id integer DEFAULT 0 NOT NULL,
property character varying(30) DEFAULT ''::character varying NOT NULL,
prop_key character varying(30) DEFAULT ''::character varying NOT NULL,
old_value text,
value text
);
ALTER TABLE public.journal_details OWNER TO redmine;
--
-- Name: journal_details_id_seq; Type: SEQUENCE; Schema: public; Owner: redmine
--
CREATE SEQUENCE journal_details_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.journal_details_id_seq OWNER TO redmine;
--
-- Name: journal_details_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: redmine
--
ALTER SEQUENCE journal_details_id_seq OWNED BY journal_details.id;
--
-- Name: journals; Type: TABLE; Schema: public; Owner: redmine; Tablespace:
--
CREATE TABLE journals (
id integer NOT NULL,
journalized_id integer DEFAULT 0 NOT NULL,
journalized_type character varying(30) DEFAULT ''::character varying NOT NULL,
user_id integer DEFAULT 0 NOT NULL,
notes text,
created_on timestamp without time zone NOT NULL,
private_notes boolean DEFAULT false NOT NULL
);
ALTER TABLE public.journals OWNER TO redmine;
--
-- Name: journals_id_seq; Type: SEQUENCE; Schema: public; Owner: redmine
--
CREATE SEQUENCE journals_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.journals_id_seq OWNER TO redmine;
--
-- Name: journals_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: redmine
--
ALTER SEQUENCE journals_id_seq OWNED BY journals.id;
--
-- Name: member_roles; Type: TABLE; Schema: public; Owner: redmine; Tablespace:
--
CREATE TABLE member_roles (
id integer NOT NULL,
member_id integer NOT NULL,
role_id integer NOT NULL,
inherited_from integer
);
ALTER TABLE public.member_roles OWNER TO redmine;
--
-- Name: member_roles_id_seq; Type: SEQUENCE; Schema: public; Owner: redmine
--
CREATE SEQUENCE member_roles_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.member_roles_id_seq OWNER TO redmine;
--
-- Name: member_roles_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: redmine
--
ALTER SEQUENCE member_roles_id_seq OWNED BY member_roles.id;
--
-- Name: members; Type: TABLE; Schema: public; Owner: redmine; Tablespace:
--
CREATE TABLE members (
id integer NOT NULL,
user_id integer DEFAULT 0 NOT NULL,
project_id integer DEFAULT 0 NOT NULL,
created_on timestamp without time zone,
mail_notification boolean DEFAULT false NOT NULL
);
ALTER TABLE public.members OWNER TO redmine;
--
-- Name: members_id_seq; Type: SEQUENCE; Schema: public; Owner: redmine
--
CREATE SEQUENCE members_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.members_id_seq OWNER TO redmine;
--
-- Name: members_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: redmine
--
ALTER SEQUENCE members_id_seq OWNED BY members.id;
--
-- Name: messages; Type: TABLE; Schema: public; Owner: redmine; Tablespace:
--
CREATE TABLE messages (
id integer NOT NULL,
board_id integer NOT NULL,
parent_id integer,
subject character varying(255) DEFAULT ''::character varying NOT NULL,
content text,
author_id integer,
replies_count integer DEFAULT 0 NOT NULL,
last_reply_id integer,
created_on timestamp without time zone NOT NULL,
updated_on timestamp without time zone NOT NULL,
locked boolean DEFAULT false,
sticky integer DEFAULT 0
);
ALTER TABLE public.messages OWNER TO redmine;
--
-- Name: messages_id_seq; Type: SEQUENCE; Schema: public; Owner: redmine
--
CREATE SEQUENCE messages_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.messages_id_seq OWNER TO redmine;
--
-- Name: messages_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: redmine
--
ALTER SEQUENCE messages_id_seq OWNED BY messages.id;
--
-- Name: news; Type: TABLE; Schema: public; Owner: redmine; Tablespace:
--
CREATE TABLE news (
id integer NOT NULL,
project_id integer,
title character varying(60) DEFAULT ''::character varying NOT NULL,
summary character varying(255) DEFAULT ''::character varying,
description text,
author_id integer DEFAULT 0 NOT NULL,
created_on timestamp without time zone,
comments_count integer DEFAULT 0 NOT NULL
);
ALTER TABLE public.news OWNER TO redmine;
--
-- Name: news_id_seq; Type: SEQUENCE; Schema: public; Owner: redmine
--
CREATE SEQUENCE news_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.news_id_seq OWNER TO redmine;
--
-- Name: news_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: redmine
--
ALTER SEQUENCE news_id_seq OWNED BY news.id;
--
-- Name: open_id_authentication_associations; Type: TABLE; Schema: public; Owner: redmine; Tablespace:
--
CREATE TABLE open_id_authentication_associations (
id integer NOT NULL,
issued integer,
lifetime integer,
handle character varying(255),
assoc_type character varying(255),
server_url bytea,
secret bytea
);
ALTER TABLE public.open_id_authentication_associations OWNER TO redmine;
--
-- Name: open_id_authentication_associations_id_seq; Type: SEQUENCE; Schema: public; Owner: redmine
--
CREATE SEQUENCE open_id_authentication_associations_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.open_id_authentication_associations_id_seq OWNER TO redmine;
--