1 |
efrain |
1 |
<?xml version="1.0" encoding="UTF-8" ?>
|
|
|
2 |
<XMLDB PATH="mod/reengagement/db" VERSION="20161124" COMMENT="XMLDB file for Moodle mod/reengagement"
|
|
|
3 |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
|
4 |
xsi:noNamespaceSchemaLocation="../../../lib/xmldb/xmldb.xsd"
|
|
|
5 |
>
|
|
|
6 |
<TABLES>
|
|
|
7 |
<TABLE NAME="reengagement" COMMENT="Details about instances of the reengagement activity">
|
|
|
8 |
<FIELDS>
|
|
|
9 |
<FIELD NAME="id" TYPE="int" LENGTH="10" NOTNULL="true" SEQUENCE="true"/>
|
|
|
10 |
<FIELD NAME="course" TYPE="int" LENGTH="10" NOTNULL="true" DEFAULT="0" SEQUENCE="false" COMMENT="Course reengagement activity belongs to"/>
|
|
|
11 |
<FIELD NAME="name" TYPE="char" LENGTH="255" NOTNULL="true" SEQUENCE="false" COMMENT="name field for moodle instances"/>
|
|
|
12 |
<FIELD NAME="timecreated" TYPE="int" LENGTH="10" NOTNULL="true" DEFAULT="0" SEQUENCE="false"/>
|
|
|
13 |
<FIELD NAME="timemodified" TYPE="int" LENGTH="10" NOTNULL="true" DEFAULT="0" SEQUENCE="false"/>
|
|
|
14 |
<FIELD NAME="emailuser" TYPE="int" LENGTH="4" NOTNULL="true" DEFAULT="1" SEQUENCE="false" COMMENT="Under what conditions should an email be sent"/>
|
|
|
15 |
<FIELD NAME="emailcontent" TYPE="text" NOTNULL="true" SEQUENCE="false" COMMENT="The html-formatted text that should be sent to the user"/>
|
|
|
16 |
<FIELD NAME="emailcontentformat" TYPE="int" LENGTH="4" NOTNULL="true" DEFAULT="0" SEQUENCE="false" COMMENT="Format of the emailcontent field"/>
|
|
|
17 |
<FIELD NAME="emailsubject" TYPE="char" LENGTH="255" NOTNULL="true" SEQUENCE="false" COMMENT="Email subject line for emails going to user"/>
|
|
|
18 |
<FIELD NAME="emailcontentmanager" TYPE="text" NOTNULL="true" SEQUENCE="false" COMMENT="The html-formatted text that should be sent to the user's manager"/>
|
|
|
19 |
<FIELD NAME="emailcontentmanagerformat" TYPE="int" LENGTH="4" NOTNULL="true" DEFAULT="0" SEQUENCE="false" COMMENT="Format of the emailcontentmanager field"/>
|
|
|
20 |
<FIELD NAME="emailsubjectmanager" TYPE="char" LENGTH="255" NOTNULL="true" SEQUENCE="false" COMMENT="Email subject line for emails going to user's manager"/>
|
|
|
21 |
<FIELD NAME="emailrecipient" TYPE="int" LENGTH="4" NOTNULL="true" DEFAULT="0" SEQUENCE="false" COMMENT="Who should receive any email - user|manager|both"/>
|
|
|
22 |
<FIELD NAME="thirdpartyemails" TYPE="text" NOTNULL="false" SEQUENCE="false" COMMENT="Addresses of third parties"/>
|
|
|
23 |
<FIELD NAME="emailsubjectthirdparty" TYPE="char" LENGTH="255" NOTNULL="false" SEQUENCE="false" COMMENT="Email subject line for emails going to third parties"/>
|
|
|
24 |
<FIELD NAME="emailcontentthirdparty" TYPE="text" NOTNULL="false" SEQUENCE="false" COMMENT="The html-formatted text that should be sent to the third party"/>
|
|
|
25 |
<FIELD NAME="emailcontentthirdpartyformat" TYPE="int" LENGTH="4" NOTNULL="false" DEFAULT="0" SEQUENCE="false" COMMENT="Format of the emailcontentthirdparty field"/>
|
|
|
26 |
<FIELD NAME="duration" TYPE="int" LENGTH="10" NOTNULL="true" DEFAULT="604800" SEQUENCE="false" COMMENT="how long the reengagement is"/>
|
|
|
27 |
<FIELD NAME="remindercount" TYPE="int" LENGTH="3" NOTNULL="true" DEFAULT="1" SEQUENCE="false" COMMENT="how many times to send the email"/>
|
|
|
28 |
<FIELD NAME="suppresstarget" TYPE="int" LENGTH="10" NOTNULL="true" DEFAULT="0" SEQUENCE="false" COMMENT="ID of module that, if completed, should prevent an email being sent out."/>
|
|
|
29 |
<FIELD NAME="emaildelay" TYPE="int" LENGTH="10" NOTNULL="true" DEFAULT="604800" SEQUENCE="false" COMMENT="Time setting related to email"/>
|
|
|
30 |
</FIELDS>
|
|
|
31 |
<KEYS>
|
|
|
32 |
<KEY NAME="primary" TYPE="primary" FIELDS="id"/>
|
|
|
33 |
</KEYS>
|
|
|
34 |
<INDEXES>
|
|
|
35 |
<INDEX NAME="course" UNIQUE="false" FIELDS="course"/>
|
|
|
36 |
</INDEXES>
|
|
|
37 |
</TABLE>
|
|
|
38 |
<TABLE NAME="reengagement_inprogress" COMMENT="records of reengagement activities currently in progress">
|
|
|
39 |
<FIELDS>
|
|
|
40 |
<FIELD NAME="id" TYPE="int" LENGTH="10" NOTNULL="true" SEQUENCE="true"/>
|
|
|
41 |
<FIELD NAME="reengagement" TYPE="int" LENGTH="10" NOTNULL="true" SEQUENCE="false" COMMENT="id of the reengagement which is in progress"/>
|
|
|
42 |
<FIELD NAME="userid" TYPE="int" LENGTH="10" NOTNULL="true" SEQUENCE="false" COMMENT="id of user this record relates to."/>
|
|
|
43 |
<FIELD NAME="completiontime" TYPE="int" LENGTH="10" NOTNULL="true" SEQUENCE="false" COMMENT="Unix time when this module will be complete for this user."/>
|
|
|
44 |
<FIELD NAME="emailtime" TYPE="int" LENGTH="10" NOTNULL="true" SEQUENCE="false" COMMENT="Unix time when user should be emailed (if set to emailaftertime)"/>
|
|
|
45 |
<FIELD NAME="emailsent" TYPE="int" LENGTH="4" NOTNULL="true" DEFAULT="0" SEQUENCE="false" COMMENT="whether the user has been sent the email"/>
|
|
|
46 |
<FIELD NAME="completed" TYPE="int" LENGTH="4" NOTNULL="true" DEFAULT="0" SEQUENCE="false" COMMENT="whether the user has been marked as completed"/>
|
|
|
47 |
</FIELDS>
|
|
|
48 |
<KEYS>
|
|
|
49 |
<KEY NAME="primary" TYPE="primary" FIELDS="id"/>
|
|
|
50 |
</KEYS>
|
|
|
51 |
</TABLE>
|
|
|
52 |
</TABLES>
|
|
|
53 |
</XMLDB>
|