1
1
drop table if exists t1, t2, t3, t4;
4
DOCID VARCHAR(32)BINARY NOT NULL
5
, UUID VARCHAR(32)BINARY NOT NULL DEFAULT ""
6
, MIMETYPE VARCHAR(80)BINARY
4
DOCID VARCHAR(32) NOT NULL
5
, UUID VARCHAR(32) NOT NULL DEFAULT ""
7
7
, CONTENTDATA LONGBLOB
8
8
, CONTENTSIZE INTEGER
10
, REPID VARCHAR(32)BINARY
11
11
, MODIFIED TIMESTAMP
12
, MODIFIER VARCHAR(255)BINARY
12
, MODIFIER VARCHAR(255)
13
13
, ORIGINATOR INTEGER
14
14
, PRIMARY KEY ( DOCID )
17
17
INSERT INTO t1 (DOCID) VALUES ("1"), ("2");
20
DOCID VARCHAR(32)BINARY NOT NULL
21
, DOCNAME VARCHAR(255)BINARY NOT NULL
22
, DOCTYPEID VARCHAR(32)BINARY NOT NULL
23
, FOLDERID VARCHAR(32)BINARY NOT NULL
24
, AUTHOR VARCHAR(255)BINARY
20
DOCID VARCHAR(32) NOT NULL
21
, DOCNAME VARCHAR(255) NOT NULL
22
, DOCTYPEID VARCHAR(32) NOT NULL
23
, FOLDERID VARCHAR(32) NOT NULL
25
25
, CREATED TIMESTAMP NOT NULL
26
, TITLE VARCHAR(255)BINARY
27
, SUBTITLE VARCHAR(255)BINARY
27
, SUBTITLE VARCHAR(255)
28
28
, DOCABSTRACT LONGBLOB
29
29
, PUBLISHDATE TIMESTAMP
30
30
, EXPIRATIONDATE TIMESTAMP
31
, LOCKEDBY VARCHAR(80)BINARY
32
, STATUS VARCHAR(80)BINARY
33
, PARENTDOCID VARCHAR(32)BINARY
34
, REPID VARCHAR(32)BINARY
31
, LOCKEDBY VARCHAR(80)
33
, PARENTDOCID VARCHAR(32)
35
35
, MODIFIED TIMESTAMP
36
, MODIFIER VARCHAR(255) BINARY NOT NULL
36
, MODIFIER VARCHAR(255) NOT NULL
37
37
, PUBLISHSTATUS INTEGER
38
38
, ORIGINATOR INTEGER
39
39
, PRIMARY KEY ( DOCID )
43
43
CREATE INDEX DFOLDERID_IDX ON t2 (FOLDERID);
46
FOLDERID VARCHAR(32)BINARY NOT NULL
47
, FOLDERNAME VARCHAR(255)BINARY NOT NULL
48
, CREATOR VARCHAR(255)BINARY
46
FOLDERID VARCHAR(32) NOT NULL
47
, FOLDERNAME VARCHAR(255) NOT NULL
48
, CREATOR VARCHAR(255)
49
49
, CREATED TIMESTAMP NOT NULL
50
, DESCRIPTION VARCHAR(255)BINARY
50
, DESCRIPTION VARCHAR(255)
51
51
, FOLDERTYPE INTEGER NOT NULL
52
52
, MODIFIED TIMESTAMP
53
, MODIFIER VARCHAR(255)BINARY
53
, MODIFIER VARCHAR(255)
54
54
, FOLDERSIZE INTEGER NOT NULL
55
, PARENTID VARCHAR(32)BINARY
56
, REPID VARCHAR(32)BINARY
55
, PARENTID VARCHAR(32)
57
57
, ORIGINATOR INTEGER
58
58
, PRIMARY KEY ( FOLDERID )
61
61
CREATE INDEX CMFLDRPARNT_IDX ON t3 (PARENTID);
64
DOCTYPEID VARCHAR(32)BINARY NOT NULL
65
, DOCTYPENAME VARCHAR(80)BINARY NOT NULL
66
, DESCRIPTION VARCHAR(255)BINARY
64
DOCTYPEID VARCHAR(32) NOT NULL
65
, DOCTYPENAME VARCHAR(80) NOT NULL
66
, DESCRIPTION VARCHAR(255)
67
67
, EXTNDATA LONGBLOB
68
68
, MODIFIED TIMESTAMP
69
, MODIFIER VARCHAR(255)BINARY
69
, MODIFIER VARCHAR(255)
70
70
, ORIGINATOR INTEGER
71
71
, PRIMARY KEY ( DOCTYPEID )