diff options
author | Robin Appelman <icewind1991@gmail.com> | 2010-06-18 20:08:24 +0200 |
---|---|---|
committer | Robin Appelman <icewind1991@gmail.com> | 2010-06-18 20:08:24 +0200 |
commit | 7503ad139b53de41e3567d723419e49166de574f (patch) | |
tree | 4adf6db30eebcd1e72aff598deb5c5f935540cc0 /db_structure.xml | |
parent | 02ad83b04d79079eac4e0783a83db32ed0dba88b (diff) | |
download | nextcloud-server-7503ad139b53de41e3567d723419e49166de574f.tar.gz nextcloud-server-7503ad139b53de41e3567d723419e49166de574f.zip |
use MDB2_Schema for the creation of the initial database
Diffstat (limited to 'db_structure.xml')
-rwxr-xr-x | db_structure.xml | 381 |
1 files changed, 381 insertions, 0 deletions
diff --git a/db_structure.xml b/db_structure.xml new file mode 100755 index 00000000000..72c63761bc9 --- /dev/null +++ b/db_structure.xml @@ -0,0 +1,381 @@ +<?xml version="1.0" encoding="ISO-8859-1" ?> +<database> + + <name>owncloud</name> + <create>true</create> + <overwrite>false</overwrite> + + <charset>latin1</charset> + + <table> + + <name>groups</name> + + <declaration> + + <field> + <name>group_id</name> + <type>integer</type> + <default>0</default> + <notnull>true</notnull> + <autoincrement>1</autoincrement> + <length>4</length> + </field> + + <field> + <name>group_name</name> + <type>text</type> + <default></default> + <notnull>true</notnull> + <length>64</length> + </field> + + <index> + <name>group_name</name> + <unique>true</unique> + <field> + <name>group_name</name> + <sorting>ascending</sorting> + </field> + </index> + + </declaration> + + </table> + + <table> + + <name>locks</name> + + <declaration> + + <field> + <name>token</name> + <type>text</type> + <default></default> + <notnull>true</notnull> + <length>255</length> + </field> + + <field> + <name>path</name> + <type>text</type> + <default></default> + <notnull>true</notnull> + <length>200</length> + </field> + + <field> + <name>created</name> + <type>integer</type> + <default>0</default> + <notnull>true</notnull> + <length>4</length> + </field> + + <field> + <name>modified</name> + <type>integer</type> + <default>0</default> + <notnull>true</notnull> + <length>4</length> + </field> + + <field> + <name>expires</name> + <type>integer</type> + <default>0</default> + <notnull>true</notnull> + <length>4</length> + </field> + + <field> + <name>owner</name> + <type>text</type> + <default></default> + <notnull>false</notnull> + <length>200</length> + </field> + + <field> + <name>recursive</name> + <type>integer</type> + <default>0</default> + <notnull>false</notnull> + <length>4</length> + </field> + + <field> + <name>writelock</name> + <type>integer</type> + <default>0</default> + <notnull>false</notnull> + <length>4</length> + </field> + + <field> + <name>exclusivelock</name> + <type>integer</type> + <default>0</default> + <notnull>true</notnull> + <length>4</length> + </field> + + <index> + <name>path_2</name> + <field> + <name>path</name> + <sorting>ascending</sorting> + </field> + </index> + + <index> + <name>path_3</name> + <field> + <name>path</name> + <sorting>ascending</sorting> + </field> + <field> + <name>token</name> + <sorting>ascending</sorting> + </field> + </index> + + <index> + <name>expires</name> + <field> + <name>expires</name> + <sorting>ascending</sorting> + </field> + </index> + + <index> + <name>locks_pKey</name> + <primary>true</primary> + <field> + <name>token</name> + <sorting>ascending</sorting> + </field> + </index> + + <index> + <name>token</name> + <unique>true</unique> + <field> + <name>token</name> + <sorting>ascending</sorting> + </field> + </index> + + </declaration> + + </table> + + <table> + + <name>log</name> + + <declaration> + + <field> + <name>id</name> + <type>integer</type> + <default>0</default> + <notnull>true</notnull> + <autoincrement>1</autoincrement> + <length>4</length> + </field> + + <field> + <name>timestamp</name> + <type>integer</type> + <default></default> + <notnull>true</notnull> + <length>4</length> + </field> + + <field> + <name>user</name> + <type>text</type> + <default></default> + <notnull>true</notnull> + <length>250</length> + </field> + + <field> + <name>type</name> + <type>integer</type> + <default></default> + <notnull>true</notnull> + <length>4</length> + </field> + + <field> + <name>message</name> + <type>text</type> + <default></default> + <notnull>true</notnull> + <length>250</length> + </field> + + </declaration> + + </table> + + <table> + + <name>properties</name> + + <declaration> + + <field> + <name>path</name> + <type>text</type> + <default></default> + <notnull>true</notnull> + <length>255</length> + </field> + + <field> + <name>name</name> + <type>text</type> + <default></default> + <notnull>true</notnull> + <length>120</length> + </field> + + <field> + <name>ns</name> + <type>text</type> + <default>DAV:</default> + <notnull>true</notnull> + <length>120</length> + </field> + + <field> + <name>value</name> + <type>clob</type> + <notnull>false</notnull> + </field> + + <index> + <name>path</name> + <field> + <name>path</name> + <sorting>ascending</sorting> + </field> + </index> + + <index> + <name>properties_pKey</name> + <primary>true</primary> + <field> + <name>path</name> + <sorting>ascending</sorting> + </field> + <field> + <name>name</name> + <sorting>ascending</sorting> + </field> + <field> + <name>ns</name> + <sorting>ascending</sorting> + </field> + </index> + + </declaration> + + </table> + + <table> + + <name>user_group</name> + + <declaration> + + <field> + <name>user_group_id</name> + <type>integer</type> + <default>0</default> + <notnull>true</notnull> + <autoincrement>1</autoincrement> + <length>4</length> + </field> + + <field> + <name>user_id</name> + <type>text</type> + <default></default> + <notnull>true</notnull> + <length>64</length> + </field> + + <field> + <name>group_id</name> + <type>text</type> + <default></default> + <notnull>true</notnull> + <length>64</length> + </field> + + </declaration> + + </table> + + <table> + + <name>users</name> + + <declaration> + + <field> + <name>user_id</name> + <type>integer</type> + <default>0</default> + <notnull>true</notnull> + <autoincrement>1</autoincrement> + <length>4</length> + </field> + + <field> + <name>user_name</name> + <type>text</type> + <default></default> + <notnull>true</notnull> + <length>64</length> + </field> + + <field> + <name>user_name_clean</name> + <type>text</type> + <default></default> + <notnull>true</notnull> + <length>64</length> + </field> + + <field> + <name>user_password</name> + <type>text</type> + <default></default> + <notnull>true</notnull> + <length>340</length> + </field> + + <index> + <name>user_name</name> + <unique>true</unique> + <field> + <name>user_name</name> + <sorting>ascending</sorting> + </field> + <field> + <name>user_name_clean</name> + <sorting>ascending</sorting> + </field> + </index> + + </declaration> + + </table> + +</database> |