-
Notifications
You must be signed in to change notification settings - Fork 461
/
postgres.sql
2528 lines (2336 loc) · 85.4 KB
/
postgres.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
create table Address (
addressId varchar(100) not null primary key,
companyId varchar(100) not null,
userId varchar(100) not null,
userName varchar(100) null,
createDate timestamp null,
modifiedDate timestamp null,
className varchar(100) null,
classPK varchar(100) null,
description varchar(100) null,
street1 varchar(100) null,
street2 varchar(100) null,
city varchar(100) null,
state varchar(100) null,
zip varchar(100) null,
country varchar(100) null,
phone varchar(100) null,
fax varchar(100) null,
cell varchar(100) null,
priority integer
);
create table AdminConfig (
configId varchar(100) not null primary key,
companyId varchar(100) not null,
type_ varchar(100) null,
name varchar(100) null,
config text null
);
create table Company (
companyId varchar(100) not null primary key,
key_ text null,
portalURL varchar(100) not null,
homeURL varchar(100) not null,
mx varchar(100) not null,
name varchar(100) not null,
shortName varchar(100) not null,
type_ varchar(100) null,
size_ varchar(100) null,
street varchar(100) null,
city varchar(100) null,
state varchar(100) null,
zip varchar(100) null,
phone varchar(100) null,
fax varchar(100) null,
emailAddress varchar(100) null,
authType varchar(100) null,
autoLogin bool,
strangers bool
);
create table Counter (
name varchar(100) not null primary key,
currentId integer
);
create table Image (
imageId varchar(200) not null primary key,
text_ text not null
);
create table PasswordTracker (
passwordTrackerId varchar(100) not null primary key,
userId varchar(100) not null,
createDate timestamp not null,
password_ varchar(100) not null
);
create table PollsChoice (
choiceId varchar(100) not null,
questionId varchar(100) not null,
description text null,
primary key (choiceId, questionId)
);
create table PollsDisplay (
layoutId varchar(100) not null,
userId varchar(100) not null,
portletId varchar(100) not null,
questionId varchar(100) not null,
primary key (layoutId, userId, portletId)
);
create table PollsQuestion (
questionId varchar(100) not null primary key,
portletId varchar(100) not null,
groupId varchar(100) not null,
companyId varchar(100) not null,
userId varchar(100) not null,
userName varchar(100) null,
createDate timestamp null,
modifiedDate timestamp null,
title varchar(100) null,
description text null,
expirationDate timestamp null,
lastVoteDate timestamp null
);
create table PollsVote (
questionId varchar(100) not null,
userId varchar(100) not null,
choiceId varchar(100) not null,
voteDate timestamp null,
primary key (questionId, userId)
);
create table Portlet (
portletId varchar(100) not null,
groupId varchar(100) not null,
companyId varchar(100) not null,
defaultPreferences text null,
narrow bool,
roles text null,
active_ bool,
primary key (portletId, groupId, companyId)
);
create table PortletPreferences (
portletId varchar(100) not null,
userId varchar(100) not null,
layoutId varchar(100) not null,
preferences text null,
primary key (portletId, userId, layoutId)
);
create table Release_ (
releaseId varchar(100) not null primary key,
createDate timestamp null,
modifiedDate timestamp null,
buildNumber integer null,
buildDate timestamp null
);
create table User_ (
userId varchar(100) not null primary key,
companyId varchar(100) not null,
createDate timestamp null,
mod_date timestamp null,
password_ text null,
passwordEncrypted bool,
passwordExpirationDate timestamp null,
passwordReset bool,
firstName varchar(100) null,
middleName varchar(100) null,
lastName varchar(100) null,
nickName varchar(100) null,
male bool,
birthday timestamp null,
emailAddress varchar(100) null,
smsId varchar(100) null,
aimId varchar(100) null,
icqId varchar(100) null,
msnId varchar(100) null,
ymId varchar(100) null,
favoriteActivity varchar(100) null,
favoriteBibleVerse varchar(100) null,
favoriteFood varchar(100) null,
favoriteMovie varchar(100) null,
favoriteMusic varchar(100) null,
languageId varchar(100) null,
timeZoneId varchar(100) null,
skinId varchar(100) null,
dottedSkins bool,
roundedSkins bool,
greeting varchar(100) null,
resolution varchar(100) null,
refreshRate varchar(100) null,
layoutIds varchar(100) null,
comments text null,
loginDate timestamp null,
loginIP varchar(100) null,
lastLoginDate timestamp null,
lastLoginIP varchar(100) null,
failedLoginAttempts integer,
agreedToTermsOfUse bool,
active_ bool,
delete_in_progress BOOLEAN DEFAULT FALSE,
delete_date TIMESTAMP
);
create table UserTracker (
userTrackerId varchar(100) not null primary key,
companyId varchar(100) not null,
userId varchar(100) not null,
modifiedDate timestamp null,
remoteAddr varchar(100) null,
remoteHost varchar(100) null,
userAgent varchar(100) null
);
create table UserTrackerPath (
userTrackerPathId varchar(100) not null primary key,
userTrackerId varchar(100) not null,
path text not null,
pathDate timestamp not null
);
--
-- Global
--
insert into Counter values ('com.liferay.portal.model.Address', 10);
insert into Counter values ('com.liferay.portal.model.Role', 100);
insert into Counter values ('com.liferay.portal.model.User.liferay.com', 10);
insert into Counter values ('com.liferay.portlet.polls.model.PollsQuestion', 10);;
--
-- Liferay, LLC
--
insert into Company (companyId, portalURL, homeURL, mx, name, shortName, type_, size_, emailAddress, authType, autoLogin, strangers) values ('liferay.com', 'localhost', 'localhost', 'liferay.com', 'Liferay, LLC', 'Liferay', 'biz', '', 'test@liferay.com', 'emailAddress', 't', 't');
update Company set street = '1220 Brea Canyon Rd.', city = 'Diamond Bar', state = 'CA', zip = '91789' where companyId = 'liferay.com';
insert into PollsDisplay (layoutId, userId, portletId, questionId) values ('1.1', 'group.1', '59', '1');
insert into PollsChoice (choiceId, questionId, description) values ('a', '1', 'Chocolate');
insert into PollsChoice (choiceId, questionId, description) values ('b', '1', 'Strawberry');
insert into PollsChoice (choiceId, questionId, description) values ('c', '1', 'Vanilla');
insert into PollsQuestion (questionId, portletId, groupId, companyId, userId, userName, createDate, modifiedDate, title, description) values ('1', '25', '-1', 'liferay.com', 'liferay.com.1', 'John Wayne', current_timestamp, current_timestamp, 'What is your favorite ice cream flavor?', 'What is your favorite ice cream flavor?');
--
-- Default User
--
insert into User_ (userId, companyId, createDate, password_, passwordEncrypted, passwordReset, firstName, middleName, lastName, male, birthday, emailAddress, skinId, dottedSkins, roundedSkins, greeting, layoutIds, loginDate, failedLoginAttempts, agreedToTermsOfUse, active_) values ('liferay.com.default', 'default', current_timestamp, 'password', 'f', 'f', '', '', '', 't', '01/01/1970', 'default@liferay.com', '01', 'f', 'f', 'Welcome!', '', current_timestamp, 0, 'f', 't');
--
-- Test User
--
insert into User_ (userId, companyId, createDate, password_, passwordEncrypted, passwordReset, firstName, middleName, lastName, nickName, male, birthday, emailAddress, skinId, dottedSkins, roundedSkins, greeting, layoutIds, loginDate, failedLoginAttempts, agreedToTermsOfUse, active_) values ('liferay.com.1', 'liferay.com', current_timestamp, 'test', 'f', 'f', 'John', '', 'Wayne', 'Duke', 't', '01/01/1970', 'test@liferay.com', '01', 'f', 't', 'Welcome John Wayne!', '1,', current_timestamp, 0, 't', 't');
CREATE TABLE qrtz_job_details
(
JOB_NAME VARCHAR(80) NOT NULL,
JOB_GROUP VARCHAR(80) NOT NULL,
DESCRIPTION VARCHAR(120) NULL,
JOB_CLASS_NAME VARCHAR(128) NOT NULL,
IS_DURABLE BOOL NOT NULL,
IS_VOLATILE BOOL NOT NULL,
IS_STATEFUL BOOL NOT NULL,
REQUESTS_RECOVERY BOOL NOT NULL,
JOB_DATA BYTEA NULL,
PRIMARY KEY (JOB_NAME,JOB_GROUP)
);
CREATE TABLE qrtz_job_listeners
(
JOB_NAME VARCHAR(80) NOT NULL,
JOB_GROUP VARCHAR(80) NOT NULL,
JOB_LISTENER VARCHAR(80) NOT NULL,
PRIMARY KEY (JOB_NAME,JOB_GROUP,JOB_LISTENER),
FOREIGN KEY (JOB_NAME,JOB_GROUP)
REFERENCES QRTZ_JOB_DETAILS(JOB_NAME,JOB_GROUP)
);
CREATE TABLE qrtz_triggers
(
TRIGGER_NAME VARCHAR(80) NOT NULL,
TRIGGER_GROUP VARCHAR(80) NOT NULL,
JOB_NAME VARCHAR(80) NOT NULL,
JOB_GROUP VARCHAR(80) NOT NULL,
IS_VOLATILE BOOL NOT NULL,
DESCRIPTION VARCHAR(120) NULL,
NEXT_FIRE_TIME BIGINT NULL,
PREV_FIRE_TIME BIGINT NULL,
PRIORITY INTEGER NULL,
TRIGGER_STATE VARCHAR(16) NOT NULL,
TRIGGER_TYPE VARCHAR(8) NOT NULL,
START_TIME BIGINT NOT NULL,
END_TIME BIGINT NULL,
CALENDAR_NAME VARCHAR(80) NULL,
MISFIRE_INSTR SMALLINT NULL,
JOB_DATA BYTEA NULL,
PRIMARY KEY (TRIGGER_NAME,TRIGGER_GROUP),
FOREIGN KEY (JOB_NAME,JOB_GROUP)
REFERENCES QRTZ_JOB_DETAILS(JOB_NAME,JOB_GROUP)
);
CREATE TABLE qrtz_simple_triggers
(
TRIGGER_NAME VARCHAR(80) NOT NULL,
TRIGGER_GROUP VARCHAR(80) NOT NULL,
REPEAT_COUNT BIGINT NOT NULL,
REPEAT_INTERVAL BIGINT NOT NULL,
TIMES_TRIGGERED BIGINT NOT NULL,
PRIMARY KEY (TRIGGER_NAME,TRIGGER_GROUP),
FOREIGN KEY (TRIGGER_NAME,TRIGGER_GROUP)
REFERENCES QRTZ_TRIGGERS(TRIGGER_NAME,TRIGGER_GROUP)
);
CREATE TABLE qrtz_cron_triggers
(
TRIGGER_NAME VARCHAR(80) NOT NULL,
TRIGGER_GROUP VARCHAR(80) NOT NULL,
CRON_EXPRESSION VARCHAR(80) NOT NULL,
TIME_ZONE_ID VARCHAR(80),
PRIMARY KEY (TRIGGER_NAME,TRIGGER_GROUP),
FOREIGN KEY (TRIGGER_NAME,TRIGGER_GROUP)
REFERENCES QRTZ_TRIGGERS(TRIGGER_NAME,TRIGGER_GROUP)
);
CREATE TABLE qrtz_blob_triggers
(
TRIGGER_NAME VARCHAR(80) NOT NULL,
TRIGGER_GROUP VARCHAR(80) NOT NULL,
BLOB_DATA BYTEA NULL,
PRIMARY KEY (TRIGGER_NAME,TRIGGER_GROUP),
FOREIGN KEY (TRIGGER_NAME,TRIGGER_GROUP)
REFERENCES QRTZ_TRIGGERS(TRIGGER_NAME,TRIGGER_GROUP)
);
CREATE TABLE qrtz_trigger_listeners
(
TRIGGER_NAME VARCHAR(80) NOT NULL,
TRIGGER_GROUP VARCHAR(80) NOT NULL,
TRIGGER_LISTENER VARCHAR(80) NOT NULL,
PRIMARY KEY (TRIGGER_NAME,TRIGGER_GROUP,TRIGGER_LISTENER),
FOREIGN KEY (TRIGGER_NAME,TRIGGER_GROUP)
REFERENCES QRTZ_TRIGGERS(TRIGGER_NAME,TRIGGER_GROUP)
);
CREATE TABLE qrtz_calendars
(
CALENDAR_NAME VARCHAR(80) NOT NULL,
CALENDAR BYTEA NOT NULL,
PRIMARY KEY (CALENDAR_NAME)
);
CREATE TABLE qrtz_paused_trigger_grps
(
TRIGGER_GROUP VARCHAR(80) NOT NULL,
PRIMARY KEY (TRIGGER_GROUP)
);
CREATE TABLE qrtz_fired_triggers
(
ENTRY_ID VARCHAR(95) NOT NULL,
TRIGGER_NAME VARCHAR(80) NOT NULL,
TRIGGER_GROUP VARCHAR(80) NOT NULL,
IS_VOLATILE BOOL NOT NULL,
INSTANCE_NAME VARCHAR(80) NOT NULL,
FIRED_TIME BIGINT NOT NULL,
PRIORITY INTEGER NOT NULL,
STATE VARCHAR(16) NOT NULL,
JOB_NAME VARCHAR(80) NULL,
JOB_GROUP VARCHAR(80) NULL,
IS_STATEFUL BOOL NULL,
REQUESTS_RECOVERY BOOL NULL,
PRIMARY KEY (ENTRY_ID)
);
CREATE TABLE qrtz_scheduler_state
(
INSTANCE_NAME VARCHAR(80) NOT NULL,
LAST_CHECKIN_TIME BIGINT NOT NULL,
CHECKIN_INTERVAL BIGINT NOT NULL,
PRIMARY KEY (INSTANCE_NAME)
);
CREATE TABLE qrtz_locks
(
LOCK_NAME VARCHAR(40) NOT NULL,
PRIMARY KEY (LOCK_NAME)
);
INSERT INTO qrtz_locks values('TRIGGER_ACCESS');
INSERT INTO qrtz_locks values('JOB_ACCESS');
INSERT INTO qrtz_locks values('CALENDAR_ACCESS');
INSERT INTO qrtz_locks values('STATE_ACCESS');
INSERT INTO qrtz_locks values('MISFIRE_ACCESS');
CREATE TABLE QRTZ_EXCL_job_details
(
JOB_NAME VARCHAR(80) NOT NULL,
JOB_GROUP VARCHAR(80) NOT NULL,
DESCRIPTION VARCHAR(120) NULL,
JOB_CLASS_NAME VARCHAR(128) NOT NULL,
IS_DURABLE BOOL NOT NULL,
IS_VOLATILE BOOL NOT NULL,
IS_STATEFUL BOOL NOT NULL,
REQUESTS_RECOVERY BOOL NOT NULL,
JOB_DATA BYTEA NULL,
PRIMARY KEY (JOB_NAME,JOB_GROUP)
);
CREATE TABLE QRTZ_EXCL_job_listeners
(
JOB_NAME VARCHAR(80) NOT NULL,
JOB_GROUP VARCHAR(80) NOT NULL,
JOB_LISTENER VARCHAR(80) NOT NULL,
PRIMARY KEY (JOB_NAME,JOB_GROUP,JOB_LISTENER),
FOREIGN KEY (JOB_NAME,JOB_GROUP)
REFERENCES QRTZ_EXCL_JOB_DETAILS(JOB_NAME,JOB_GROUP)
);
CREATE TABLE QRTZ_EXCL_triggers
(
TRIGGER_NAME VARCHAR(80) NOT NULL,
TRIGGER_GROUP VARCHAR(80) NOT NULL,
JOB_NAME VARCHAR(80) NOT NULL,
JOB_GROUP VARCHAR(80) NOT NULL,
IS_VOLATILE BOOL NOT NULL,
DESCRIPTION VARCHAR(120) NULL,
NEXT_FIRE_TIME BIGINT NULL,
PREV_FIRE_TIME BIGINT NULL,
PRIORITY INTEGER NULL,
TRIGGER_STATE VARCHAR(16) NOT NULL,
TRIGGER_TYPE VARCHAR(8) NOT NULL,
START_TIME BIGINT NOT NULL,
END_TIME BIGINT NULL,
CALENDAR_NAME VARCHAR(80) NULL,
MISFIRE_INSTR SMALLINT NULL,
JOB_DATA BYTEA NULL,
PRIMARY KEY (TRIGGER_NAME,TRIGGER_GROUP),
FOREIGN KEY (JOB_NAME,JOB_GROUP)
REFERENCES QRTZ_EXCL_JOB_DETAILS(JOB_NAME,JOB_GROUP)
);
CREATE TABLE QRTZ_EXCL_simple_triggers
(
TRIGGER_NAME VARCHAR(80) NOT NULL,
TRIGGER_GROUP VARCHAR(80) NOT NULL,
REPEAT_COUNT BIGINT NOT NULL,
REPEAT_INTERVAL BIGINT NOT NULL,
TIMES_TRIGGERED BIGINT NOT NULL,
PRIMARY KEY (TRIGGER_NAME,TRIGGER_GROUP),
FOREIGN KEY (TRIGGER_NAME,TRIGGER_GROUP)
REFERENCES QRTZ_EXCL_TRIGGERS(TRIGGER_NAME,TRIGGER_GROUP)
);
CREATE TABLE QRTZ_EXCL_cron_triggers
(
TRIGGER_NAME VARCHAR(80) NOT NULL,
TRIGGER_GROUP VARCHAR(80) NOT NULL,
CRON_EXPRESSION VARCHAR(80) NOT NULL,
TIME_ZONE_ID VARCHAR(80),
PRIMARY KEY (TRIGGER_NAME,TRIGGER_GROUP),
FOREIGN KEY (TRIGGER_NAME,TRIGGER_GROUP)
REFERENCES QRTZ_EXCL_TRIGGERS(TRIGGER_NAME,TRIGGER_GROUP)
);
CREATE TABLE QRTZ_EXCL_blob_triggers
(
TRIGGER_NAME VARCHAR(80) NOT NULL,
TRIGGER_GROUP VARCHAR(80) NOT NULL,
BLOB_DATA BYTEA NULL,
PRIMARY KEY (TRIGGER_NAME,TRIGGER_GROUP),
FOREIGN KEY (TRIGGER_NAME,TRIGGER_GROUP)
REFERENCES QRTZ_EXCL_TRIGGERS(TRIGGER_NAME,TRIGGER_GROUP)
);
CREATE TABLE QRTZ_EXCL_trigger_listeners
(
TRIGGER_NAME VARCHAR(80) NOT NULL,
TRIGGER_GROUP VARCHAR(80) NOT NULL,
TRIGGER_LISTENER VARCHAR(80) NOT NULL,
PRIMARY KEY (TRIGGER_NAME,TRIGGER_GROUP,TRIGGER_LISTENER),
FOREIGN KEY (TRIGGER_NAME,TRIGGER_GROUP)
REFERENCES QRTZ_EXCL_TRIGGERS(TRIGGER_NAME,TRIGGER_GROUP)
);
CREATE TABLE QRTZ_EXCL_calendars
(
CALENDAR_NAME VARCHAR(80) NOT NULL,
CALENDAR BYTEA NOT NULL,
PRIMARY KEY (CALENDAR_NAME)
);
CREATE TABLE QRTZ_EXCL_paused_trigger_grps
(
TRIGGER_GROUP VARCHAR(80) NOT NULL,
PRIMARY KEY (TRIGGER_GROUP)
);
CREATE TABLE QRTZ_EXCL_fired_triggers
(
ENTRY_ID VARCHAR(95) NOT NULL,
TRIGGER_NAME VARCHAR(80) NOT NULL,
TRIGGER_GROUP VARCHAR(80) NOT NULL,
IS_VOLATILE BOOL NOT NULL,
INSTANCE_NAME VARCHAR(80) NOT NULL,
FIRED_TIME BIGINT NOT NULL,
PRIORITY INTEGER NOT NULL,
STATE VARCHAR(16) NOT NULL,
JOB_NAME VARCHAR(80) NULL,
JOB_GROUP VARCHAR(80) NULL,
IS_STATEFUL BOOL NULL,
REQUESTS_RECOVERY BOOL NULL,
PRIMARY KEY (ENTRY_ID)
);
CREATE TABLE QRTZ_EXCL_scheduler_state
(
INSTANCE_NAME VARCHAR(80) NOT NULL,
LAST_CHECKIN_TIME BIGINT NOT NULL,
CHECKIN_INTERVAL BIGINT NOT NULL,
PRIMARY KEY (INSTANCE_NAME)
);
CREATE TABLE QRTZ_EXCL_locks
(
LOCK_NAME VARCHAR(40) NOT NULL,
PRIMARY KEY (LOCK_NAME)
);
INSERT INTO QRTZ_EXCL_locks values('TRIGGER_ACCESS');
INSERT INTO QRTZ_EXCL_locks values('JOB_ACCESS');
INSERT INTO QRTZ_EXCL_locks values('CALENDAR_ACCESS');
INSERT INTO QRTZ_EXCL_locks values('STATE_ACCESS');
INSERT INTO QRTZ_EXCL_locks values('MISFIRE_ACCESS');
create table calendar_reminder (
user_id varchar(255) not null,
event_id varchar(36) not null,
send_date timestamp not null,
primary key (user_id, event_id, send_date)
);
create table analytic_summary_pages (
id int8 not null,
summary_id int8 not null,
inode varchar(255),
hits int8,
uri varchar(255),
primary key (id)
);
create table tag (
tag_id varchar(100) not null,
tagname varchar(255) not null,
host_id varchar(255),
user_id varchar(255),
persona boolean default false,
mod_date timestamp,
primary key (tag_id)
);
create table user_comments (
inode varchar(36) not null,
user_id varchar(255),
cdate timestamp,
comment_user_id varchar(100),
type varchar(255),
method varchar(255),
subject varchar(255),
ucomment text,
communication_id varchar(36),
primary key (inode)
);
create table permission_reference (
id int8 not null,
asset_id varchar(36),
reference_id varchar(36),
permission_type varchar(100),
primary key (id),
unique (asset_id)
);
create table contentlet_version_info (
identifier varchar(36) not null,
lang int8 not null,
working_inode varchar(36) not null,
live_inode varchar(36),
deleted bool not null,
locked_by varchar(100),
locked_on timestamp,
version_ts timestamp not null,
primary key (identifier, lang)
);
create table fixes_audit (
id varchar(36) not null,
table_name varchar(255),
action varchar(255),
records_altered int4,
datetime timestamp,
primary key (id)
);
create table container_version_info (
identifier varchar(36) not null,
working_inode varchar(36) not null,
live_inode varchar(36),
deleted bool not null,
locked_by varchar(100),
locked_on timestamp,
version_ts timestamp not null,
primary key (identifier)
);
create table trackback (
id int8 not null,
asset_identifier varchar(36),
title varchar(255),
excerpt varchar(255),
url varchar(255),
blog_name varchar(255),
track_date timestamp not null,
primary key (id)
);
create table plugin (
id varchar(255) not null,
plugin_name varchar(255) not null,
plugin_version varchar(255) not null,
author varchar(255) not null,
first_deployed_date timestamp not null,
last_deployed_date timestamp not null,
primary key (id)
);
create table mailing_list (
inode varchar(36) not null,
title varchar(255),
public_list bool,
user_id varchar(255),
primary key (inode)
);
create table recipient (
inode varchar(36) not null,
name varchar(255),
lastname varchar(255),
email varchar(255),
sent timestamp,
opened timestamp,
last_result int4,
last_message varchar(255),
user_id varchar(100),
primary key (inode)
);
create table web_form (
web_form_id varchar(36) not null,
form_type varchar(255),
submit_date timestamp,
prefix varchar(255),
first_name varchar(255),
middle_initial varchar(255),
middle_name varchar(255),
full_name varchar(255),
organization varchar(255),
title varchar(255),
last_name varchar(255),
address varchar(255),
address1 varchar(255),
address2 varchar(255),
city varchar(255),
state varchar(255),
zip varchar(255),
country varchar(255),
phone varchar(255),
email varchar(255),
custom_fields text,
user_inode varchar(100),
categories varchar(255),
primary key (web_form_id)
);
create table analytic_summary_period (
id int8 not null,
full_date timestamp,
day int4,
week int4,
month int4,
year varchar(255),
dayname varchar(50) not null,
monthname varchar(50) not null,
primary key (id),
unique (full_date)
);
create table tree (
child varchar(36) not null,
parent varchar(36) not null,
relation_type varchar(64) not null,
tree_order int4,
primary key (child, parent, relation_type)
);
create table analytic_summary (
id int8 not null,
summary_period_id int8 not null,
host_id varchar(36) not null,
visits int8,
page_views int8,
unique_visits int8,
new_visits int8,
direct_traffic int8,
referring_sites int8,
search_engines int8,
bounce_rate int4,
avg_time_on_site timestamp,
primary key (id),
unique (summary_period_id, host_id)
);
create table users_cms_roles (
id varchar(36) not null,
user_id varchar(100) not null,
role_id varchar(36) not null,
primary key (id)
);
create table template (
inode varchar(36) not null,
show_on_menu bool,
title varchar(255),
mod_date timestamp,
mod_user varchar(100),
sort_order int4,
friendly_name varchar(255),
body text,
header text,
footer text,
image varchar(36),
identifier varchar(36),
drawed bool,
drawed_body text,
add_container_links int4,
containers_added int4,
head_code text,
theme varchar(255),
primary key (inode)
);
create table analytic_summary_content (
id int8 not null,
summary_id int8 not null,
inode varchar(255),
hits int8,
uri varchar(255),
title varchar(255),
primary key (id)
);
create table structure (
inode varchar(36) not null,
name varchar(255),
description varchar(255),
default_structure bool,
review_interval varchar(255),
reviewer_role varchar(255),
page_detail varchar(36),
structuretype int4,
system bool,
fixed bool not null,
velocity_var_name varchar(255),
url_map_pattern varchar(512),
host varchar(36) not null,
folder varchar(36) not null,
expire_date_var varchar(255),
publish_date_var varchar(255),
mod_date timestamp,
primary key (inode)
);
create table cms_role (
id varchar(36) not null,
role_name varchar(255) not null,
description text,
role_key varchar(255),
db_fqn varchar(1000) not null,
parent varchar(36) not null,
edit_permissions bool,
edit_users bool,
edit_layouts bool,
locked bool,
system bool,
primary key (id)
);
create table container_structures (
id varchar(36) not null,
container_id varchar(36) not null,
container_inode varchar(36) not null,
structure_id varchar(36) not null,
code text,
primary key (id)
);
create table permission (
id int8 not null,
permission_type varchar(500),
inode_id varchar(36),
roleid varchar(36),
permission int4,
primary key (id),
unique (permission_type, inode_id, roleid)
);
create table contentlet (inode varchar(36) not null,
show_on_menu bool,
title varchar(255),
mod_date timestamp,
mod_user varchar(100),
sort_order int4,
friendly_name varchar(255),
structure_inode varchar(36),
last_review timestamp,
next_review timestamp,
review_interval varchar(255),
disabled_wysiwyg varchar(255),
identifier varchar(36),
language_id int8,
date1 timestamp,
date2 timestamp,
date3 timestamp,
date4 timestamp,
date5 timestamp,
date6 timestamp,
date7 timestamp,
date8 timestamp,
date9 timestamp,
date10 timestamp,
date11 timestamp,
date12 timestamp,
date13 timestamp,
date14 timestamp,
date15 timestamp,
date16 timestamp,
date17 timestamp,
date18 timestamp,
date19 timestamp,
date20 timestamp,
date21 timestamp,
date22 timestamp,
date23 timestamp,
date24 timestamp,
date25 timestamp,
text1 varchar(255),
text2 varchar(255),
text3 varchar(255),
text4 varchar(255),
text5 varchar(255),
text6 varchar(255),
text7 varchar(255),
text8 varchar(255),
text9 varchar(255),
text10 varchar(255),
text11 varchar(255),
text12 varchar(255),
text13 varchar(255),
text14 varchar(255),
text15 varchar(255),
text16 varchar(255),
text17 varchar(255),
text18 varchar(255),
text19 varchar(255),
text20 varchar(255),
text21 varchar(255),
text22 varchar(255),
text23 varchar(255),
text24 varchar(255),
text25 varchar(255),
text_area1 text,
text_area2 text,
text_area3 text,
text_area4 text,
text_area5 text,
text_area6 text,
text_area7 text,
text_area8 text,
text_area9 text,
text_area10 text,
text_area11 text,
text_area12 text,
text_area13 text,
text_area14 text,
text_area15 text,
text_area16 text,
text_area17 text,
text_area18 text,
text_area19 text,
text_area20 text,
text_area21 text,
text_area22 text,
text_area23 text,
text_area24 text,
text_area25 text,
integer1 int8,
integer2 int8,
integer3 int8,
integer4 int8,
integer5 int8,
integer6 int8,
integer7 int8,
integer8 int8,
integer9 int8,
integer10 int8,
integer11 int8,
integer12 int8,
integer13 int8,
integer14 int8,
integer15 int8,
integer16 int8,
integer17 int8,
integer18 int8,
integer19 int8,
integer20 int8,
integer21 int8,
integer22 int8,
integer23 int8,
integer24 int8,
integer25 int8,
"float1" float4,
"float2" float4,
"float3" float4,
"float4" float4,
"float5" float4,
"float6" float4,
"float7" float4,
"float8" float4,
"float9" float4,
"float10" float4,
"float11" float4,
"float12" float4,
"float13" float4,
"float14" float4,
"float15" float4,
"float16" float4,
"float17" float4,
"float18" float4,
"float19" float4,
"float20" float4,
"float21" float4,
"float22" float4,
"float23" float4,
"float24" float4,
"float25" float4,
bool1 bool,
bool2 bool,
bool3 bool,
bool4 bool,
bool5 bool,
bool6 bool,
bool7 bool,
bool8 bool,
bool9 bool,
bool10 bool,
bool11 bool,
bool12 bool,
bool13 bool,
bool14 bool,
bool15 bool,
bool16 bool,
bool17 bool,
bool18 bool,
bool19 bool,
bool20 bool,
bool21 bool,
bool22 bool,
bool23 bool,
bool24 bool,
bool25 bool,
primary key (inode));
create table analytic_summary_404 (
id int8 not null,
summary_period_id int8 not null,
host_id varchar(36),
uri varchar(255),
referer_uri varchar(255),
primary key (id)
);
create table cms_layouts_portlets (
id varchar(36) not null,
layout_id varchar(36) not null,
portlet_id varchar(100) not null,
portlet_order int4,
primary key (id)
);
create table report_asset (
inode varchar(36) not null,
report_name varchar(255) not null,
report_description varchar(1000) not null,
requires_input bool,
ds varchar(100) not null,
web_form_report bool,
primary key (inode)
);
create table workflow_comment (
id varchar(36) not null,
creation_date timestamp,
posted_by varchar(255),
wf_comment text,
workflowtask_id varchar(36),
primary key (id)
);
create table category (
inode varchar(36) not null,
category_name varchar(255),
category_key varchar(255),
sort_order int4,
active bool,
keywords text,
category_velocity_var_name varchar(255),
mod_date timestamp,
primary key (inode)
);
create table chain_link_code (
id int8 not null,
class_name varchar(255) unique,
code text not null,
last_mod_date timestamp not null,
language varchar(255) not null,
primary key (id)
);
create table analytic_summary_visits (
id int8 not null,
summary_period_id int8 not null,
host_id varchar(36),
visit_time timestamp,
visits int8,
primary key (id)
);
create table template_version_info (
identifier varchar(36) not null,
working_inode varchar(36) not null,
live_inode varchar(36),
deleted bool not null,