nextcloud/db_structure.xml

460 lines
7.4 KiB
XML
Raw Normal View History

<?xml version="1.0" encoding="ISO-8859-1" ?>
<database>
2011-04-17 13:09:42 +04:00
<name>*dbname*</name>
<create>true</create>
<overwrite>false</overwrite>
2011-04-17 12:37:15 +04:00
<charset>utf8</charset>
<table>
2011-04-17 12:37:15 +04:00
2011-04-17 13:09:42 +04:00
<name>*dbprefix*appconfig</name>
2011-04-17 12:37:15 +04:00
<declaration>
<field>
<name>appid</name>
<type>text</type>
<default></default>
<notnull>true</notnull>
<length>255</length>
</field>
<field>
<name>key</name>
<type>text</type>
<default></default>
<notnull>true</notnull>
<length>255</length>
</field>
<field>
<name>value</name>
<type>text</type>
<default></default>
<notnull>true</notnull>
<length>255</length>
</field>
</declaration>
</table>
<table>
2011-04-17 13:09:42 +04:00
<name>*dbprefix*foldersize</name>
<declaration>
<field>
2011-04-17 12:37:15 +04:00
<name>path</name>
<type>text</type>
<default></default>
<notnull>true</notnull>
2011-04-17 13:09:42 +04:00
<length>128</length>
2011-04-17 12:37:15 +04:00
</field>
<field>
<name>size</name>
<type>integer</type>
2011-04-17 12:37:15 +04:00
<default></default>
<notnull>true</notnull>
<length>4</length>
</field>
2011-04-17 12:37:15 +04:00
<index>
<name>foldersize_pKey</name>
<primary>true</primary>
<field>
<name>path</name>
<sorting>ascending</sorting>
</field>
</index>
</declaration>
</table>
<table>
2011-04-17 13:09:42 +04:00
<name>*dbprefix*group_user</name>
2011-04-17 12:37:15 +04:00
<declaration>
<field>
<name>gid</name>
<type>text</type>
<default></default>
<notnull>true</notnull>
<length>64</length>
</field>
<field>
<name>uid</name>
<type>text</type>
<default></default>
<notnull>true</notnull>
<length>64</length>
</field>
</declaration>
</table>
<table>
2011-04-17 13:09:42 +04:00
<name>*dbprefix*groups</name>
2011-04-17 12:37:15 +04:00
<declaration>
<field>
2011-04-17 12:37:15 +04:00
<name>gid</name>
<type>text</type>
<default></default>
<notnull>true</notnull>
<length>64</length>
</field>
<index>
2011-04-17 12:37:15 +04:00
<name>groups_pKey</name>
<primary>true</primary>
<field>
2011-04-17 12:37:15 +04:00
<name>gid</name>
<sorting>ascending</sorting>
</field>
</index>
</declaration>
</table>
<table>
2011-04-17 13:09:42 +04:00
<name>*dbprefix*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>
2011-04-17 12:37:15 +04:00
<index>
<name>path</name>
<field>
<name>path</name>
<sorting>ascending</sorting>
</field>
</index>
<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>
2011-04-17 13:09:42 +04:00
<name>*dbprefix*log</name>
<declaration>
<field>
<name>id</name>
<type>integer</type>
<default>0</default>
<notnull>true</notnull>
<autoincrement>1</autoincrement>
2011-04-17 12:37:15 +04:00
<unsigned>true</unsigned>
<length>4</length>
</field>
<field>
<name>timestamp</name>
2011-04-17 12:37:15 +04:00
<type>timestamp</type>
<default>0000-00-00 00:00:00</default>
<notnull>true</notnull>
</field>
<field>
<name>appid</name>
<type>text</type>
<default></default>
<notnull>true</notnull>
2011-04-17 12:37:15 +04:00
<length>255</length>
</field>
<field>
<name>user</name>
<type>text</type>
<default></default>
<notnull>true</notnull>
2011-04-17 12:37:15 +04:00
<length>255</length>
</field>
<field>
2011-04-17 12:37:15 +04:00
<name>action</name>
<type>text</type>
<default></default>
<notnull>true</notnull>
2011-04-17 12:37:15 +04:00
<length>255</length>
</field>
<field>
<name>info</name>
<type>clob</type>
<notnull>true</notnull>
</field>
</declaration>
</table>
<table>
2011-04-17 13:09:42 +04:00
<name>*dbprefix*preferences</name>
2011-04-17 12:37:15 +04:00
<declaration>
<field>
<name>userid</name>
<type>text</type>
<default></default>
<notnull>true</notnull>
<length>255</length>
</field>
<field>
2011-04-17 12:37:15 +04:00
<name>appid</name>
<type>text</type>
<default></default>
<notnull>true</notnull>
2011-04-17 12:37:15 +04:00
<length>255</length>
</field>
<field>
<name>key</name>
<type>text</type>
<default></default>
<notnull>true</notnull>
<length>255</length>
</field>
<field>
<name>value</name>
<type>text</type>
<default></default>
<notnull>true</notnull>
<length>255</length>
</field>
</declaration>
</table>
<table>
2011-04-17 13:09:42 +04:00
<name>*dbprefix*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>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>
2011-04-17 13:09:42 +04:00
<name>*dbprefix*users</name>
<declaration>
<field>
2011-04-17 12:37:15 +04:00
<name>uid</name>
<type>text</type>
<default></default>
<notnull>true</notnull>
<length>64</length>
</field>
<field>
2011-04-17 12:37:15 +04:00
<name>password</name>
<type>text</type>
<default></default>
<notnull>true</notnull>
2011-04-17 12:37:15 +04:00
<length>255</length>
</field>
<index>
2011-04-17 12:37:15 +04:00
<name>users_pKey</name>
<primary>true</primary>
<field>
2011-04-17 12:37:15 +04:00
<name>uid</name>
<sorting>ascending</sorting>
</field>
</index>
</declaration>
</table>
</database>