summaryrefslogtreecommitdiffstats
path: root/db_structure.xml
diff options
context:
space:
mode:
authorTom Needham <needham.thomas@gmail.com>2013-02-04 18:36:39 +0000
committerTom Needham <needham.thomas@gmail.com>2013-02-04 18:36:39 +0000
commit406922fc6a49fc8a46dbfea5186cbfcd44938d3e (patch)
tree768a9f086b971d9295d12be244a024a3926a2c04 /db_structure.xml
parentaec5ab3ad2adc33a32158156a59f4c00606f8be9 (diff)
parent301afac2913e81414140c25bc21ede563563f76e (diff)
downloadnextcloud-server-406922fc6a49fc8a46dbfea5186cbfcd44938d3e.tar.gz
nextcloud-server-406922fc6a49fc8a46dbfea5186cbfcd44938d3e.zip
Merge master
Diffstat (limited to 'db_structure.xml')
-rw-r--r--db_structure.xml214
1 files changed, 169 insertions, 45 deletions
diff --git a/db_structure.xml b/db_structure.xml
index db43ef21140..f4111bfabd0 100644
--- a/db_structure.xml
+++ b/db_structure.xml
@@ -60,125 +60,186 @@
<table>
- <name>*dbprefix*fscache</name>
+ <name>*dbprefix*storages</name>
<declaration>
<field>
<name>id</name>
- <autoincrement>1</autoincrement>
+ <type>text</type>
+ <default></default>
+ <notnull>true</notnull>
+ <length>64</length>
+ </field>
+
+ <field>
+ <name>numeric_id</name>
<type>integer</type>
<default>0</default>
<notnull>true</notnull>
+ <autoincrement>1</autoincrement>
<length>4</length>
</field>
+ <index>
+ <name>storages_id_index</name>
+ <unique>true</unique>
+ <field>
+ <name>id</name>
+ <sorting>ascending</sorting>
+ </field>
+ </index>
+
+ </declaration>
+
+ </table>
+
+ <table>
+
+ <name>*dbprefix*mimetypes</name>
+
+ <declaration>
+
<field>
- <name>path</name>
- <type>text</type>
- <default></default>
+ <name>id</name>
+ <type>integer</type>
+ <default>0</default>
<notnull>true</notnull>
- <length>512</length>
+ <autoincrement>1</autoincrement>
+ <length>4</length>
</field>
<field>
- <name>path_hash</name>
+ <name>mimetype</name>
<type>text</type>
<default></default>
<notnull>true</notnull>
- <length>32</length>
+ <length>255</length>
</field>
+ <index>
+ <name>mimetype_id_index</name>
+ <unique>true</unique>
+ <field>
+ <name>mimetype</name>
+ <sorting>ascending</sorting>
+ </field>
+ </index>
+
+ </declaration>
+
+ </table>
+
+ <table>
+
+ <name>*dbprefix*filecache</name>
+
+ <declaration>
+
<field>
- <name>parent</name>
+ <name>fileid</name>
<type>integer</type>
<default>0</default>
<notnull>true</notnull>
- <length>8</length>
+ <autoincrement>1</autoincrement>
+ <length>4</length>
</field>
<field>
- <name>name</name>
- <type>text</type>
+ <name>storage</name>
+ <type>integer</type>
<default></default>
<notnull>true</notnull>
- <length>300</length>
+ <length>4</length>
</field>
<field>
- <name>user</name>
+ <name>path</name>
<type>text</type>
<default></default>
<notnull>true</notnull>
- <length>64</length>
+ <length>512</length>
</field>
<field>
- <name>size</name>
- <type>integer</type>
- <default>0</default>
+ <name>path_hash</name>
+ <type>text</type>
+ <default></default>
<notnull>true</notnull>
- <length>8</length>
+ <length>32</length>
</field>
<field>
- <name>ctime</name>
+ <name>parent</name>
<type>integer</type>
- <default>0</default>
+ <default></default>
<notnull>true</notnull>
- <length>8</length>
+ <length>4</length>
</field>
<field>
- <name>mtime</name>
- <type>integer</type>
- <default>0</default>
+ <name>name</name>
+ <type>text</type>
+ <default></default>
<notnull>true</notnull>
- <length>8</length>
+ <length>250</length>
</field>
<field>
<name>mimetype</name>
- <type>text</type>
+ <type>integer</type>
<default></default>
<notnull>true</notnull>
- <length>96</length>
+ <length>4</length>
</field>
<field>
<name>mimepart</name>
- <type>text</type>
+ <type>integer</type>
<default></default>
<notnull>true</notnull>
- <length>32</length>
+ <length>4</length>
</field>
<field>
- <name>encrypted</name>
+ <name>size</name>
<type>integer</type>
- <default>0</default>
+ <default></default>
<notnull>true</notnull>
- <length>1</length>
+ <length>4</length>
</field>
<field>
- <name>versioned</name>
+ <name>mtime</name>
<type>integer</type>
- <default>0</default>
+ <default></default>
<notnull>true</notnull>
- <length>1</length>
+ <length>4</length>
</field>
<field>
- <name>writable</name>
+ <name>encrypted</name>
<type>integer</type>
<default>0</default>
<notnull>true</notnull>
- <length>1</length>
+ <length>4</length>
+ </field>
+
+ <field>
+ <name>etag</name>
+ <type>text</type>
+ <default></default>
+ <notnull>true</notnull>
+ <length>40</length>
</field>
<index>
- <name>fscache_path_hash_index</name>
+ <name>fs_storage_path_hash</name>
+ <unique>true</unique>
+ <field>
+ <name>storage</name>
+ <sorting>ascending</sorting>
+ </field>
<field>
<name>path_hash</name>
<sorting>ascending</sorting>
@@ -186,29 +247,84 @@
</index>
<index>
- <name>parent_index</name>
+ <name>fs_parent_name_hash</name>
<field>
<name>parent</name>
<sorting>ascending</sorting>
</field>
+ <field>
+ <name>name</name>
+ <sorting>ascending</sorting>
+ </field>
</index>
<index>
- <name>name_index</name>
+ <name>fs_storage_mimetype</name>
<field>
- <name>name</name>
+ <name>storage</name>
+ <sorting>ascending</sorting>
+ </field>
+ <field>
+ <name>mimetype</name>
<sorting>ascending</sorting>
</field>
</index>
<index>
- <name>parent_name_index</name>
+ <name>fs_storage_mimepart</name>
<field>
- <name>parent</name>
+ <name>storage</name>
<sorting>ascending</sorting>
</field>
<field>
- <name>name</name>
+ <name>mimepart</name>
+ <sorting>ascending</sorting>
+ </field>
+ </index>
+
+ </declaration>
+
+ </table>
+
+ <table>
+
+ <name>*dbprefix*permissions</name>
+
+ <declaration>
+
+ <field>
+ <name>fileid</name>
+ <type>integer</type>
+ <default>0</default>
+ <notnull>true</notnull>
+ <length>4</length>
+ </field>
+
+ <field>
+ <name>user</name>
+ <type>text</type>
+ <default></default>
+ <notnull>true</notnull>
+ <length>64</length>
+ </field>
+
+ <field>
+ <name>permissions</name>
+ <type>integer</type>
+ <default>0</default>
+ <notnull>true</notnull>
+ <length>4</length>
+ </field>
+
+ <index>
+ <name>id_user_index</name>
+ <unique>true</unique>
+ <field>
+ <name>fileid</name>
+ <sorting>ascending</sorting>
+ </field>
+ <field>
+ <name>user</name>
<sorting>ascending</sorting>
</field>
</index>
@@ -680,6 +796,14 @@
</field>
<field>
+ <name>displayname</name>
+ <type>text</type>
+ <default></default>
+ <notnull>true</notnull>
+ <length>64</length>
+ </field>
+
+ <field>
<name>password</name>
<type>text</type>
<default></default>