Commit f1b538b2 authored by Nigel McNie's avatar Nigel McNie Committed by Nigel McNie

Added the user table. At the moment its only fields are for the

auth_internal plugin.
parent 4a3b76b1
......@@ -23,7 +23,7 @@
<KEY NAME="primary" TYPE="primary" FIELDS="field" COMMENT="Primary key for config" />
</KEYS>
</TABLE>
<TABLE NAME="config_artefact" COMMENT="Mahara artefact plugins configuration variables" PREVIOUS="config">
<TABLE NAME="config_artefact" COMMENT="Mahara artefact plugins configuration variables" NEXT="usr" PREVIOUS="config">
<FIELDS>
<FIELD NAME="plugin" TYPE="char" LENGTH="100" NOTNULL="true" SEQUENCE="false" ENUM="false" NEXT="field"/>
<FIELD NAME="field" TYPE="char" LENGTH="100" NOTNULL="true" SEQUENCE="false" ENUM="false" PREVIOUS="plugin" NEXT="value"/>
......@@ -34,5 +34,19 @@
<KEY NAME="pluginfk" TYPE="foreign" FIELDS="plugin" REFTABLE="installed_artefact" REFFIELDS="name" PREVIOUS="primary"/>
</KEYS>
</TABLE>
<TABLE NAME="usr" COMMENT="Basic user information for all system users" PREVIOUS="config_artefact">
<FIELDS>
<FIELD NAME="id" TYPE="int" LENGTH="10" NOTNULL="true" UNSIGNED="false" SEQUENCE="true" ENUM="false" NEXT="username"/>
<FIELD NAME="username" TYPE="char" LENGTH="100" NOTNULL="true" SEQUENCE="false" ENUM="false" PREVIOUS="id" NEXT="password"/>
<FIELD NAME="password" TYPE="char" LENGTH="40" NOTNULL="true" SEQUENCE="false" ENUM="false" PREVIOUS="username" NEXT="salt"/>
<FIELD NAME="salt" TYPE="char" LENGTH="8" NOTNULL="true" SEQUENCE="false" ENUM="false" PREVIOUS="password"/>
</FIELDS>
<KEYS>
<KEY NAME="primary" TYPE="primary" FIELDS="id" COMMENT="Primary key for usr"/>
</KEYS>
<INDEXES>
<INDEX NAME="usernameuk" UNIQUE="true" FIELDS="LOWER(username)"/>
</INDEXES>
</TABLE>
</TABLES>
</XMLDB>
\ No newline at end of file
</XMLDB>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment