install.xml 6.36 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
<?xml version="1.0" encoding="UTF-8" ?>
<XMLDB PATH="lib/db" VERSION="2013010705" COMMENT="XMLDB file for Smart Evidence Framework mahara tables"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:noNamespaceSchemaLocation="../../../lib/xmldb/xmldb.xsd"
>
<TABLES>
    <TABLE NAME="framework">
        <FIELDS>
            <FIELD NAME="id" TYPE="int" LENGTH="10" NOTNULL="true" SEQUENCE="true" />
            <FIELD NAME="institution" TYPE="char" LENGTH="255" NOTNULL="false" DEFAULT="all" />
            <FIELD NAME="name" TYPE="char" LENGTH="255" NOTNULL="true" />
            <FIELD NAME="description" TYPE="text" NOTNULL="false" />
            <FIELD NAME="selfassess" TYPE="int" LENGTH="10" NOTNULL="true" DEFAULT="0"/>
14
            <FIELD NAME="active" TYPE="int" LENGTH="1" NOTNULL="true" DEFAULT="1"/>
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
        </FIELDS>
        <KEYS>
            <KEY NAME="primary" TYPE="primary" FIELDS="id" />
        </KEYS>
    </TABLE>
    <TABLE NAME="framework_standard">
        <FIELDS>
            <FIELD NAME="id" TYPE="int" LENGTH="10" NOTNULL="true" SEQUENCE="true" />
            <FIELD NAME="framework" TYPE="int" LENGTH="10" NOTNULL="true" />
            <FIELD NAME="shortname" TYPE="char" LENGTH="100" NOTNULL="true" />
            <FIELD NAME="name" TYPE="char" LENGTH="255" NOTNULL="true" />
            <FIELD NAME="description" TYPE="text" NOTNULL="false" />
            <FIELD NAME="priority" TYPE="int" LENGTH="10" NOTNULL="true" DEFAULT="0" />
            <FIELD NAME="ctime" TYPE="datetime" NOTNULL="true" />
            <FIELD NAME="mtime" TYPE="datetime" NOTNULL="true" />
        </FIELDS>
        <KEYS>
            <KEY NAME="primary" TYPE="primary" FIELDS="id" />
            <KEY NAME="frameworkfk" TYPE="foreign" FIELDS="framework" REFTABLE="framework" REFFIELDS="id" />
        </KEYS>
    </TABLE>
    <TABLE NAME="framework_standard_element">
        <FIELDS>
            <FIELD NAME="id" TYPE="int" LENGTH="10" NOTNULL="true" SEQUENCE="true" />
            <FIELD NAME="standard" TYPE="int" LENGTH="10" NOTNULL="true" />
            <FIELD NAME="shortname" TYPE="char" LENGTH="100" NOTNULL="true" />
            <FIELD NAME="name" TYPE="char" LENGTH="255" NOTNULL="true" />
            <FIELD NAME="description" TYPE="text" NOTNULL="false" />
            <FIELD NAME="priority" TYPE="int" LENGTH="10" NOTNULL="true" DEFAULT="0" />
            <FIELD NAME="parent" TYPE="int" LENGTH="10" NOTNULL="false" />
            <FIELD NAME="ctime" TYPE="datetime" NOTNULL="true" />
            <FIELD NAME="mtime" TYPE="datetime" NOTNULL="true" />
        </FIELDS>
        <KEYS>
            <KEY NAME="primary" TYPE="primary" FIELDS="id" />
            <KEY NAME="frameworkstandardfk" TYPE="foreign" FIELDS="standard" REFTABLE="framework_standard" REFFIELDS="id" />
        </KEYS>
    </TABLE>
    <TABLE NAME="framework_evidence">
        <FIELDS>
            <FIELD NAME="id" TYPE="int" LENGTH="10" NOTNULL="true" SEQUENCE="true" />
            <FIELD NAME="annotation" TYPE="int" LENGTH="10" NOTNULL="false" />
            <FIELD NAME="framework" TYPE="int" LENGTH="10" NOTNULL="false" />
            <FIELD NAME="element" TYPE="int" LENGTH="10" NOTNULL="false" />
            <FIELD NAME="view" TYPE="int" LENGTH="10" NOTNULL="false" />
            <FIELD NAME="state" TYPE="int" LENGTH="1" NOTNULL="true" DEFAULT="0" />
            <FIELD NAME="reviewer" TYPE="int" LENGTH="10" NOTNULL="false" />
            <FIELD NAME="ctime" TYPE="datetime" NOTNULL="true" />
            <FIELD NAME="mtime" TYPE="datetime" NOTNULL="true" />
        </FIELDS>
        <KEYS>
            <KEY NAME="primary" TYPE="primary" FIELDS="id" />
            <KEY NAME="annotationfk" TYPE="foreign" FIELDS="annotation" REFTABLE="block_instance" REFFIELDS="id" />
            <KEY NAME="frameworkfk" TYPE="foreign" FIELDS="framework" REFTABLE="framework" REFFIELDS="id" />
            <KEY NAME="elementfk" TYPE="foreign" FIELDS="element" REFTABLE="framework_standard_element" REFFIELDS="id" />
            <KEY NAME="viewfk" TYPE="foreign" FIELDS="view" REFTABLE="view" REFFIELDS="id" />
            <KEY NAME="reviewerfk" TYPE="foreign" FIELDS="reviewer" REFTABLE="usr" REFFIELDS="id" />
            <KEY NAME="namepluginuk" TYPE="unique" FIELDS="framework, element, view" />
        </KEYS>
    </TABLE>
75
    <TABLE NAME="framework_evidence_statuses">
76
77
78
        <FIELDS>
            <FIELD NAME="id" TYPE="int" LENGTH="10" NOTNULL="true" SEQUENCE="true" />
            <FIELD NAME="framework" TYPE="int" LENGTH="10" NOTNULL="true" />
79
            <FIELD NAME="name" TYPE="char" LENGTH="255" NOTNULL="true" />
80
81
82
83
84
85
86
            <FIELD NAME="type" TYPE="int" LENGTH="1" NOTNULL="true" />
        </FIELDS>
        <KEYS>
            <KEY NAME="primary" TYPE="primary" FIELDS="id" />
            <KEY NAME="frameworkfk" TYPE="foreign" FIELDS="framework" REFTABLE="framework" REFFIELDS="id" />
        </KEYS>
    </TABLE>
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
    <TABLE NAME="framework_assessment_feedback">
        <FIELDS>
            <FIELD NAME="id" TYPE="int" LENGTH="10" NOTNULL="true" SEQUENCE="true" />
            <FIELD NAME="framework" TYPE="int" LENGTH="10" NOTNULL="true" />
            <FIELD NAME="artefact" TYPE="int" LENGTH="10" NOTNULL="true" />
            <FIELD NAME="oldstatus" TYPE="int" LENGTH="1" NOTNULL="true" />
            <FIELD NAME="newstatus" TYPE="int" LENGTH="1" NOTNULL="true" />
            <FIELD NAME="usr" TYPE="int" LENGTH="10" NOTNULL="true" />
        </FIELDS>
        <KEYS>
            <KEY NAME="primary" TYPE="primary" FIELDS="id" />
            <KEY NAME="frameworkfk" TYPE="foreign" FIELDS="framework" REFTABLE="framework" REFFIELDS="id" />
            <KEY NAME="artefactfk" TYPE="foreign" FIELDS="artefact" REFTABLE="artefact" REFFIELDS="id" />
            <KEY NAME="usrfk" TYPE="foreign" FIELDS="usr" REFTABLE="usr" REFFIELDS="id" />
        </KEYS>
    </TABLE>
103
104
105
106
107
108
109
110
111
112
113
114
    <TABLE NAME="framework_config">
        <FIELDS>
            <FIELD NAME="id" TYPE="int" LENGTH="10" NOTNULL="true" SEQUENCE="true" />
            <FIELD NAME="framework" TYPE="int" LENGTH="10" NOTNULL="true" />
            <FIELD NAME="field" TYPE="char" LENGTH="255" NOTNULL="true" />
            <FIELD NAME="value" TYPE="text" LENGTH="small" NOTNULL="true" />
        </FIELDS>
        <KEYS>
            <KEY NAME="primary" TYPE="primary" FIELDS="id" />
            <KEY NAME="frameworkfk" TYPE="foreign" FIELDS="framework" REFTABLE="framework" REFFIELDS="id" />
        </KEYS>
    </TABLE>
115
</TABLES>
116
</XMLDB>