Gitlab CSE Unil

install.xml 11.4 KB
Newer Older
M. Chardon's avatar
init  
M. Chardon committed
1
<?xml version="1.0" encoding="UTF-8" ?>
2
3
4
<XMLDB PATH="mod/assign/feedback/editpdfplus/db" VERSION="20190524" COMMENT="XMLDB file for Moodle mod/assign/feedback/editpdfplus"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:noNamespaceSchemaLocation="../../../../../lib/xmldb/xmldb.xsd"
M. Chardon's avatar
init  
M. Chardon committed
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
    <TABLES>
        <TABLE NAME="assignfeedback_editpp_annot" COMMENT="stores annotations added to pdfs submitted by students">
            <FIELDS>
                <FIELD NAME="id" TYPE="int" LENGTH="10" NOTNULL="true" SEQUENCE="true"/>
                <FIELD NAME="gradeid" TYPE="int" LENGTH="10" NOTNULL="true" DEFAULT="0" SEQUENCE="false"/>
                <FIELD NAME="pageno" TYPE="int" LENGTH="10" NOTNULL="true" DEFAULT="0" SEQUENCE="false" COMMENT="The page in the PDF that this annotation appears on"/>
                <FIELD NAME="x" TYPE="int" LENGTH="10" NOTNULL="false" DEFAULT="0" SEQUENCE="false" COMMENT="x-position of the start of the annotation (in pixels - image resolution is set to 100 pixels per inch)"/>
                <FIELD NAME="y" TYPE="int" LENGTH="10" NOTNULL="false" DEFAULT="0" SEQUENCE="false" COMMENT="y-position of the start of the annotation (in pixels - image resolution is set to 100 pixels per inch)"/>
                <FIELD NAME="endx" TYPE="int" LENGTH="10" NOTNULL="false" DEFAULT="0" SEQUENCE="false" COMMENT="x-position of the end of the annotation"/>
                <FIELD NAME="endy" TYPE="int" LENGTH="10" NOTNULL="false" DEFAULT="0" SEQUENCE="false" COMMENT="y-position of the end of the annotation"/>
                <FIELD NAME="cartridgex" TYPE="int" LENGTH="10" NOTNULL="false" DEFAULT="0" SEQUENCE="false" COMMENT="x-position of the start of the cartridge (in pixels - image resolution is set to 100 pixels per inch)"/>
                <FIELD NAME="cartridgey" TYPE="int" LENGTH="10" NOTNULL="false" DEFAULT="0" SEQUENCE="false" COMMENT="y-position of the start of the cartridge (in pixels - image resolution is set to 100 pixels per inch)"/>
                <FIELD NAME="path" TYPE="text" NOTNULL="false" SEQUENCE="false" COMMENT="SVG path describing the freehand line"/>
                <FIELD NAME="toolid" TYPE="int" LENGTH="10" NOTNULL="true" SEQUENCE="false"/>
                <FIELD NAME="textannot" TYPE="char" LENGTH="1000" NOTNULL="false" SEQUENCE="false"/>
                <FIELD NAME="colour" TYPE="char" LENGTH="15" NOTNULL="false" DEFAULT="black" SEQUENCE="false" COMMENT="Can be red, yellow, green, blue, white, black"/>
                <FIELD NAME="draft" TYPE="int" LENGTH="2" NOTNULL="true" DEFAULT="1" SEQUENCE="false" COMMENT="Is this a draft annotation?"/>
                <FIELD NAME="answerrequested" TYPE="int" LENGTH="1" NOTNULL="true" DEFAULT="0" SEQUENCE="false"/>
                <FIELD NAME="studentanswer" TYPE="char" LENGTH="500" NOTNULL="false" SEQUENCE="false"/>
                <FIELD NAME="studentstatus" TYPE="char" LENGTH="50" NOTNULL="false" SEQUENCE="false"/>
                <FIELD NAME="displaylock" TYPE="int" LENGTH="1" NOTNULL="true" DEFAULT="1" SEQUENCE="false"/>
                <FIELD NAME="displayrotation" TYPE="int" LENGTH="1" NOTNULL="true" DEFAULT="0" SEQUENCE="false"/>
                <FIELD NAME="borderstyle" TYPE="char" LENGTH="20" NOTNULL="false" SEQUENCE="false"/>
                <FIELD NAME="parent_annot" TYPE="int" LENGTH="10" NOTNULL="false" SEQUENCE="false"/>
30
                <FIELD NAME="pdfdisplay" TYPE="char" LENGTH="20" NOTNULL="false"/>
31
                <FIELD NAME="draft_id" TYPE="int" LENGTH="10" NOTNULL="false"/>
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
            </FIELDS>
            <KEYS>
                <KEY NAME="primary" TYPE="primary" FIELDS="id"/>
                <KEY NAME="gradeid" TYPE="foreign" FIELDS="gradeid" REFTABLE="assign_grades" REFFIELDS="id"/>
                <KEY NAME="toolid" TYPE="foreign" FIELDS="toolid" REFTABLE="editpdfpp_tool" REFFIELDS="id"/>
                <KEY NAME="parent_annot" TYPE="foreign" FIELDS="parent_annot" REFTABLE="editpdfpp_annot" REFFIELDS="id"/>
            </KEYS>
            <INDEXES>
                <INDEX NAME="gradeid_pageno" UNIQUE="false" FIELDS="gradeid, pageno"/>
                <INDEX NAME="parent_annot" UNIQUE="false" FIELDS="parent_annot"/>
            </INDEXES>
        </TABLE>
        <TABLE NAME="assignfeedback_editpp_queue" COMMENT="Queue for processing.">
            <FIELDS>
                <FIELD NAME="id" TYPE="int" LENGTH="10" NOTNULL="true" SEQUENCE="true"/>
                <FIELD NAME="submissionid" TYPE="int" LENGTH="10" NOTNULL="true" SEQUENCE="false"/>
                <FIELD NAME="submissionattempt" TYPE="int" LENGTH="10" NOTNULL="true" SEQUENCE="false"/>
                <FIELD NAME="attemptedconversions" TYPE="int" LENGTH="10" NOTNULL="true" DEFAULT="0" SEQUENCE="false"/>
            </FIELDS>
            <KEYS>
                <KEY NAME="primary" TYPE="primary" FIELDS="id"/>
                <KEY NAME="submissionid-submissionattempt" TYPE="unique" FIELDS="submissionid, submissionattempt"/>
            </KEYS>
        </TABLE>
        <TABLE NAME="assignfeedback_editpp_tool" COMMENT="assignfeedback_editpp_tool table retrofitted from MySQL">
            <FIELDS>
                <FIELD NAME="id" TYPE="int" LENGTH="18" NOTNULL="true" SEQUENCE="true"/>
                <FIELD NAME="contextid" TYPE="int" LENGTH="18" NOTNULL="true" SEQUENCE="false"/>
                <FIELD NAME="axis" TYPE="int" LENGTH="9" NOTNULL="true" DEFAULT="1" SEQUENCE="false"/>
                <FIELD NAME="type" TYPE="int" LENGTH="9" NOTNULL="true" DEFAULT="1" SEQUENCE="false"/>
                <FIELD NAME="colors" TYPE="char" LENGTH="300" NOTNULL="false" SEQUENCE="false"/>
                <FIELD NAME="image" TYPE="binary" NOTNULL="false" SEQUENCE="false"/>
                <FIELD NAME="thumbnail" TYPE="binary" NOTNULL="false" SEQUENCE="false"/>
                <FIELD NAME="cartridge" TYPE="char" LENGTH="10" NOTNULL="false" SEQUENCE="false"/>
                <FIELD NAME="cartridge_color" TYPE="char" LENGTH="200" NOTNULL="false" SEQUENCE="false"/>
                <FIELD NAME="texts" TYPE="char" LENGTH="500" NOTNULL="false" SEQUENCE="false"/>
                <FIELD NAME="label" TYPE="char" LENGTH="20" NOTNULL="true" SEQUENCE="false"/>
                <FIELD NAME="reply" TYPE="int" LENGTH="2" NOTNULL="true" DEFAULT="0" SEQUENCE="false"/>
                <FIELD NAME="enabled" TYPE="int" LENGTH="1" NOTNULL="true" DEFAULT="1" SEQUENCE="false"/>
                <FIELD NAME="order_tool" TYPE="int" LENGTH="11" NOTNULL="false" SEQUENCE="false"/>
            </FIELDS>
            <KEYS>
                <KEY NAME="primary" TYPE="primary" FIELDS="id"/>
                <KEY NAME="contextid" TYPE="foreign" FIELDS="contextid" REFTABLE="context" REFFIELDS="id"/>
                <KEY NAME="axis" TYPE="foreign" FIELDS="axis" REFTABLE="editpdfpp_axis" REFFIELDS="id"/>
                <KEY NAME="type" TYPE="foreign" FIELDS="type" REFTABLE="editpdfpp_typet" REFFIELDS="id"/>
            </KEYS>
        </TABLE>
        <TABLE NAME="assignfeedback_editpp_typet" COMMENT="assignfeedback_editpp_typet table retrofitted from MySQL">
            <FIELDS>
                <FIELD NAME="id" TYPE="int" LENGTH="18" NOTNULL="true" SEQUENCE="true"/>
                <FIELD NAME="contextid" TYPE="int" LENGTH="18" NOTNULL="true" SEQUENCE="false"/>
                <FIELD NAME="label" TYPE="char" LENGTH="100" NOTNULL="true" SEQUENCE="false"/>
                <FIELD NAME="color" TYPE="char" LENGTH="200" NOTNULL="false" SEQUENCE="false"/>
                <FIELD NAME="cartridge_color" TYPE="char" LENGTH="200" NOTNULL="false" SEQUENCE="false"/>
                <FIELD NAME="cartridge_x" TYPE="int" LENGTH="10" NOTNULL="false" SEQUENCE="false"/>
                <FIELD NAME="cartridge_y" TYPE="int" LENGTH="10" NOTNULL="false" SEQUENCE="false"/>
                <FIELD NAME="configurable" TYPE="int" LENGTH="1" NOTNULL="true" DEFAULT="1" SEQUENCE="false"/>
                <FIELD NAME="configurable_cartridge" TYPE="int" LENGTH="1" NOTNULL="true" DEFAULT="1" SEQUENCE="false"/>
                <FIELD NAME="configurable_cartridge_color" TYPE="int" LENGTH="1" NOTNULL="true" DEFAULT="1" SEQUENCE="false"/>
                <FIELD NAME="configurable_color" TYPE="int" LENGTH="1" NOTNULL="true" DEFAULT="1" SEQUENCE="false"/>
                <FIELD NAME="configurable_texts" TYPE="int" LENGTH="1" NOTNULL="true" DEFAULT="1" SEQUENCE="false"/>
                <FIELD NAME="configurable_question" TYPE="int" LENGTH="1" NOTNULL="true" DEFAULT="1" SEQUENCE="false"/>
            </FIELDS>
            <KEYS>
                <KEY NAME="primary" TYPE="primary" FIELDS="id"/>
                <KEY NAME="contextid" TYPE="foreign" FIELDS="contextid" REFTABLE="context" REFFIELDS="id"/>
            </KEYS>
        </TABLE>
        <TABLE NAME="assignfeedback_editpp_axis" COMMENT="assignfeedback_editpp_axis table retrofitted from MySQL">
            <FIELDS>
                <FIELD NAME="id" TYPE="int" LENGTH="18" NOTNULL="true" SEQUENCE="true"/>
                <FIELD NAME="contextid" TYPE="int" LENGTH="18" NOTNULL="true" SEQUENCE="false"/>
                <FIELD NAME="label" TYPE="char" LENGTH="30" NOTNULL="true" SEQUENCE="false"/>
                <FIELD NAME="order_axis" TYPE="int" LENGTH="5" NOTNULL="false" SEQUENCE="false"/>
            </FIELDS>
            <KEYS>
                <KEY NAME="primary" TYPE="primary" FIELDS="id"/>
                <KEY NAME="contextid" TYPE="foreign" FIELDS="contextid" REFTABLE="context" REFFIELDS="id"/>
            </KEYS>
        </TABLE>
M. Chardon's avatar
M. Chardon committed
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
        <TABLE NAME="assignfeedback_editpp_modax" COMMENT="Model of axis">
            <FIELDS>
                <FIELD NAME="id" TYPE="int" LENGTH="10" NOTNULL="true" UNSIGNED="true" SEQUENCE="true"/>
                <FIELD NAME="user" TYPE="int" LENGTH="10" NOTNULL="true" UNSIGNED="true" SEQUENCE="false" COMMENT="Model s user"/>
                <FIELD NAME="axis" TYPE="int" LENGTH="10" NOTNULL="true" SEQUENCE="false"/>
                <FIELD NAME="label" TYPE="text" LENGTH="100" NOTNULL="false" COMMENT=""/>
            </FIELDS>
            <KEYS>
                <KEY NAME="primary" TYPE="primary" FIELDS="id"/>
                <KEY NAME="axis" TYPE="foreign" FIELDS="axis" REFTABLE="editpdfpp_axis" REFFIELDS="id"/>
            </KEYS>
            <INDEXES>
                <INDEX NAME="useraxis" UNIQUE="false" FIELDS="user, axis"/>
            </INDEXES>
        </TABLE>
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
        <TABLE NAME="assignfeedback_editpp_rot" COMMENT="Stores rotation information of a page.">
            <FIELDS>
                <FIELD NAME="id" TYPE="int" LENGTH="10" NOTNULL="true" SEQUENCE="true"/>
                <FIELD NAME="gradeid" TYPE="int" LENGTH="10" NOTNULL="true" DEFAULT="0" SEQUENCE="false"/>
                <FIELD NAME="pageno" TYPE="int" LENGTH="10" NOTNULL="true" DEFAULT="0" SEQUENCE="false" COMMENT="Page number"/>
                <FIELD NAME="pathnamehash" TYPE="text" NOTNULL="true" SEQUENCE="false" COMMENT="File path hash of the rotated page"/>
                <FIELD NAME="isrotated" TYPE="int" LENGTH="1" NOTNULL="true" DEFAULT="0" SEQUENCE="false" COMMENT="Whether the page is rotated or not"/>
                <FIELD NAME="degree" TYPE="int" LENGTH="10" NOTNULL="true" DEFAULT="0" SEQUENCE="false" COMMENT="Rotation degree"/>
            </FIELDS>
            <KEYS>
                <KEY NAME="primary" TYPE="primary" FIELDS="id"/>
                <KEY NAME="gradeid" TYPE="foreign" FIELDS="gradeid" REFTABLE="assign_grades" REFFIELDS="id"/>
            </KEYS>
            <INDEXES>
                <INDEX NAME="gradeid_pageno" UNIQUE="true" FIELDS="gradeid, pageno"/>
            </INDEXES>
        </TABLE>
    </TABLES>
M. Chardon's avatar
init  
M. Chardon committed
146
</XMLDB>