Skip to content
Browse files

Initial.

  • Loading branch information...
1 parent 7a55fe0 commit 5a2f8b8dcd621a7cb2354533b4c158409bfae402 les_kopari committed
View
43 lib/db/schemaCourse_groups.xml
@@ -0,0 +1,43 @@
+<?xml version="1.0"?>
+<schema>
+ <table name="course_groups">
+ <field name="id" type="I" size="10">
+ <KEY/>
+ <AUTOINCREMENT/>
+ </field>
+ <field name="courseid" type="I" size="10" default="0">
+ <NOTNULL/>
+ </field>
+ <field name="name" type="C" size="254" default="">
+ <NOTNULL/>
+ </field>
+ <field name="description" type="X">
+ <NOTNULL/>
+ </field>
+ <field name="lang" type="C" size="10" default="en">
+ <NOTNULL/>
+ </field>
+ <field name="picture" type="I" size="10" default="1">
+ <NOTNULL/>
+ </field>
+ <field name="timecreated" type="I" size="10" default="1">
+ <NOTNULL/>
+ </field>
+ <field name="timemodified" type="I" size="10" default="1">
+ <NOTNULL/>
+ </field>
+ </table>
+ <sql>
+ <descr>Insert 1 row for testing only...comment out later</descr>
+ <query platform="postgres|postgres7">
+ insert into course_groups values (1,1,1,1,1,1,1,1)
+ </query>
+ <query platform="mysql">
+ insert into course_groups values (1,1,1,1,1,1,1,1)
+ </query>
+ <query platform="oci8po">
+ insert into course_groups values (1,1,1,1,1,1,1,1)
+ </query>
+ </sql>
+</schema>
+
View
31 lib/db/schemaCourse_groups_members.xml
@@ -0,0 +1,31 @@
+<?xml version="1.0"?>
+<schema>
+ <table name="course_groups_members">
+ <field name="id" type="I" size="10">
+ <KEY/>
+ <AUTOINCREMENT/>
+ </field>
+ <field name="groupid" type="I" size="10" default="0">
+ <NOTNULL/>
+ </field>
+ <field name="userid" type="I" size="10" default="0">
+ <NOTNULL/>
+ </field>
+ <field name="timeadded" type="I" size="10" default="0">
+ <NOTNULL/>
+ </field>
+ </table>
+ <sql>
+ <descr>Insert 1 row for testing only...comment out later</descr>
+ <query platform="postgres|postgres7">
+ insert into course_groups_members values (1,1,1,1)
+ </query>
+ <query platform="mysql">
+ insert into course_groups_members values (1,1,1,1)
+ </query>
+ <query platform="oci8po">
+ insert into course_groups_members values (1,1,1,1)
+ </query>
+ </sql>
+</schema>
+
View
49 lib/db/schemaCourse_modules.xml
@@ -0,0 +1,49 @@
+<?xml version="1.0"?>
+<schema>
+ <table name="course_modules">
+ <field name="id" type="I" size="10">
+ <KEY/>
+ <AUTOINCREMENT/>
+ </field>
+ <field name="course" type="I" size="10">
+ <NOTNULL/>
+ </field>
+ <field name="module" type="I" size="10">
+ <NOTNULL/>
+ </field>
+ <field name="instance" type="I" size="10">
+ <NOTNULL/>
+ </field>
+ <field name="section" type="I" size="10">
+ <NOTNULL/>
+ </field>
+ <field name="added" type="I" size="10">
+ <NOTNULL/>
+ </field>
+ <field name="deleted" type="L" size="4">
+ <NOTNULL/>
+ </field>
+ <field name="score" type="L" size="4">
+ <NOTNULL/>
+ </field>
+ <field name="indent" type="I" size="5">
+ <NOTNULL/>
+ </field>
+ <field name="visible" type="L" size="1">
+ <NOTNULL/>
+ </field>
+ </table>
+ <sql>
+ <descr>Insert 1 row for testing only...comment out later</descr>
+ <query platform="postgres|postgres7">
+ insert into course_modules values (1,1,1,1,1,1,1,1,1,1)
+ </query>
+ <query platform="mysql">
+ insert into course_modules values (1,1,1,1,1,1,1,1,1,1)
+ </query>
+ <query platform="oci8po">
+ insert into course_modules values (1,1,1,1,1,1,1,1,1,1)
+ </query>
+ </sql>
+</schema>
+
View
37 lib/db/schemaCourse_sections.xml
@@ -0,0 +1,37 @@
+<?xml version="1.0"?>
+<schema>
+ <table name="course_sections">
+ <field name="id" type="I" size="10">
+ <KEY/>
+ <AUTOINCREMENT/>
+ </field>
+ <field name="course" type="I" size="10">
+ <NOTNULL/>
+ </field>
+ <field name="section" type="I" size="10">
+ <NOTNULL/>
+ </field>
+ <field name="summary" type="X">
+ <NOTNULL/>
+ </field>
+ <field name="sequence" type="X" default="">
+ <NOTNULL/>
+ </field>
+ <field name="visible" type="L" size="1" default="1">
+ <NOTNULL/>
+ </field>
+ </table>
+ <sql>
+ <descr>Insert 1 row for testing only...comment out later</descr>
+ <query platform="postgres|postgres7">
+ insert into course_sections values (1,1,1,1,1,1)
+ </query>
+ <query platform="mysql">
+ insert into course_sections values (1,1,1,1,1,1)
+ </query>
+ <query platform="oci8po">
+ insert into course_sections values (1,1,1,1,1,1)
+ </query>
+ </sql>
+</schema>
+
View
1,515 lib/db/schemaExecutionListing.html
1,515 additions, 0 deletions not shown because the diff is too large. Please use a local Git client to view these changes.
View
46 lib/db/schemaLog.xml
@@ -0,0 +1,46 @@
+<?xml version="1.0"?>
+<schema>
+ <table name="log">
+ <field name="id" type="I" size="10">
+ <KEY/>
+ <AUTOINCREMENT/>
+ </field>
+ <field name="time" type="I" size="10" default="0">
+ <NOTNULL/>
+ </field>
+ <field name="userid" type="I" size="10" default="0">
+ <NOTNULL/>
+ </field>
+ <field name="ip" type="C" size="15" default="">
+ <NOTNULL/>
+ </field>
+ <field name="course" type="I" size="10" default="0">
+ <NOTNULL/>
+ </field>
+ <field name="module" type="C" size="10" default="0">
+ <NOTNULL/>
+ </field>
+ <field name="action" type="C" size="15" default="0">
+ <NOTNULL/>
+ </field>
+ <field name="url" type="C" size="100" default="0">
+ <NOTNULL/>
+ </field>
+ <field name="info" type="C" size="255" default="">
+ <NOTNULL/>
+ </field>
+ </table>
+ <sql>
+ <descr>Insert 1 row for testing only...comment out later</descr>
+ <query platform="postgres|postgres7">
+ insert into log values (1,1,1,1,1,1,1,1,1)
+ </query>
+ <query platform="mysql">
+ insert into log values (1,1,1,1,1,1,1,1,1)
+ </query>
+ <query platform="oci8po">
+ insert into log values (1,1,1,1,1,1,1,1,1)
+ </query>
+ </sql>
+</schema>
+
View
30 lib/db/schemaLog_display.xml
@@ -0,0 +1,30 @@
+<?xml version="1.0"?>
+<schema>
+ <table name="log_display">
+ <field name="module" type="C" size="20" default="">
+ <NOTNULL/>
+ </field>
+ <field name="action" type="C" size="20" default="">
+ <NOTNULL/>
+ </field>
+ <field name="mtable" type="C" size="20" default="">
+ <NOTNULL/>
+ </field>
+ <field name="field" type="C" size="40" default="">
+ <NOTNULL/>
+ </field>
+ </table>
+ <sql>
+ <descr>Insert 1 row for testing only...comment out later</descr>
+ <query platform="postgres|postgres7">
+ insert into log_display values (1,1,1,1)
+ </query>
+ <query platform="mysql">
+ insert into log_display values (1,1,1,1)
+ </query>
+ <query platform="oci8po">
+ insert into log_display values (1,1,1,1)
+ </query>
+ </sql>
+</schema>
+
View
40 lib/db/schemaModules.xml
@@ -0,0 +1,40 @@
+<?xml version="1.0"?>
+<schema>
+ <table name="modules">
+ <field name="id" type="I" size="10">
+ <KEY/>
+ <AUTOINCREMENT/>
+ </field>
+ <field name="name" type="C" size="20" default="">
+ <NOTNULL/>
+ </field>
+ <field name="version" type="I" size="10" default="0">
+ <NOTNULL/>
+ </field>
+ <field name="cron" type="I" size="10" default="0">
+ <NOTNULL/>
+ </field>
+ <field name="lastcron" type="I" size="10" default="0">
+ <NOTNULL/>
+ </field>
+ <field name="search" type="C" size="255" default="">
+ <NOTNULL/>
+ </field>
+ <field name="visible" type="L" size="1" default="1">
+ <NOTNULL/>
+ </field>
+ </table>
+ <sql>
+ <descr>Insert 1 row for testing only...comment out later</descr>
+ <query platform="postgres|postgres7">
+ insert into modules values (1,1,1,1,1,1,1)
+ </query>
+ <query platform="mysql">
+ insert into modules values (1,1,1,1,1,1,1)
+ </query>
+ <query platform="oci8po">
+ insert into modules values (1,1,1,1,1,1,1)
+ </query>
+ </sql>
+</schema>
+
View
40 lib/db/schemaScale.xml
@@ -0,0 +1,40 @@
+<?xml version="1.0"?>
+<schema>
+ <table name="scale">
+ <field name="id" type="I" size="10">
+ <KEY/>
+ <AUTOINCREMENT/>
+ </field>
+ <field name="courseid" type="I" size="10" default="0">
+ <NOTNULL/>
+ </field>
+ <field name="userid" type="I" size="10" default="0">
+ <NOTNULL/>
+ </field>
+ <field name="name" type="C" size="255" default="">
+ <NOTNULL/>
+ </field>
+ <field name="scale" type="X">
+ <NOTNULL/>
+ </field>
+ <field name="description" type="X">
+ <NOTNULL/>
+ </field>
+ <field name="timemodified" type="I" size="10" default="0">
+ <NOTNULL/>
+ </field>
+ </table>
+ <sql>
+ <descr>Insert 1 row for testing only...comment out later</descr>
+ <query platform="postgres|postgres7">
+ insert into scale values (1,1,1,1,1,1,1)
+ </query>
+ <query platform="mysql">
+ insert into scale values (1,1,1,1,1,1,1)
+ </query>
+ <query platform="oci8po">
+ insert into scale values (1,1,1,1,1,1,1)
+ </query>
+ </sql>
+</schema>
+
View
106 lib/db/schemaUser.xml
@@ -0,0 +1,106 @@
+<?xml version="1.0"?>
+<schema>
+ <table name="m_user">
+ <field name="id" type="I" size="10">
+ <KEY/>
+ <AUTOINCREMENT/>
+ </field>
+ <field name="confirmed" type="L" size="1" default="0">
+ <NOTNULL/>
+ </field>
+ <field name="deleted" type="L" size="1" default="0">
+ <NOTNULL/>
+ </field>
+ <field name="username" type="C" size="100" default="">
+ <NOTNULL/>
+ </field>
+ <field name="password" type="C" size="32" default="">
+ <NOTNULL/>
+ </field>
+ <field name="idnumber" type="C" size="12" default="">
+ <NOTNULL/>
+ </field>
+ <field name="firstname" type="C" size="20" default="">
+ <NOTNULL/>
+ </field>
+ <field name="lastname" type="C" size="20" default="">
+ <NOTNULL/>
+ </field>
+ <field name="email" type="C" size="100" default="">
+ <NOTNULL/>
+ </field>
+ <field name="icq" type="C" size="15" default="">
+ </field>
+ <field name="phone1" type="C" size="20" default="">
+ </field>
+ <field name="phone2" type="C" size="20" default="">
+ </field>
+ <field name="institution" type="C" size="40" default="">
+ </field>
+ <field name="department" type="C" size="30" default="">
+ </field>
+ <field name="address" type="C" size="70" default="">
+ </field>
+ <field name="city" type="C" size="20" default="">
+ </field>
+ <field name="country" type="C" size="20" default="">
+ </field>
+ <field name="lang" type="C" size="5" default="en">
+ <NOTNULL/>
+ </field>
+ <field name="timezone" type="F" default="99">
+ <NOTNULL/>
+ </field>
+ <field name="firstaccess" type="I" size="10" default="">
+ <NOTNULL/>
+ </field>
+ <field name="lastaccess" type="I" size="10" default="">
+ <NOTNULL/>
+ </field>
+ <field name="lastlogin" type="I" size="10" default="">
+ <NOTNULL/>
+ </field>
+ <field name="currentlogin" type="I" size="10" default="">
+ <NOTNULL/>
+ </field>
+ <field name="lastIP" type="C" size="15" default="">
+ </field>
+ <field name="secret" type="C" size="15" default="">
+ <NOTNULL/>
+ </field>
+ <field name="picture" type="L" size="1" >
+ </field>
+ <field name="url" type="C" size="100" default="">
+ </field>
+ <field name="description" type="X">
+ <NOTNULL/>
+ </field>
+ <field name="mailformat" type="L" size="1" default="0">
+ <NOTNULL/>
+ </field>
+ <field name="maildisplay" type="L" size="1" default="0">
+ <NOTNULL/>
+ </field>
+ <field name="htmleditor" type="L" size="1" default="0">
+ <NOTNULL/>
+ </field>
+ <field name="autosubscribe" type="L" size="1" default="0">
+ <NOTNULL/>
+ </field>
+ <field name="timemodified" type="I" size="10" default="1">
+ <NOTNULL/>
+ </field>
+ </table>
+ <sql>
+ <descr>Insert 1 row for testing only...comment out later</descr>
+ <query platform="postgres|postgres7">
+ insert into m_user values (1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1)
+ </query>
+ <query platform="mysql">
+ insert into m_user values (1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1)
+ </query>
+ <query platform="oci8po">
+ insert into m_user values (1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1)
+ </query>
+ </sql>
+</schema>
View
24 lib/db/schemaUser_admins.xml
@@ -0,0 +1,24 @@
+<?xml version="1.0"?>
+<schema>
+ <table name="user_admins">
+ <field name="id" type="I" size="10">
+ <KEY/>
+ <AUTOINCREMENT/>
+ </field>
+ <field name="userid" type="I" size="10" default="0">
+ <NOTNULL/>
+ </field>
+ </table>
+ <sql>
+ <descr>Insert 1 row for testing only...comment out later</descr>
+ <query platform="postgres|postgres7">
+ insert into user_admins values (1,1)
+ </query>
+ <query platform="mysql">
+ insert into user_admins values (1,1)
+ </query>
+ <query platform="oci8po">
+ insert into user_admins values (1,1)
+ </query>
+ </sql>
+</schema>

0 comments on commit 5a2f8b8

Please sign in to comment.
Something went wrong with that request. Please try again.