2012-12-07 09:34:46 +00:00
|
|
|
<?xml version="1.0" encoding="UTF-8" ?>
|
2015-03-11 23:15:50 +00:00
|
|
|
<XMLDB PATH="mod/customcert/db" VERSION="20150311" COMMENT="XMLDB file for Moodle mod/customcert"
|
2012-12-07 09:34:46 +00:00
|
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
|
|
xsi:noNamespaceSchemaLocation="../../../lib/xmldb/xmldb.xsd"
|
|
|
|
>
|
|
|
|
<TABLES>
|
2015-03-11 23:15:50 +00:00
|
|
|
<TABLE NAME="customcert" COMMENT="Defines customcerts">
|
2012-12-07 09:34:46 +00:00
|
|
|
<FIELDS>
|
2015-03-11 23:15:50 +00:00
|
|
|
<FIELD NAME="id" TYPE="int" LENGTH="10" NOTNULL="true" SEQUENCE="true"/>
|
|
|
|
<FIELD NAME="course" TYPE="int" LENGTH="10" NOTNULL="true" DEFAULT="0" SEQUENCE="false"/>
|
|
|
|
<FIELD NAME="name" TYPE="char" LENGTH="255" NOTNULL="true" SEQUENCE="false"/>
|
|
|
|
<FIELD NAME="intro" TYPE="text" LENGTH="small" NOTNULL="false" SEQUENCE="false"/>
|
|
|
|
<FIELD NAME="introformat" TYPE="int" LENGTH="4" NOTNULL="true" DEFAULT="0" SEQUENCE="false"/>
|
|
|
|
<FIELD NAME="requiredtime" TYPE="int" LENGTH="10" NOTNULL="true" DEFAULT="0" SEQUENCE="false"/>
|
|
|
|
<FIELD NAME="protection" TYPE="char" LENGTH="255" NOTNULL="true" SEQUENCE="false"/>
|
|
|
|
<FIELD NAME="timecreated" TYPE="int" LENGTH="10" NOTNULL="true" DEFAULT="0" SEQUENCE="false"/>
|
|
|
|
<FIELD NAME="timemodified" TYPE="int" LENGTH="10" NOTNULL="true" DEFAULT="0" SEQUENCE="false"/>
|
2012-12-07 09:34:46 +00:00
|
|
|
</FIELDS>
|
|
|
|
<KEYS>
|
|
|
|
<KEY NAME="primary" TYPE="primary" FIELDS="id" COMMENT="Primary key for customcert"/>
|
|
|
|
</KEYS>
|
|
|
|
</TABLE>
|
2015-03-11 23:15:50 +00:00
|
|
|
<TABLE NAME="customcert_issues" COMMENT="Stores each issue of a customcert">
|
2012-12-07 09:34:46 +00:00
|
|
|
<FIELDS>
|
2015-03-11 23:15:50 +00:00
|
|
|
<FIELD NAME="id" TYPE="int" LENGTH="10" NOTNULL="true" SEQUENCE="true"/>
|
|
|
|
<FIELD NAME="userid" TYPE="int" LENGTH="10" NOTNULL="true" DEFAULT="0" SEQUENCE="false"/>
|
|
|
|
<FIELD NAME="customcertid" TYPE="int" LENGTH="10" NOTNULL="true" DEFAULT="0" SEQUENCE="false"/>
|
|
|
|
<FIELD NAME="code" TYPE="char" LENGTH="40" NOTNULL="false" SEQUENCE="false"/>
|
|
|
|
<FIELD NAME="timecreated" TYPE="int" LENGTH="10" NOTNULL="true" DEFAULT="0" SEQUENCE="false"/>
|
2012-12-07 09:34:46 +00:00
|
|
|
</FIELDS>
|
|
|
|
<KEYS>
|
2015-03-11 23:15:50 +00:00
|
|
|
<KEY NAME="primary" TYPE="primary" FIELDS="id" COMMENT="Primary key for customcert_issues"/>
|
|
|
|
<KEY NAME="customcert" TYPE="foreign" FIELDS="customcertid" REFTABLE="customcert" REFFIELDS="id"/>
|
2012-12-07 09:34:46 +00:00
|
|
|
</KEYS>
|
|
|
|
</TABLE>
|
2015-03-11 23:15:50 +00:00
|
|
|
<TABLE NAME="customcert_pages" COMMENT="Stores each page of a custom cert">
|
2012-12-07 09:34:46 +00:00
|
|
|
<FIELDS>
|
2015-03-11 23:15:50 +00:00
|
|
|
<FIELD NAME="id" TYPE="int" LENGTH="10" NOTNULL="true" SEQUENCE="true"/>
|
|
|
|
<FIELD NAME="customcertid" TYPE="int" LENGTH="10" NOTNULL="true" DEFAULT="0" SEQUENCE="false"/>
|
|
|
|
<FIELD NAME="width" TYPE="int" LENGTH="10" NOTNULL="true" DEFAULT="0" SEQUENCE="false"/>
|
|
|
|
<FIELD NAME="height" TYPE="int" LENGTH="10" NOTNULL="true" DEFAULT="0" SEQUENCE="false"/>
|
2015-12-08 09:41:38 +00:00
|
|
|
<FIELD NAME="leftmargin" TYPE="int" LENGTH="10" NOTNULL="true" DEFAULT="0" SEQUENCE="false"/>
|
|
|
|
<FIELD NAME="rightmargin" TYPE="int" LENGTH="10" NOTNULL="true" DEFAULT="0" SEQUENCE="false"/>
|
2015-03-11 23:15:50 +00:00
|
|
|
<FIELD NAME="pagenumber" TYPE="int" LENGTH="10" NOTNULL="false" SEQUENCE="false"/>
|
|
|
|
<FIELD NAME="timecreated" TYPE="int" LENGTH="10" NOTNULL="true" DEFAULT="0" SEQUENCE="false"/>
|
|
|
|
<FIELD NAME="timemodified" TYPE="int" LENGTH="10" NOTNULL="true" DEFAULT="0" SEQUENCE="false"/>
|
2012-12-07 09:34:46 +00:00
|
|
|
</FIELDS>
|
|
|
|
<KEYS>
|
2015-03-11 23:15:50 +00:00
|
|
|
<KEY NAME="primary" TYPE="primary" FIELDS="id" COMMENT="Primary key for customcert_pages"/>
|
|
|
|
<KEY NAME="customcert" TYPE="foreign" FIELDS="customcertid" REFTABLE="customcert" REFFIELDS="id"/>
|
2012-12-07 09:34:46 +00:00
|
|
|
</KEYS>
|
|
|
|
</TABLE>
|
2015-03-11 23:15:50 +00:00
|
|
|
<TABLE NAME="customcert_elements" COMMENT="Stores the elements for a given page">
|
2012-12-07 09:34:46 +00:00
|
|
|
<FIELDS>
|
2015-03-11 23:15:50 +00:00
|
|
|
<FIELD NAME="id" TYPE="int" LENGTH="10" NOTNULL="true" SEQUENCE="true"/>
|
|
|
|
<FIELD NAME="pageid" TYPE="int" LENGTH="10" NOTNULL="true" DEFAULT="0" SEQUENCE="false"/>
|
|
|
|
<FIELD NAME="name" TYPE="char" LENGTH="255" NOTNULL="true" SEQUENCE="false"/>
|
|
|
|
<FIELD NAME="element" TYPE="text" LENGTH="big" NOTNULL="true" SEQUENCE="false"/>
|
|
|
|
<FIELD NAME="data" TYPE="text" LENGTH="big" NOTNULL="false" SEQUENCE="false"/>
|
|
|
|
<FIELD NAME="font" TYPE="char" LENGTH="255" NOTNULL="false" SEQUENCE="false"/>
|
|
|
|
<FIELD NAME="size" TYPE="int" LENGTH="10" NOTNULL="false" SEQUENCE="false"/>
|
|
|
|
<FIELD NAME="colour" TYPE="char" LENGTH="50" NOTNULL="false" SEQUENCE="false"/>
|
|
|
|
<FIELD NAME="posx" TYPE="int" LENGTH="10" NOTNULL="false" SEQUENCE="false"/>
|
|
|
|
<FIELD NAME="posy" TYPE="int" LENGTH="10" NOTNULL="false" SEQUENCE="false"/>
|
2015-07-29 01:29:16 +00:00
|
|
|
<FIELD NAME="width" TYPE="int" LENGTH="10" NOTNULL="false" SEQUENCE="false"/>
|
2015-07-30 04:51:50 +00:00
|
|
|
<FIELD NAME="refpoint" TYPE="int" LENGTH="4" NOTNULL="false" SEQUENCE="false"/>
|
2015-03-11 23:15:50 +00:00
|
|
|
<FIELD NAME="sequence" TYPE="int" LENGTH="10" NOTNULL="false" SEQUENCE="false"/>
|
|
|
|
<FIELD NAME="timecreated" TYPE="int" LENGTH="10" NOTNULL="true" DEFAULT="0" SEQUENCE="false"/>
|
|
|
|
<FIELD NAME="timemodified" TYPE="int" LENGTH="10" NOTNULL="true" DEFAULT="0" SEQUENCE="false"/>
|
2012-12-07 09:34:46 +00:00
|
|
|
</FIELDS>
|
|
|
|
<KEYS>
|
2015-03-11 23:15:50 +00:00
|
|
|
<KEY NAME="primary" TYPE="primary" FIELDS="id" COMMENT="Primary key for customcert_elements"/>
|
|
|
|
<KEY NAME="page" TYPE="foreign" FIELDS="pageid" REFTABLE="customcert_pages" REFFIELDS="id"/>
|
2012-12-07 09:34:46 +00:00
|
|
|
</KEYS>
|
|
|
|
</TABLE>
|
2015-03-11 23:15:50 +00:00
|
|
|
<TABLE NAME="customcert_template" COMMENT="Stores each customcert template">
|
2013-05-03 10:51:41 +00:00
|
|
|
<FIELDS>
|
2015-03-11 23:15:50 +00:00
|
|
|
<FIELD NAME="id" TYPE="int" LENGTH="10" NOTNULL="true" SEQUENCE="true"/>
|
|
|
|
<FIELD NAME="name" TYPE="char" LENGTH="40" NOTNULL="false" SEQUENCE="false"/>
|
|
|
|
<FIELD NAME="timecreated" TYPE="int" LENGTH="10" NOTNULL="true" DEFAULT="0" SEQUENCE="false"/>
|
|
|
|
<FIELD NAME="timemodified" TYPE="int" LENGTH="10" NOTNULL="true" DEFAULT="0" SEQUENCE="false"/>
|
2013-05-03 10:51:41 +00:00
|
|
|
</FIELDS>
|
|
|
|
<KEYS>
|
|
|
|
<KEY NAME="primary" TYPE="primary" FIELDS="id" COMMENT="Primary key for customcert_template"/>
|
|
|
|
</KEYS>
|
|
|
|
</TABLE>
|
2015-03-11 23:15:50 +00:00
|
|
|
<TABLE NAME="customcert_template_pages" COMMENT="Stores each page of a customcert template">
|
2013-05-03 10:51:41 +00:00
|
|
|
<FIELDS>
|
2015-03-11 23:15:50 +00:00
|
|
|
<FIELD NAME="id" TYPE="int" LENGTH="10" NOTNULL="true" SEQUENCE="true"/>
|
|
|
|
<FIELD NAME="templateid" TYPE="int" LENGTH="10" NOTNULL="true" DEFAULT="0" SEQUENCE="false"/>
|
|
|
|
<FIELD NAME="width" TYPE="int" LENGTH="10" NOTNULL="true" DEFAULT="0" SEQUENCE="false"/>
|
|
|
|
<FIELD NAME="height" TYPE="int" LENGTH="10" NOTNULL="true" DEFAULT="0" SEQUENCE="false"/>
|
2015-12-08 09:41:38 +00:00
|
|
|
<FIELD NAME="leftmargin" TYPE="int" LENGTH="10" NOTNULL="true" DEFAULT="0" SEQUENCE="false"/>
|
|
|
|
<FIELD NAME="rightmargin" TYPE="int" LENGTH="10" NOTNULL="true" DEFAULT="0" SEQUENCE="false"/>
|
2015-03-11 23:15:50 +00:00
|
|
|
<FIELD NAME="pagenumber" TYPE="int" LENGTH="10" NOTNULL="false" SEQUENCE="false"/>
|
|
|
|
<FIELD NAME="timecreated" TYPE="int" LENGTH="10" NOTNULL="true" DEFAULT="0" SEQUENCE="false"/>
|
|
|
|
<FIELD NAME="timemodified" TYPE="int" LENGTH="10" NOTNULL="true" DEFAULT="0" SEQUENCE="false"/>
|
2013-05-03 10:51:41 +00:00
|
|
|
</FIELDS>
|
|
|
|
<KEYS>
|
2015-03-11 23:15:50 +00:00
|
|
|
<KEY NAME="primary" TYPE="primary" FIELDS="id" COMMENT="Primary key for customcert_template_pages"/>
|
|
|
|
<KEY NAME="template" TYPE="foreign" FIELDS="templateid" REFTABLE="customcert_template" REFFIELDS="id"/>
|
2013-05-03 10:51:41 +00:00
|
|
|
</KEYS>
|
|
|
|
</TABLE>
|
2015-03-11 23:15:50 +00:00
|
|
|
<TABLE NAME="customcert_template_elements" COMMENT="Stores the elements for a given customcert template page">
|
2013-05-03 10:51:41 +00:00
|
|
|
<FIELDS>
|
2015-03-11 23:15:50 +00:00
|
|
|
<FIELD NAME="id" TYPE="int" LENGTH="10" NOTNULL="true" SEQUENCE="true"/>
|
|
|
|
<FIELD NAME="templatepageid" TYPE="int" LENGTH="10" NOTNULL="true" DEFAULT="0" SEQUENCE="false"/>
|
|
|
|
<FIELD NAME="name" TYPE="char" LENGTH="255" NOTNULL="true" SEQUENCE="false"/>
|
|
|
|
<FIELD NAME="element" TYPE="char" LENGTH="255" NOTNULL="true" SEQUENCE="false"/>
|
|
|
|
<FIELD NAME="data" TYPE="text" LENGTH="big" NOTNULL="false" SEQUENCE="false"/>
|
|
|
|
<FIELD NAME="font" TYPE="char" LENGTH="255" NOTNULL="false" SEQUENCE="false"/>
|
|
|
|
<FIELD NAME="size" TYPE="int" LENGTH="10" NOTNULL="false" SEQUENCE="false"/>
|
|
|
|
<FIELD NAME="colour" TYPE="char" LENGTH="50" NOTNULL="false" SEQUENCE="false"/>
|
|
|
|
<FIELD NAME="posx" TYPE="int" LENGTH="10" NOTNULL="false" SEQUENCE="false"/>
|
|
|
|
<FIELD NAME="posy" TYPE="int" LENGTH="10" NOTNULL="false" SEQUENCE="false"/>
|
2015-07-29 01:29:16 +00:00
|
|
|
<FIELD NAME="width" TYPE="int" LENGTH="10" NOTNULL="false" SEQUENCE="false"/>
|
2015-07-30 04:51:50 +00:00
|
|
|
<FIELD NAME="refpoint" TYPE="int" LENGTH="4" NOTNULL="false" SEQUENCE="false"/>
|
2015-03-11 23:15:50 +00:00
|
|
|
<FIELD NAME="sequence" TYPE="int" LENGTH="10" NOTNULL="false" SEQUENCE="false"/>
|
|
|
|
<FIELD NAME="timecreated" TYPE="int" LENGTH="10" NOTNULL="true" DEFAULT="0" SEQUENCE="false"/>
|
|
|
|
<FIELD NAME="timemodified" TYPE="int" LENGTH="10" NOTNULL="true" DEFAULT="0" SEQUENCE="false"/>
|
2013-05-03 10:51:41 +00:00
|
|
|
</FIELDS>
|
|
|
|
<KEYS>
|
2015-03-11 23:15:50 +00:00
|
|
|
<KEY NAME="primary" TYPE="primary" FIELDS="id" COMMENT="Primary key for customcert_template_elements"/>
|
|
|
|
<KEY NAME="templatepage" TYPE="foreign" FIELDS="templatepageid" REFTABLE="customcert_template_pages" REFFIELDS="id"/>
|
2013-05-03 10:51:41 +00:00
|
|
|
</KEYS>
|
|
|
|
</TABLE>
|
2012-12-07 09:34:46 +00:00
|
|
|
</TABLES>
|
|
|
|
</XMLDB>
|