nextcloud/db_structure.xml

594 lines
9.7 KiB
XML
Raw Normal View History

<?xml version="1.0" encoding="ISO-8859-1" ?>
<database>
2011-07-23 00:47:44 +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-07-23 00:47:44 +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>configkey</name>
2011-04-17 12:37:15 +04:00
<type>text</type>
<default></default>
<notnull>true</notnull>
<length>255</length>
</field>
<field>
<name>configvalue</name>
2011-04-17 12:37:15 +04:00
<type>text</type>
<default></default>
<notnull>true</notnull>
<length>255</length>
</field>
</declaration>
</table>
<table>
2011-11-09 21:41:57 +04:00
<name>*dbprefix*fscache</name>
<declaration>
2011-11-09 21:41:57 +04:00
<field>
<name>id</name>
<autoincrement>1</autoincrement>
<type>integer</type>
<default>0</default>
<notnull>true</notnull>
<length>4</length>
</field>
<field>
2011-04-17 12:37:15 +04:00
<name>path</name>
<type>text</type>
<default></default>
<notnull>true</notnull>
2011-07-23 00:47:44 +04:00
<length>512</length>
2011-04-17 12:37:15 +04:00
</field>
2011-11-09 21:41:57 +04:00
<field>
<name>parent</name>
<type>integer</type>
<default>
</default>
<notnull>true</notnull>
<length>4</length>
</field>
<field>
<name>name</name>
<type>text</type>
<default>
</default>
<notnull>true</notnull>
<length>512</length>
</field>
2012-01-31 19:12:38 +04:00
<field>
<name>user</name>
<type>text</type>
<default>
</default>
<notnull>true</notnull>
<length>64</length>
</field>
2011-11-09 21:41:57 +04:00
2011-04-17 12:37:15 +04:00
<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-11-09 21:41:57 +04:00
<field>
<name>ctime</name>
<type>integer</type>
<default>
</default>
<notnull>true</notnull>
<length>4</length>
</field>
<field>
<name>mtime</name>
<type>integer</type>
<default>
</default>
<notnull>true</notnull>
<length>4</length>
</field>
<field>
<name>mimetype</name>
<type>text</type>
<default>
</default>
<notnull>true</notnull>
<length>32</length>
</field>
<field>
<name>mimepart</name>
<type>text</type>
<default>
</default>
<notnull>true</notnull>
<length>32</length>
</field>
<field>
<name>encrypted</name>
<type>integer</type>
<default>0</default>
<notnull>true</notnull>
<length>1</length>
</field>
<field>
<name>versioned</name>
<type>integer</type>
<default>0</default>
<notnull>true</notnull>
<length>1</length>
</field>
2012-01-30 23:29:33 +04:00
<!-- <index>
<name>fscache_path_index</name>
2011-11-09 21:41:57 +04:00
<unique>true</unique>
2011-04-17 12:37:15 +04:00
<field>
<name>path</name>
<sorting>ascending</sorting>
</field>
2012-01-30 23:29:33 +04:00
</index>-->
2011-04-17 12:37:15 +04:00
2011-11-09 21:41:57 +04:00
<index>
<name>parent_index</name>
<field>
<name>parent</name>
<sorting>ascending</sorting>
</field>
</index>
<index>
<name>parent_name_index</name>
<field>
<name>parent</name>
<sorting>ascending</sorting>
</field>
<field>
<name>name</name>
<sorting>ascending</sorting>
</field>
</index>
2011-04-17 12:37:15 +04:00
</declaration>
</table>
<table>
2011-07-23 00:47:44 +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-07-23 00:47:44 +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-07-23 00:47:44 +04:00
<name>*dbprefix*locks</name>
<declaration>
<field>
2011-07-23 00:47:44 +04:00
<name>id</name>
<type>integer</type>
<default>0</default>
<notnull>true</notnull>
2011-07-23 00:47:44 +04:00
<autoincrement>1</autoincrement>
<unsigned>true</unsigned>
<length>4</length>
</field>
<field>
2011-07-23 00:47:44 +04:00
<name>userid</name>
<type>text</type>
<default></default>
2011-07-23 00:47:44 +04:00
<notnull>false</notnull>
<length>200</length>
</field>
<field>
2011-07-23 00:47:44 +04:00
<name>owner</name>
<type>text</type>
<default></default>
<notnull>false</notnull>
<length>100</length>
</field>
<field>
2011-07-23 00:47:44 +04:00
<name>timeout</name>
<type>integer</type>
2011-07-23 00:47:44 +04:00
<default></default>
<notnull>false</notnull>
<unsigned>true</unsigned>
<length>4</length>
</field>
<field>
2011-07-23 00:47:44 +04:00
<name>created</name>
<type>integer</type>
2011-07-23 00:47:44 +04:00
<default></default>
<notnull>false</notnull>
<length>4</length>
</field>
<field>
2011-07-23 00:47:44 +04:00
<name>token</name>
<type>text</type>
<default></default>
<notnull>false</notnull>
2011-07-23 00:47:44 +04:00
<length>100</length>
</field>
<field>
2011-07-23 00:47:44 +04:00
<name>scope</name>
<type>integer</type>
2011-07-23 00:47:44 +04:00
<default></default>
<notnull>false</notnull>
2011-07-23 00:47:44 +04:00
<length>1</length>
</field>
<field>
2011-07-23 00:47:44 +04:00
<name>depth</name>
<type>integer</type>
2011-07-23 00:47:44 +04:00
<default></default>
<notnull>false</notnull>
2011-07-23 00:47:44 +04:00
<length>1</length>
</field>
<field>
2011-07-23 00:47:44 +04:00
<name>uri</name>
<type>clob</type>
<notnull>false</notnull>
</field>
</declaration>
</table>
<table>
2011-07-23 00:47:44 +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>moment</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-07-23 00:47:44 +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>configkey</name>
2011-04-17 12:37:15 +04:00
<type>text</type>
<default></default>
<notnull>true</notnull>
<length>255</length>
</field>
<field>
<name>configvalue</name>
2011-04-17 12:37:15 +04:00
<type>text</type>
<default></default>
<notnull>true</notnull>
<length>255</length>
</field>
</declaration>
</table>
2011-08-07 12:53:39 +04:00
<table>
<name>*dbprefix*principalgroups</name>
<declaration>
<field>
<name>id</name>
<type>integer</type>
<default>0</default>
<notnull>true</notnull>
<autoincrement>1</autoincrement>
<unsigned>true</unsigned>
<length>4</length>
</field>
<field>
<name>principal_id</name>
<type>integer</type>
<default></default>
<notnull>true</notnull>
<unsigned>true</unsigned>
<length>4</length>
</field>
<field>
<name>member_id</name>
<type>integer</type>
<default></default>
<notnull>true</notnull>
<unsigned>true</unsigned>
<length>4</length>
</field>
<index>
<name>principals_members_index</name>
<unique>true</unique>
<field>
<name>principal_id</name>
<sorting>ascending</sorting>
</field>
<field>
<name>member_id</name>
<sorting>ascending</sorting>
</field>
</index>
</declaration>
</table>
<table>
<name>*dbprefix*principals</name>
<declaration>
<field>
<name>id</name>
<type>integer</type>
<default>0</default>
<notnull>true</notnull>
<autoincrement>1</autoincrement>
<unsigned>true</unsigned>
<length>4</length>
</field>
<field>
<name>uri</name>
<type>text</type>
<default></default>
<notnull>false</notnull>
<length>255</length>
</field>
<field>
<name>displayname</name>
<type>text</type>
<default></default>
<notnull>false</notnull>
<length>255</length>
</field>
<index>
<name>uri</name>
<unique>true</unique>
<field>
<name>uri</name>
<sorting>ascending</sorting>
</field>
</index>
</declaration>
</table>
<table>
2011-07-23 00:47:44 +04:00
<name>*dbprefix*properties</name>
<declaration>
<field>
2011-07-23 00:47:44 +04:00
<name>userid</name>
<type>text</type>
<default></default>
<notnull>true</notnull>
2011-07-23 00:47:44 +04:00
<length>200</length>
</field>
<field>
2011-07-23 00:47:44 +04:00
<name>propertypath</name>
<type>text</type>
<default></default>
<notnull>true</notnull>
2011-07-23 00:47:44 +04:00
<length>255</length>
</field>
<field>
2011-07-23 00:47:44 +04:00
<name>propertyname</name>
<type>text</type>
2011-07-23 00:47:44 +04:00
<default></default>
<notnull>true</notnull>
2011-07-23 00:47:44 +04:00
<length>255</length>
</field>
<field>
2011-07-23 00:47:44 +04:00
<name>propertyvalue</name>
<type>clob</type>
2011-07-23 00:47:44 +04:00
<notnull>true</notnull>
</field>
</declaration>
</table>
<table>
2011-07-23 00:47:44 +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>