2012-08-27 15:35:04 +04:00
|
|
|
<?xml version="1.0" encoding="utf-8" ?>
|
2010-06-18 22:08:24 +04:00
|
|
|
<database>
|
|
|
|
|
2012-09-19 22:58:42 +04:00
|
|
|
<name>*dbname*</name>
|
|
|
|
<create>true</create>
|
|
|
|
<overwrite>false</overwrite>
|
|
|
|
|
|
|
|
<charset>utf8</charset>
|
|
|
|
|
|
|
|
<table>
|
|
|
|
|
2013-11-26 21:39:19 +04:00
|
|
|
<!--
|
|
|
|
Namespaced Key-Value Store for Application Configuration.
|
2013-11-26 23:27:51 +04:00
|
|
|
- Keys are namespaced per appid.
|
|
|
|
- E.g. (core, global_cache_gc_lastrun) -> 1385463286
|
2013-11-26 21:39:19 +04:00
|
|
|
-->
|
2012-09-19 22:58:42 +04:00
|
|
|
<name>*dbprefix*appconfig</name>
|
|
|
|
|
|
|
|
<declaration>
|
|
|
|
|
|
|
|
<field>
|
|
|
|
<name>appid</name>
|
|
|
|
<type>text</type>
|
|
|
|
<default></default>
|
|
|
|
<notnull>true</notnull>
|
2012-09-28 00:49:01 +04:00
|
|
|
<length>32</length>
|
2012-09-19 22:58:42 +04:00
|
|
|
</field>
|
|
|
|
|
|
|
|
<field>
|
|
|
|
<name>configkey</name>
|
|
|
|
<type>text</type>
|
|
|
|
<default></default>
|
|
|
|
<notnull>true</notnull>
|
2012-09-28 00:49:01 +04:00
|
|
|
<length>64</length>
|
2012-09-19 22:58:42 +04:00
|
|
|
</field>
|
|
|
|
|
|
|
|
<field>
|
|
|
|
<name>configvalue</name>
|
|
|
|
<type>clob</type>
|
2013-08-09 13:27:21 +04:00
|
|
|
<notnull>false</notnull>
|
2012-09-19 22:58:42 +04:00
|
|
|
</field>
|
|
|
|
|
2012-09-19 23:05:39 +04:00
|
|
|
<index>
|
|
|
|
<name>appconfig_appid_key_index</name>
|
2013-03-19 04:35:12 +04:00
|
|
|
<primary>true</primary>
|
|
|
|
<unique>true</unique>
|
2012-09-19 23:05:39 +04:00
|
|
|
<field>
|
|
|
|
<name>appid</name>
|
|
|
|
<sorting>ascending</sorting>
|
|
|
|
</field>
|
|
|
|
<field>
|
|
|
|
<name>configkey</name>
|
|
|
|
<sorting>ascending</sorting>
|
|
|
|
</field>
|
|
|
|
</index>
|
2012-11-24 23:58:51 +04:00
|
|
|
<index>
|
|
|
|
<name>appconfig_config_key_index</name>
|
|
|
|
<field>
|
|
|
|
<name>configkey</name>
|
|
|
|
<sorting>ascending</sorting>
|
|
|
|
</field>
|
|
|
|
</index>
|
2013-12-18 18:13:27 +04:00
|
|
|
<index>
|
|
|
|
<name>appconfig_appid_key</name>
|
|
|
|
<field>
|
|
|
|
<name>appid</name>
|
|
|
|
<sorting>ascending</sorting>
|
|
|
|
</field>
|
|
|
|
</index>
|
2012-09-19 23:05:39 +04:00
|
|
|
|
2012-09-19 22:58:42 +04:00
|
|
|
</declaration>
|
|
|
|
|
|
|
|
</table>
|
|
|
|
|
2012-12-16 02:28:07 +04:00
|
|
|
<table>
|
2013-11-27 01:16:14 +04:00
|
|
|
|
2013-11-26 21:57:39 +04:00
|
|
|
<!--
|
|
|
|
Bidirectional Map for Storage Names and Storage Ids.
|
2013-11-26 23:27:51 +04:00
|
|
|
- Assigns each storage name a unique storage id integer.
|
|
|
|
- Long storage names are hashed.
|
|
|
|
- E.g. local::/tmp/ <-> 2
|
|
|
|
- E.g. b5db994aa8c6625100e418406c798269 <-> 27
|
2013-11-26 21:57:39 +04:00
|
|
|
-->
|
2012-12-16 02:28:07 +04:00
|
|
|
<name>*dbprefix*storages</name>
|
|
|
|
|
|
|
|
<declaration>
|
|
|
|
|
|
|
|
<field>
|
|
|
|
<name>id</name>
|
|
|
|
<type>text</type>
|
|
|
|
<default></default>
|
2013-06-03 20:28:48 +04:00
|
|
|
<notnull>false</notnull>
|
2012-12-16 02:28:07 +04:00
|
|
|
<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>
|
|
|
|
|
2015-01-24 00:53:21 +03:00
|
|
|
<field>
|
|
|
|
<name>available</name>
|
2015-09-11 00:01:02 +03:00
|
|
|
<type>integer</type>
|
|
|
|
<default>1</default>
|
2015-01-24 00:53:21 +03:00
|
|
|
<notnull>true</notnull>
|
|
|
|
</field>
|
|
|
|
|
|
|
|
<field>
|
|
|
|
<name>last_checked</name>
|
|
|
|
<type>integer</type>
|
|
|
|
</field>
|
|
|
|
|
2012-12-16 02:28:07 +04:00
|
|
|
<index>
|
|
|
|
<name>storages_id_index</name>
|
|
|
|
<unique>true</unique>
|
|
|
|
<field>
|
|
|
|
<name>id</name>
|
|
|
|
<sorting>ascending</sorting>
|
|
|
|
</field>
|
|
|
|
</index>
|
|
|
|
|
|
|
|
</declaration>
|
|
|
|
|
|
|
|
</table>
|
|
|
|
|
2015-11-26 19:47:53 +03:00
|
|
|
<!-- a list of all mounted storage per user, populated on filesystem setup -->
|
|
|
|
<table>
|
|
|
|
|
|
|
|
<name>*dbprefix*mounts</name>
|
|
|
|
|
|
|
|
<declaration>
|
|
|
|
|
|
|
|
<field>
|
|
|
|
<name>id</name>
|
|
|
|
<type>integer</type>
|
|
|
|
<default>0</default>
|
|
|
|
<notnull>true</notnull>
|
|
|
|
<autoincrement>1</autoincrement>
|
|
|
|
<length>4</length>
|
|
|
|
</field>
|
|
|
|
|
|
|
|
<field>
|
|
|
|
<name>storage_id</name>
|
|
|
|
<type>integer</type>
|
|
|
|
<notnull>true</notnull>
|
|
|
|
</field>
|
|
|
|
|
|
|
|
<!-- fileid of the root of the mount, foreign key: oc_filecache.fileid -->
|
|
|
|
<field>
|
|
|
|
<name>root_id</name>
|
|
|
|
<type>integer</type>
|
|
|
|
<notnull>true</notnull>
|
|
|
|
</field>
|
|
|
|
|
|
|
|
<field>
|
|
|
|
<name>user_id</name>
|
|
|
|
<type>text</type>
|
|
|
|
<notnull>true</notnull>
|
|
|
|
<length>64</length>
|
|
|
|
</field>
|
|
|
|
|
|
|
|
<field>
|
|
|
|
<name>mount_point</name>
|
|
|
|
<type>text</type>
|
|
|
|
<notnull>true</notnull>
|
|
|
|
<length>4000</length>
|
|
|
|
</field>
|
|
|
|
|
2016-07-13 17:29:51 +03:00
|
|
|
<field>
|
|
|
|
<name>mount_id</name>
|
|
|
|
<type>integer</type>
|
|
|
|
</field>
|
|
|
|
|
2015-11-26 19:47:53 +03:00
|
|
|
<index>
|
|
|
|
<name>mounts_user_index</name>
|
|
|
|
<unique>false</unique>
|
|
|
|
<field>
|
|
|
|
<name>user_id</name>
|
|
|
|
<sorting>ascending</sorting>
|
|
|
|
</field>
|
|
|
|
</index>
|
|
|
|
|
|
|
|
<index>
|
|
|
|
<name>mounts_storage_index</name>
|
|
|
|
<unique>false</unique>
|
|
|
|
<field>
|
|
|
|
<name>storage_id</name>
|
|
|
|
<sorting>ascending</sorting>
|
|
|
|
</field>
|
|
|
|
</index>
|
|
|
|
|
|
|
|
<index>
|
|
|
|
<name>mounts_root_index</name>
|
|
|
|
<unique>false</unique>
|
|
|
|
<field>
|
|
|
|
<name>root_id</name>
|
|
|
|
<sorting>ascending</sorting>
|
|
|
|
</field>
|
|
|
|
</index>
|
|
|
|
|
2016-07-13 17:29:51 +03:00
|
|
|
<index>
|
|
|
|
<name>mounts_mount_id_index</name>
|
|
|
|
<unique>false</unique>
|
|
|
|
<field>
|
|
|
|
<name>mount_id</name>
|
|
|
|
<sorting>ascending</sorting>
|
|
|
|
</field>
|
|
|
|
</index>
|
|
|
|
|
2015-11-26 19:47:53 +03:00
|
|
|
<index>
|
|
|
|
<name>mounts_user_root_index</name>
|
|
|
|
<unique>true</unique>
|
|
|
|
<field>
|
|
|
|
<name>user_id</name>
|
|
|
|
<sorting>ascending</sorting>
|
|
|
|
</field>
|
|
|
|
<field>
|
|
|
|
<name>root_id</name>
|
|
|
|
<sorting>ascending</sorting>
|
|
|
|
</field>
|
|
|
|
</index>
|
|
|
|
|
|
|
|
</declaration>
|
|
|
|
|
|
|
|
</table>
|
|
|
|
|
2013-01-07 04:40:09 +04:00
|
|
|
<table>
|
2013-11-27 01:16:14 +04:00
|
|
|
|
2013-11-26 22:30:59 +04:00
|
|
|
<!--
|
|
|
|
Bidirectional Map for Mimetypes and Mimetype Id
|
2013-11-26 23:27:51 +04:00
|
|
|
- Assigns each mimetype (and supertype) a unique mimetype id integer.
|
|
|
|
- E.g. application <-> 5
|
|
|
|
- E.g. application/pdf <-> 6
|
2013-11-26 22:30:59 +04:00
|
|
|
-->
|
2013-01-07 04:40:09 +04:00
|
|
|
<name>*dbprefix*mimetypes</name>
|
|
|
|
|
|
|
|
<declaration>
|
|
|
|
|
|
|
|
<field>
|
|
|
|
<name>id</name>
|
|
|
|
<type>integer</type>
|
|
|
|
<default>0</default>
|
|
|
|
<notnull>true</notnull>
|
|
|
|
<autoincrement>1</autoincrement>
|
|
|
|
<length>4</length>
|
|
|
|
</field>
|
|
|
|
|
|
|
|
<field>
|
|
|
|
<name>mimetype</name>
|
|
|
|
<type>text</type>
|
|
|
|
<default></default>
|
|
|
|
<notnull>true</notnull>
|
2013-01-10 07:57:42 +04:00
|
|
|
<length>255</length>
|
2013-01-07 04:40:09 +04:00
|
|
|
</field>
|
|
|
|
|
|
|
|
<index>
|
|
|
|
<name>mimetype_id_index</name>
|
|
|
|
<unique>true</unique>
|
|
|
|
<field>
|
|
|
|
<name>mimetype</name>
|
|
|
|
<sorting>ascending</sorting>
|
|
|
|
</field>
|
|
|
|
</index>
|
|
|
|
|
|
|
|
</declaration>
|
|
|
|
|
|
|
|
</table>
|
|
|
|
|
2012-09-19 22:58:42 +04:00
|
|
|
<table>
|
2013-11-27 01:16:14 +04:00
|
|
|
|
2013-11-26 23:27:18 +04:00
|
|
|
<!--
|
|
|
|
Main file table containing one row for each directory and file.
|
|
|
|
- Assigns a unique integer fileid to each file (and directory)
|
|
|
|
- Assigns an etag to each file (and directory)
|
|
|
|
- Caches various file/dir properties such as:
|
|
|
|
- path (filename, e.g. files/combinatoricslib-2.0_doc.zip)
|
|
|
|
- path_hash = md5(path)
|
|
|
|
- name (basename, e.g. combinatoricslib-2.0_doc.zip)
|
|
|
|
- size (for directories this is the sum of all contained file sizes)
|
|
|
|
-->
|
2012-10-03 01:46:35 +04:00
|
|
|
<name>*dbprefix*filecache</name>
|
2012-09-19 22:58:42 +04:00
|
|
|
|
|
|
|
<declaration>
|
|
|
|
|
|
|
|
<field>
|
2012-10-03 01:46:35 +04:00
|
|
|
<name>fileid</name>
|
2012-09-19 22:58:42 +04:00
|
|
|
<type>integer</type>
|
|
|
|
<default>0</default>
|
|
|
|
<notnull>true</notnull>
|
2012-10-03 01:46:35 +04:00
|
|
|
<autoincrement>1</autoincrement>
|
2012-09-19 22:58:42 +04:00
|
|
|
<length>4</length>
|
|
|
|
</field>
|
|
|
|
|
2013-11-26 23:42:15 +04:00
|
|
|
<!-- Foreign Key storages::numeric_id -->
|
2012-10-03 01:46:35 +04:00
|
|
|
<field>
|
|
|
|
<name>storage</name>
|
2012-12-16 02:28:07 +04:00
|
|
|
<type>integer</type>
|
2012-10-03 01:46:35 +04:00
|
|
|
<default></default>
|
|
|
|
<notnull>true</notnull>
|
2012-12-16 02:28:07 +04:00
|
|
|
<length>4</length>
|
2012-10-03 01:46:35 +04:00
|
|
|
</field>
|
|
|
|
|
2012-09-19 22:58:42 +04:00
|
|
|
<field>
|
|
|
|
<name>path</name>
|
|
|
|
<type>text</type>
|
|
|
|
<default></default>
|
2013-06-03 20:28:48 +04:00
|
|
|
<notnull>false</notnull>
|
2014-05-08 17:19:54 +04:00
|
|
|
<length>4000</length>
|
2012-09-19 22:58:42 +04:00
|
|
|
</field>
|
|
|
|
|
|
|
|
<field>
|
|
|
|
<name>path_hash</name>
|
|
|
|
<type>text</type>
|
|
|
|
<default></default>
|
|
|
|
<notnull>true</notnull>
|
|
|
|
<length>32</length>
|
|
|
|
</field>
|
|
|
|
|
2013-11-26 23:42:15 +04:00
|
|
|
<!-- Foreign Key filecache::fileid -->
|
2012-09-19 22:58:42 +04:00
|
|
|
<field>
|
|
|
|
<name>parent</name>
|
|
|
|
<type>integer</type>
|
|
|
|
<default></default>
|
|
|
|
<notnull>true</notnull>
|
2012-10-03 01:46:35 +04:00
|
|
|
<length>4</length>
|
2012-09-19 22:58:42 +04:00
|
|
|
</field>
|
|
|
|
|
|
|
|
<field>
|
2012-10-03 01:46:35 +04:00
|
|
|
<name>name</name>
|
2012-09-19 22:58:42 +04:00
|
|
|
<type>text</type>
|
|
|
|
<default></default>
|
2013-06-03 20:28:48 +04:00
|
|
|
<notnull>false</notnull>
|
2012-10-03 01:46:35 +04:00
|
|
|
<length>250</length>
|
2012-09-19 22:58:42 +04:00
|
|
|
</field>
|
|
|
|
|
2013-11-26 23:42:15 +04:00
|
|
|
<!-- Foreign Key mimetypes::id -->
|
2012-09-19 22:58:42 +04:00
|
|
|
<field>
|
|
|
|
<name>mimetype</name>
|
2013-01-07 04:40:09 +04:00
|
|
|
<type>integer</type>
|
2012-09-19 22:58:42 +04:00
|
|
|
<default></default>
|
|
|
|
<notnull>true</notnull>
|
2013-01-07 04:40:09 +04:00
|
|
|
<length>4</length>
|
2012-09-19 22:58:42 +04:00
|
|
|
</field>
|
|
|
|
|
2013-11-26 23:42:15 +04:00
|
|
|
<!-- Foreign Key mimetypes::id -->
|
2012-09-19 22:58:42 +04:00
|
|
|
<field>
|
|
|
|
<name>mimepart</name>
|
2013-01-07 04:40:09 +04:00
|
|
|
<type>integer</type>
|
2012-09-19 22:58:42 +04:00
|
|
|
<default></default>
|
|
|
|
<notnull>true</notnull>
|
2013-01-07 04:40:09 +04:00
|
|
|
<length>4</length>
|
2012-09-19 22:58:42 +04:00
|
|
|
</field>
|
|
|
|
|
|
|
|
<field>
|
2012-10-03 01:46:35 +04:00
|
|
|
<name>size</name>
|
2012-09-19 22:58:42 +04:00
|
|
|
<type>integer</type>
|
2012-10-03 01:46:35 +04:00
|
|
|
<default></default>
|
2012-09-19 22:58:42 +04:00
|
|
|
<notnull>true</notnull>
|
2013-02-10 19:44:00 +04:00
|
|
|
<length>8</length>
|
2012-09-19 22:58:42 +04:00
|
|
|
</field>
|
|
|
|
|
|
|
|
<field>
|
2012-10-03 01:46:35 +04:00
|
|
|
<name>mtime</name>
|
2012-09-19 22:58:42 +04:00
|
|
|
<type>integer</type>
|
2012-10-03 01:46:35 +04:00
|
|
|
<default></default>
|
2012-09-19 22:58:42 +04:00
|
|
|
<notnull>true</notnull>
|
2012-10-03 01:46:35 +04:00
|
|
|
<length>4</length>
|
2012-09-19 22:58:42 +04:00
|
|
|
</field>
|
|
|
|
|
2013-02-10 15:05:41 +04:00
|
|
|
<field>
|
|
|
|
<name>storage_mtime</name>
|
|
|
|
<type>integer</type>
|
|
|
|
<default></default>
|
|
|
|
<notnull>true</notnull>
|
|
|
|
<length>4</length>
|
|
|
|
</field>
|
|
|
|
|
2012-09-19 22:58:42 +04:00
|
|
|
<field>
|
2012-10-03 01:46:35 +04:00
|
|
|
<name>encrypted</name>
|
2012-09-19 22:58:42 +04:00
|
|
|
<type>integer</type>
|
|
|
|
<default>0</default>
|
|
|
|
<notnull>true</notnull>
|
2012-10-03 01:46:35 +04:00
|
|
|
<length>4</length>
|
2012-09-19 22:58:42 +04:00
|
|
|
</field>
|
|
|
|
|
2013-04-25 17:20:06 +04:00
|
|
|
<field>
|
|
|
|
<name>unencrypted_size</name>
|
|
|
|
<type>integer</type>
|
2013-09-20 22:47:24 +04:00
|
|
|
<default>0</default>
|
2013-04-25 17:20:06 +04:00
|
|
|
<notnull>true</notnull>
|
|
|
|
<length>8</length>
|
|
|
|
</field>
|
|
|
|
|
2012-12-31 01:32:55 +04:00
|
|
|
<field>
|
|
|
|
<name>etag</name>
|
|
|
|
<type>text</type>
|
|
|
|
<default></default>
|
2013-06-26 20:07:53 +04:00
|
|
|
<notnull>false</notnull>
|
2012-12-31 06:23:54 +04:00
|
|
|
<length>40</length>
|
2012-12-31 01:32:55 +04:00
|
|
|
</field>
|
|
|
|
|
2014-06-03 19:57:56 +04:00
|
|
|
<field>
|
|
|
|
<name>permissions</name>
|
|
|
|
<type>integer</type>
|
|
|
|
<default>0</default>
|
|
|
|
<notnull>false</notnull>
|
|
|
|
<length>4</length>
|
|
|
|
</field>
|
|
|
|
|
2016-01-29 23:50:48 +03:00
|
|
|
<field>
|
|
|
|
<name>checksum</name>
|
|
|
|
<type>text</type>
|
|
|
|
<default></default>
|
|
|
|
<notnull>false</notnull>
|
|
|
|
<length>255</length>
|
|
|
|
</field>
|
|
|
|
|
2014-06-03 19:57:56 +04:00
|
|
|
|
|
|
|
<index>
|
2013-01-03 03:29:10 +04:00
|
|
|
<name>fs_storage_path_hash</name>
|
2012-10-03 01:46:35 +04:00
|
|
|
<unique>true</unique>
|
2012-09-19 22:58:42 +04:00
|
|
|
<field>
|
2012-10-03 01:46:35 +04:00
|
|
|
<name>storage</name>
|
2012-09-19 22:58:42 +04:00
|
|
|
<sorting>ascending</sorting>
|
|
|
|
</field>
|
|
|
|
<field>
|
2012-10-03 01:46:35 +04:00
|
|
|
<name>path_hash</name>
|
2012-09-19 22:58:42 +04:00
|
|
|
<sorting>ascending</sorting>
|
|
|
|
</field>
|
|
|
|
</index>
|
|
|
|
|
|
|
|
<index>
|
2013-01-03 03:29:10 +04:00
|
|
|
<name>fs_parent_name_hash</name>
|
2012-09-19 22:58:42 +04:00
|
|
|
<field>
|
|
|
|
<name>parent</name>
|
|
|
|
<sorting>ascending</sorting>
|
|
|
|
</field>
|
|
|
|
<field>
|
|
|
|
<name>name</name>
|
|
|
|
<sorting>ascending</sorting>
|
|
|
|
</field>
|
|
|
|
</index>
|
|
|
|
|
2013-01-22 01:31:44 +04:00
|
|
|
<index>
|
|
|
|
<name>fs_storage_mimetype</name>
|
|
|
|
<field>
|
|
|
|
<name>storage</name>
|
|
|
|
<sorting>ascending</sorting>
|
|
|
|
</field>
|
|
|
|
<field>
|
|
|
|
<name>mimetype</name>
|
|
|
|
<sorting>ascending</sorting>
|
|
|
|
</field>
|
|
|
|
</index>
|
|
|
|
|
|
|
|
<index>
|
|
|
|
<name>fs_storage_mimepart</name>
|
|
|
|
<field>
|
|
|
|
<name>storage</name>
|
|
|
|
<sorting>ascending</sorting>
|
|
|
|
</field>
|
|
|
|
<field>
|
|
|
|
<name>mimepart</name>
|
|
|
|
<sorting>ascending</sorting>
|
|
|
|
</field>
|
|
|
|
</index>
|
|
|
|
|
2014-05-31 18:55:50 +04:00
|
|
|
<index>
|
|
|
|
<name>fs_storage_size</name>
|
|
|
|
<field>
|
|
|
|
<name>storage</name>
|
|
|
|
<sorting>ascending</sorting>
|
|
|
|
</field>
|
|
|
|
<field>
|
|
|
|
<name>size</name>
|
|
|
|
<sorting>ascending</sorting>
|
|
|
|
</field>
|
|
|
|
<field>
|
|
|
|
<name>fileid</name>
|
|
|
|
</field>
|
|
|
|
</index>
|
|
|
|
|
2012-09-19 22:58:42 +04:00
|
|
|
</declaration>
|
|
|
|
|
|
|
|
</table>
|
|
|
|
|
|
|
|
<table>
|
2013-11-27 01:16:14 +04:00
|
|
|
|
2013-11-26 23:50:21 +04:00
|
|
|
<!--
|
|
|
|
Stores which groups have which users as members in an n:m relationship.
|
|
|
|
- Maps group id (gid) to a set of users (uid)
|
|
|
|
- Maps user id (uid) to a set of groups (gid) (but without index)
|
|
|
|
-->
|
2012-09-19 22:58:42 +04:00
|
|
|
<name>*dbprefix*group_user</name>
|
|
|
|
|
|
|
|
<declaration>
|
|
|
|
|
2013-11-26 23:50:21 +04:00
|
|
|
<!-- Foreign Key groups::gid -->
|
2012-09-19 22:58:42 +04:00
|
|
|
<field>
|
|
|
|
<name>gid</name>
|
|
|
|
<type>text</type>
|
|
|
|
<default></default>
|
|
|
|
<notnull>true</notnull>
|
|
|
|
<length>64</length>
|
|
|
|
</field>
|
|
|
|
|
2013-11-26 23:50:21 +04:00
|
|
|
<!-- Foreign Key users::uid -->
|
2012-09-19 22:58:42 +04:00
|
|
|
<field>
|
|
|
|
<name>uid</name>
|
|
|
|
<type>text</type>
|
|
|
|
<default></default>
|
|
|
|
<notnull>true</notnull>
|
|
|
|
<length>64</length>
|
|
|
|
</field>
|
|
|
|
|
2013-03-19 04:35:12 +04:00
|
|
|
<index>
|
|
|
|
<name>gu_gid_uid_index</name>
|
|
|
|
<primary>true</primary>
|
|
|
|
<unique>true</unique>
|
|
|
|
<field>
|
|
|
|
<name>gid</name>
|
|
|
|
<sorting>ascending</sorting>
|
|
|
|
</field>
|
|
|
|
<field>
|
|
|
|
<name>uid</name>
|
|
|
|
<sorting>ascending</sorting>
|
|
|
|
</field>
|
|
|
|
</index>
|
|
|
|
|
2015-07-08 19:04:10 +03:00
|
|
|
<index>
|
|
|
|
<name>gu_uid_index</name>
|
|
|
|
<field>
|
|
|
|
<name>uid</name>
|
|
|
|
<sorting>ascending</sorting>
|
|
|
|
</field>
|
|
|
|
</index>
|
|
|
|
|
2012-09-19 22:58:42 +04:00
|
|
|
</declaration>
|
|
|
|
|
|
|
|
</table>
|
|
|
|
|
|
|
|
<table>
|
2013-11-27 01:16:14 +04:00
|
|
|
|
2013-11-26 23:55:08 +04:00
|
|
|
<!--
|
|
|
|
Stores which groups have which users as admins in an n:m relationship.
|
|
|
|
- Maps group id (gid) to a set of users (uid)
|
|
|
|
- Maps user id (uid) to a set of groups (gid)
|
2013-11-26 23:55:19 +04:00
|
|
|
|
|
|
|
NOTE: This could (very likely) be reduced to a single bit in group_user
|
|
|
|
instead of repeating varchars gid and uid here
|
2013-11-26 23:55:08 +04:00
|
|
|
-->
|
2012-09-19 22:58:42 +04:00
|
|
|
<name>*dbprefix*group_admin</name>
|
|
|
|
|
|
|
|
<declaration>
|
|
|
|
|
2013-11-26 23:55:08 +04:00
|
|
|
<!-- Foreign Key groups::gid -->
|
2012-09-19 22:58:42 +04:00
|
|
|
<field>
|
|
|
|
<name>gid</name>
|
|
|
|
<type>text</type>
|
|
|
|
<default></default>
|
|
|
|
<notnull>true</notnull>
|
|
|
|
<length>64</length>
|
|
|
|
</field>
|
|
|
|
|
2013-11-26 23:55:08 +04:00
|
|
|
<!-- Foreign Key users::uid -->
|
2012-09-19 22:58:42 +04:00
|
|
|
<field>
|
|
|
|
<name>uid</name>
|
|
|
|
<type>text</type>
|
|
|
|
<default></default>
|
|
|
|
<notnull>true</notnull>
|
|
|
|
<length>64</length>
|
|
|
|
</field>
|
2012-11-24 23:58:51 +04:00
|
|
|
<index>
|
|
|
|
<name>group_admin_uid</name>
|
|
|
|
<field>
|
|
|
|
<name>uid</name>
|
|
|
|
<sorting>ascending</sorting>
|
|
|
|
</field>
|
|
|
|
</index>
|
2012-09-19 22:58:42 +04:00
|
|
|
|
2013-03-19 04:35:12 +04:00
|
|
|
<index>
|
|
|
|
<name>ga_gid_uid_index</name>
|
|
|
|
<primary>true</primary>
|
|
|
|
<unique>true</unique>
|
|
|
|
<field>
|
|
|
|
<name>gid</name>
|
|
|
|
<sorting>ascending</sorting>
|
|
|
|
</field>
|
|
|
|
<field>
|
|
|
|
<name>uid</name>
|
|
|
|
<sorting>ascending</sorting>
|
|
|
|
</field>
|
|
|
|
</index>
|
|
|
|
|
2012-09-19 22:58:42 +04:00
|
|
|
</declaration>
|
|
|
|
|
|
|
|
</table>
|
|
|
|
|
|
|
|
<table>
|
2013-11-27 01:16:14 +04:00
|
|
|
|
2013-11-26 23:56:05 +04:00
|
|
|
<!--
|
|
|
|
A simple list of groups.
|
|
|
|
-->
|
2012-09-19 22:58:42 +04:00
|
|
|
<name>*dbprefix*groups</name>
|
|
|
|
|
|
|
|
<declaration>
|
|
|
|
|
|
|
|
<field>
|
|
|
|
<name>gid</name>
|
|
|
|
<type>text</type>
|
|
|
|
<default></default>
|
|
|
|
<notnull>true</notnull>
|
|
|
|
<length>64</length>
|
|
|
|
</field>
|
|
|
|
|
|
|
|
<index>
|
|
|
|
<name>groups_pKey</name>
|
|
|
|
<primary>true</primary>
|
|
|
|
<field>
|
|
|
|
<name>gid</name>
|
|
|
|
<sorting>ascending</sorting>
|
|
|
|
</field>
|
|
|
|
</index>
|
|
|
|
|
|
|
|
</declaration>
|
|
|
|
|
|
|
|
</table>
|
|
|
|
|
|
|
|
<table>
|
2013-11-27 01:16:14 +04:00
|
|
|
|
2013-11-27 00:18:18 +04:00
|
|
|
<!--
|
|
|
|
Namespaced Key-Value Store for User Preferences
|
|
|
|
- Keys are namespaced per userid and appid.
|
|
|
|
- E.g. (admin, files, cache_version) -> 5
|
|
|
|
-->
|
2012-09-19 22:58:42 +04:00
|
|
|
<name>*dbprefix*preferences</name>
|
|
|
|
|
|
|
|
<declaration>
|
|
|
|
|
2013-11-27 00:18:18 +04:00
|
|
|
<!-- Foreign Key users::uid -->
|
2012-09-19 22:58:42 +04:00
|
|
|
<field>
|
|
|
|
<name>userid</name>
|
|
|
|
<type>text</type>
|
|
|
|
<default></default>
|
|
|
|
<notnull>true</notnull>
|
2012-09-28 00:49:01 +04:00
|
|
|
<length>64</length>
|
2012-09-19 22:58:42 +04:00
|
|
|
</field>
|
|
|
|
|
|
|
|
<field>
|
|
|
|
<name>appid</name>
|
|
|
|
<type>text</type>
|
|
|
|
<default></default>
|
|
|
|
<notnull>true</notnull>
|
2012-09-28 00:49:01 +04:00
|
|
|
<length>32</length>
|
2012-09-19 22:58:42 +04:00
|
|
|
</field>
|
|
|
|
|
|
|
|
<field>
|
|
|
|
<name>configkey</name>
|
|
|
|
<type>text</type>
|
|
|
|
<default></default>
|
|
|
|
<notnull>true</notnull>
|
2012-09-28 00:49:01 +04:00
|
|
|
<length>64</length>
|
2012-09-19 22:58:42 +04:00
|
|
|
</field>
|
|
|
|
|
|
|
|
<field>
|
|
|
|
<name>configvalue</name>
|
|
|
|
<type>clob</type>
|
|
|
|
<notnull>false</notnull>
|
|
|
|
</field>
|
|
|
|
|
2012-09-19 23:05:39 +04:00
|
|
|
<index>
|
2012-09-20 23:05:37 +04:00
|
|
|
<name>pref_userid_appid_key_index</name>
|
2013-03-19 04:35:12 +04:00
|
|
|
<primary>true</primary>
|
|
|
|
<unique>true</unique>
|
2012-09-19 23:05:39 +04:00
|
|
|
<field>
|
|
|
|
<name>userid</name>
|
|
|
|
<sorting>ascending</sorting>
|
|
|
|
</field>
|
|
|
|
<field>
|
|
|
|
<name>appid</name>
|
|
|
|
<sorting>ascending</sorting>
|
|
|
|
</field>
|
|
|
|
<field>
|
|
|
|
<name>configkey</name>
|
|
|
|
<sorting>ascending</sorting>
|
|
|
|
</field>
|
|
|
|
</index>
|
|
|
|
|
2012-09-19 22:58:42 +04:00
|
|
|
</declaration>
|
|
|
|
|
|
|
|
</table>
|
|
|
|
|
|
|
|
<table>
|
2013-11-27 01:16:14 +04:00
|
|
|
|
2013-11-27 00:23:57 +04:00
|
|
|
<!--
|
|
|
|
WebDAV properties.
|
|
|
|
-->
|
2012-09-19 22:58:42 +04:00
|
|
|
<name>*dbprefix*properties</name>
|
|
|
|
|
|
|
|
<declaration>
|
|
|
|
|
2013-03-19 04:35:12 +04:00
|
|
|
<field>
|
|
|
|
<name>id</name>
|
|
|
|
<autoincrement>1</autoincrement>
|
|
|
|
<type>integer</type>
|
|
|
|
<default>0</default>
|
|
|
|
<notnull>true</notnull>
|
|
|
|
<length>4</length>
|
|
|
|
</field>
|
|
|
|
|
2013-11-27 00:23:57 +04:00
|
|
|
<!-- Foreign Key users::uid -->
|
2012-09-19 22:58:42 +04:00
|
|
|
<field>
|
|
|
|
<name>userid</name>
|
|
|
|
<type>text</type>
|
|
|
|
<default></default>
|
|
|
|
<notnull>true</notnull>
|
2012-09-28 00:49:01 +04:00
|
|
|
<length>64</length>
|
2012-09-19 22:58:42 +04:00
|
|
|
</field>
|
|
|
|
|
|
|
|
<field>
|
|
|
|
<name>propertypath</name>
|
|
|
|
<type>text</type>
|
|
|
|
<default></default>
|
|
|
|
<notnull>true</notnull>
|
|
|
|
<length>255</length>
|
|
|
|
</field>
|
|
|
|
|
|
|
|
<field>
|
|
|
|
<name>propertyname</name>
|
|
|
|
<type>text</type>
|
|
|
|
<default></default>
|
|
|
|
<notnull>true</notnull>
|
|
|
|
<length>255</length>
|
|
|
|
</field>
|
|
|
|
|
|
|
|
<field>
|
|
|
|
<name>propertyvalue</name>
|
|
|
|
<type>text</type>
|
|
|
|
<notnull>true</notnull>
|
|
|
|
<length>255</length>
|
|
|
|
</field>
|
|
|
|
|
2013-03-19 04:35:12 +04:00
|
|
|
<index>
|
2013-03-25 20:54:45 +04:00
|
|
|
<name>property_index</name>
|
|
|
|
<field>
|
|
|
|
<name>userid</name>
|
|
|
|
<sorting>ascending</sorting>
|
|
|
|
</field>
|
2013-03-19 04:35:12 +04:00
|
|
|
</index>
|
2013-03-25 20:54:45 +04:00
|
|
|
|
2012-09-19 22:58:42 +04:00
|
|
|
</declaration>
|
|
|
|
|
|
|
|
</table>
|
|
|
|
|
|
|
|
<table>
|
2013-11-27 01:16:14 +04:00
|
|
|
|
2013-11-27 00:48:27 +04:00
|
|
|
<!--
|
|
|
|
Shares of all types (user-to-user, external-via-link, etc.)
|
|
|
|
-->
|
2012-09-19 22:58:42 +04:00
|
|
|
<name>*dbprefix*share</name>
|
|
|
|
|
|
|
|
<declaration>
|
|
|
|
|
|
|
|
<field>
|
|
|
|
<name>id</name>
|
|
|
|
<autoincrement>1</autoincrement>
|
|
|
|
<type>integer</type>
|
|
|
|
<default>0</default>
|
|
|
|
<notnull>true</notnull>
|
|
|
|
<length>4</length>
|
|
|
|
</field>
|
|
|
|
|
2013-11-27 00:48:27 +04:00
|
|
|
<!-- Constant OCP\Share::SHARE_TYPE_* -->
|
2012-09-19 22:58:42 +04:00
|
|
|
<field>
|
|
|
|
<name>share_type</name>
|
|
|
|
<type>integer</type>
|
|
|
|
<default>0</default>
|
|
|
|
<notnull>true</notnull>
|
|
|
|
<length>1</length>
|
|
|
|
</field>
|
|
|
|
|
2013-11-27 00:48:27 +04:00
|
|
|
<!-- Foreign Key users::uid or NULL -->
|
2012-09-19 22:58:42 +04:00
|
|
|
<field>
|
|
|
|
<name>share_with</name>
|
|
|
|
<type>text</type>
|
|
|
|
<default></default>
|
|
|
|
<notnull>false</notnull>
|
|
|
|
<length>255</length>
|
|
|
|
</field>
|
2017-03-28 16:11:07 +03:00
|
|
|
<field>
|
|
|
|
<name>password</name>
|
|
|
|
<type>text</type>
|
|
|
|
<default></default>
|
|
|
|
<notnull>false</notnull>
|
|
|
|
<length>255</length>
|
|
|
|
</field>
|
2012-09-19 22:58:42 +04:00
|
|
|
|
2013-11-27 00:48:27 +04:00
|
|
|
<!-- Foreign Key users::uid -->
|
2015-12-15 11:51:16 +03:00
|
|
|
<!-- This is the owner of the share
|
|
|
|
which does not have to be the initiator of the share -->
|
2012-09-19 22:58:42 +04:00
|
|
|
<field>
|
|
|
|
<name>uid_owner</name>
|
|
|
|
<type>text</type>
|
|
|
|
<default></default>
|
|
|
|
<notnull>true</notnull>
|
2015-11-24 14:13:19 +03:00
|
|
|
<length>64</length>
|
|
|
|
</field>
|
|
|
|
|
|
|
|
<!-- Foreign Key users::uid -->
|
2015-12-15 11:51:16 +03:00
|
|
|
<!-- This is the initiator of the share -->
|
2015-11-24 14:13:19 +03:00
|
|
|
<field>
|
2015-12-15 11:51:16 +03:00
|
|
|
<name>uid_initiator</name>
|
2015-11-24 14:13:19 +03:00
|
|
|
<type>text</type>
|
|
|
|
<default></default>
|
|
|
|
<notnull>false</notnull>
|
2014-06-27 18:48:42 +04:00
|
|
|
<length>64</length>
|
2012-09-19 22:58:42 +04:00
|
|
|
</field>
|
|
|
|
|
2015-12-15 11:51:16 +03:00
|
|
|
|
|
|
|
|
2013-11-27 00:48:27 +04:00
|
|
|
<!-- Foreign Key share::id or NULL -->
|
2012-09-19 22:58:42 +04:00
|
|
|
<field>
|
|
|
|
<name>parent</name>
|
|
|
|
<type>integer</type>
|
|
|
|
<notnull>false</notnull>
|
|
|
|
<length>4</length>
|
|
|
|
</field>
|
|
|
|
|
2013-11-27 00:48:27 +04:00
|
|
|
<!-- E.g. file or folder -->
|
2012-09-19 22:58:42 +04:00
|
|
|
<field>
|
|
|
|
<name>item_type</name>
|
|
|
|
<type>text</type>
|
|
|
|
<default></default>
|
|
|
|
<notnull>true</notnull>
|
|
|
|
<length>64</length>
|
|
|
|
</field>
|
|
|
|
|
2013-11-27 00:48:27 +04:00
|
|
|
<!-- Foreign Key filecache::fileid -->
|
2012-09-19 22:58:42 +04:00
|
|
|
<field>
|
|
|
|
<name>item_source</name>
|
|
|
|
<type>text</type>
|
|
|
|
<default></default>
|
|
|
|
<notnull>false</notnull>
|
|
|
|
<length>255</length>
|
|
|
|
</field>
|
|
|
|
|
|
|
|
<field>
|
|
|
|
<name>item_target</name>
|
|
|
|
<type>text</type>
|
|
|
|
<default></default>
|
|
|
|
<notnull>false</notnull>
|
|
|
|
<length>255</length>
|
|
|
|
</field>
|
|
|
|
|
2013-11-27 00:48:27 +04:00
|
|
|
<!-- Foreign Key filecache::fileid -->
|
2012-09-19 22:58:42 +04:00
|
|
|
<field>
|
|
|
|
<name>file_source</name>
|
|
|
|
<type>integer</type>
|
|
|
|
<notnull>false</notnull>
|
|
|
|
<length>4</length>
|
|
|
|
</field>
|
|
|
|
|
|
|
|
<field>
|
|
|
|
<name>file_target</name>
|
|
|
|
<type>text</type>
|
|
|
|
<default></default>
|
|
|
|
<notnull>false</notnull>
|
|
|
|
<length>512</length>
|
|
|
|
</field>
|
|
|
|
|
2013-11-27 00:48:27 +04:00
|
|
|
<!-- Permission bitfield -->
|
2012-09-19 22:58:42 +04:00
|
|
|
<field>
|
|
|
|
<name>permissions</name>
|
|
|
|
<type>integer</type>
|
|
|
|
<default>0</default>
|
|
|
|
<notnull>true</notnull>
|
|
|
|
<length>1</length>
|
|
|
|
</field>
|
|
|
|
|
2013-11-27 00:48:27 +04:00
|
|
|
<!-- Time of share creation -->
|
2012-09-19 22:58:42 +04:00
|
|
|
<field>
|
|
|
|
<name>stime</name>
|
|
|
|
<type>integer</type>
|
|
|
|
<default>0</default>
|
|
|
|
<notnull>true</notnull>
|
|
|
|
<length>8</length>
|
|
|
|
</field>
|
|
|
|
|
2013-11-27 00:48:27 +04:00
|
|
|
<!-- Whether the receiver accepted the share, if share_with is set. -->
|
2012-09-19 22:58:42 +04:00
|
|
|
<field>
|
|
|
|
<name>accepted</name>
|
|
|
|
<type>integer</type>
|
|
|
|
<default>0</default>
|
|
|
|
<notnull>true</notnull>
|
|
|
|
<length>1</length>
|
|
|
|
</field>
|
|
|
|
|
2013-11-27 00:48:27 +04:00
|
|
|
<!-- Time of share expiration -->
|
2012-09-19 22:58:42 +04:00
|
|
|
<field>
|
|
|
|
<name>expiration</name>
|
|
|
|
<type>timestamp</type>
|
|
|
|
<default></default>
|
|
|
|
<notnull>false</notnull>
|
|
|
|
</field>
|
|
|
|
|
2012-11-12 17:44:00 +04:00
|
|
|
<field>
|
|
|
|
<name>token</name>
|
|
|
|
<type>text</type>
|
|
|
|
<default></default>
|
|
|
|
<notnull>false</notnull>
|
|
|
|
<length>32</length>
|
|
|
|
</field>
|
|
|
|
|
2013-08-30 15:53:49 +04:00
|
|
|
<field>
|
|
|
|
<name>mail_send</name>
|
|
|
|
<type>integer</type>
|
|
|
|
<default>0</default>
|
|
|
|
<notnull>true</notnull>
|
|
|
|
<length>1</length>
|
|
|
|
</field>
|
|
|
|
|
2013-11-11 20:57:17 +04:00
|
|
|
<index>
|
|
|
|
<name>item_share_type_index</name>
|
|
|
|
<field>
|
|
|
|
<name>item_type</name>
|
|
|
|
<sorting>ascending</sorting>
|
|
|
|
</field>
|
|
|
|
<field>
|
|
|
|
<name>share_type</name>
|
|
|
|
<sorting>ascending</sorting>
|
|
|
|
</field>
|
|
|
|
</index>
|
|
|
|
<index>
|
|
|
|
<name>file_source_index</name>
|
|
|
|
<field>
|
|
|
|
<name>file_source</name>
|
|
|
|
<sorting>ascending</sorting>
|
|
|
|
</field>
|
|
|
|
</index>
|
2012-11-12 17:44:00 +04:00
|
|
|
<index>
|
|
|
|
<name>token_index</name>
|
|
|
|
<field>
|
|
|
|
<name>token</name>
|
|
|
|
<sorting>ascending</sorting>
|
|
|
|
</field>
|
|
|
|
</index>
|
2012-09-19 22:58:42 +04:00
|
|
|
</declaration>
|
|
|
|
|
|
|
|
</table>
|
|
|
|
|
|
|
|
<table>
|
2013-11-27 01:16:14 +04:00
|
|
|
|
2013-11-27 00:52:30 +04:00
|
|
|
<!--
|
|
|
|
Scheduled background jobs.
|
|
|
|
See OC\BackgroundJob\JobList.
|
|
|
|
-->
|
2013-04-21 02:04:58 +04:00
|
|
|
<name>*dbprefix*jobs</name>
|
2012-09-19 22:58:42 +04:00
|
|
|
|
|
|
|
<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>
|
2013-04-21 02:04:58 +04:00
|
|
|
<name>class</name>
|
2012-09-19 22:58:42 +04:00
|
|
|
<type>text</type>
|
|
|
|
<default></default>
|
|
|
|
<notnull>true</notnull>
|
2013-11-02 23:52:38 +04:00
|
|
|
<length>255</length>
|
2012-09-19 22:58:42 +04:00
|
|
|
</field>
|
|
|
|
|
|
|
|
<field>
|
2013-04-21 02:04:58 +04:00
|
|
|
<name>argument</name>
|
2012-09-19 22:58:42 +04:00
|
|
|
<type>text</type>
|
|
|
|
<default></default>
|
|
|
|
<notnull>true</notnull>
|
2015-02-23 20:07:13 +03:00
|
|
|
<length>4000</length>
|
2012-09-19 22:58:42 +04:00
|
|
|
</field>
|
|
|
|
|
|
|
|
<field>
|
2016-05-18 15:27:48 +03:00
|
|
|
<!-- timestamp when the job was executed the last time -->
|
2013-04-21 02:04:58 +04:00
|
|
|
<name>last_run</name>
|
2013-06-03 00:49:54 +04:00
|
|
|
<type>integer</type>
|
2012-09-19 22:58:42 +04:00
|
|
|
<default></default>
|
2013-04-21 02:04:58 +04:00
|
|
|
<notnull>false</notnull>
|
2012-09-19 22:58:42 +04:00
|
|
|
</field>
|
|
|
|
|
2016-05-18 15:27:48 +03:00
|
|
|
<field>
|
|
|
|
<!-- timestamp when the job was checked if it needs execution the last time -->
|
|
|
|
<name>last_checked</name>
|
|
|
|
<type>integer</type>
|
|
|
|
<default></default>
|
|
|
|
<notnull>false</notnull>
|
|
|
|
</field>
|
|
|
|
|
|
|
|
<field>
|
|
|
|
<!-- timestamp when the job was reserved the last time, 1 day timeout -->
|
|
|
|
<name>reserved_at</name>
|
|
|
|
<type>integer</type>
|
|
|
|
<default></default>
|
|
|
|
<notnull>false</notnull>
|
|
|
|
</field>
|
|
|
|
|
2017-04-25 18:39:58 +03:00
|
|
|
<field>
|
|
|
|
<!-- time for execution of the job -->
|
|
|
|
<name>execution_duration</name>
|
|
|
|
<type>integer</type>
|
|
|
|
<default></default>
|
|
|
|
<notnull>true</notnull>
|
|
|
|
</field>
|
|
|
|
|
2013-04-21 02:04:58 +04:00
|
|
|
<index>
|
|
|
|
<name>job_class_index</name>
|
|
|
|
<field>
|
|
|
|
<name>class</name>
|
|
|
|
<sorting>ascending</sorting>
|
|
|
|
</field>
|
|
|
|
</index>
|
2012-09-19 22:58:42 +04:00
|
|
|
|
|
|
|
</declaration>
|
|
|
|
|
|
|
|
</table>
|
|
|
|
|
|
|
|
<table>
|
2013-11-27 01:16:14 +04:00
|
|
|
|
2013-11-27 00:53:55 +04:00
|
|
|
<!--
|
|
|
|
List of usernames, their display name and login password.
|
|
|
|
-->
|
2012-09-19 22:58:42 +04:00
|
|
|
<name>*dbprefix*users</name>
|
|
|
|
|
|
|
|
<declaration>
|
|
|
|
|
|
|
|
<field>
|
|
|
|
<name>uid</name>
|
|
|
|
<type>text</type>
|
|
|
|
<default></default>
|
|
|
|
<notnull>true</notnull>
|
|
|
|
<length>64</length>
|
|
|
|
</field>
|
|
|
|
|
2013-01-28 17:38:38 +04:00
|
|
|
<field>
|
|
|
|
<name>displayname</name>
|
|
|
|
<type>text</type>
|
|
|
|
<default></default>
|
|
|
|
<length>64</length>
|
|
|
|
</field>
|
|
|
|
|
2012-09-19 22:58:42 +04:00
|
|
|
<field>
|
|
|
|
<name>password</name>
|
|
|
|
<type>text</type>
|
|
|
|
<default></default>
|
|
|
|
<notnull>true</notnull>
|
|
|
|
<length>255</length>
|
|
|
|
</field>
|
|
|
|
|
|
|
|
<index>
|
|
|
|
<name>users_pKey</name>
|
|
|
|
<primary>true</primary>
|
|
|
|
<field>
|
|
|
|
<name>uid</name>
|
|
|
|
<sorting>ascending</sorting>
|
|
|
|
</field>
|
|
|
|
</index>
|
|
|
|
|
|
|
|
</declaration>
|
|
|
|
|
|
|
|
</table>
|
2010-06-18 22:08:24 +04:00
|
|
|
|
2016-04-25 15:10:55 +03:00
|
|
|
<table>
|
|
|
|
<name>*dbprefix*authtoken</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>
|
|
|
|
|
|
|
|
<!-- Foreign Key users::uid -->
|
|
|
|
<field>
|
|
|
|
<name>uid</name>
|
|
|
|
<type>text</type>
|
|
|
|
<default></default>
|
|
|
|
<notnull>true</notnull>
|
|
|
|
<length>64</length>
|
|
|
|
</field>
|
|
|
|
|
2016-05-24 11:50:18 +03:00
|
|
|
<field>
|
|
|
|
<name>login_name</name>
|
|
|
|
<type>text</type>
|
|
|
|
<default></default>
|
|
|
|
<notnull>true</notnull>
|
|
|
|
<length>64</length>
|
|
|
|
</field>
|
|
|
|
|
2016-04-25 15:10:55 +03:00
|
|
|
<field>
|
|
|
|
<name>password</name>
|
2016-04-26 12:32:35 +03:00
|
|
|
<type>clob</type>
|
2016-04-25 15:10:55 +03:00
|
|
|
<default></default>
|
2016-05-31 11:48:14 +03:00
|
|
|
<notnull>false</notnull>
|
2016-04-25 15:10:55 +03:00
|
|
|
</field>
|
|
|
|
|
|
|
|
<field>
|
|
|
|
<name>name</name>
|
2016-05-12 12:19:17 +03:00
|
|
|
<type>clob</type>
|
2016-04-25 15:10:55 +03:00
|
|
|
<default></default>
|
|
|
|
<notnull>true</notnull>
|
|
|
|
</field>
|
|
|
|
|
|
|
|
<field>
|
|
|
|
<name>token</name>
|
|
|
|
<type>text</type>
|
|
|
|
<default></default>
|
|
|
|
<notnull>true</notnull>
|
2016-04-28 12:59:26 +03:00
|
|
|
<length>200</length>
|
2016-04-25 15:10:55 +03:00
|
|
|
</field>
|
|
|
|
|
2016-04-26 13:48:19 +03:00
|
|
|
<field>
|
|
|
|
<name>type</name>
|
|
|
|
<type>integer</type>
|
|
|
|
<default>0</default>
|
|
|
|
<notnull>true</notnull>
|
|
|
|
<unsigned>true</unsigned>
|
|
|
|
<length>2</length>
|
|
|
|
</field>
|
|
|
|
|
2016-09-06 22:41:15 +03:00
|
|
|
<field>
|
|
|
|
<name>remember</name>
|
|
|
|
<type>integer</type>
|
|
|
|
<default>0</default>
|
|
|
|
<notnull>true</notnull>
|
|
|
|
<unsigned>true</unsigned>
|
|
|
|
<length>1</length>
|
|
|
|
</field>
|
|
|
|
|
2016-04-25 17:40:41 +03:00
|
|
|
<field>
|
|
|
|
<name>last_activity</name>
|
|
|
|
<type>integer</type>
|
|
|
|
<default>0</default>
|
|
|
|
<notnull>true</notnull>
|
|
|
|
<unsigned>true</unsigned>
|
|
|
|
<length>4</length>
|
|
|
|
</field>
|
|
|
|
|
2016-06-17 14:59:15 +03:00
|
|
|
<field>
|
|
|
|
<name>last_check</name>
|
|
|
|
<type>integer</type>
|
|
|
|
<default>0</default>
|
|
|
|
<notnull>true</notnull>
|
|
|
|
<unsigned>true</unsigned>
|
|
|
|
<length>4</length>
|
|
|
|
</field>
|
|
|
|
|
2016-08-01 20:06:54 +03:00
|
|
|
<field>
|
|
|
|
<name>scope</name>
|
|
|
|
<type>clob</type>
|
|
|
|
<default></default>
|
|
|
|
<notnull>false</notnull>
|
|
|
|
</field>
|
|
|
|
|
2016-04-25 15:10:55 +03:00
|
|
|
<index>
|
|
|
|
<name>authtoken_token_index</name>
|
|
|
|
<unique>true</unique>
|
|
|
|
<field>
|
|
|
|
<name>token</name>
|
|
|
|
<sorting>ascending</sorting>
|
|
|
|
</field>
|
|
|
|
</index>
|
|
|
|
|
2016-04-26 13:48:19 +03:00
|
|
|
<index>
|
|
|
|
<name>authtoken_last_activity_index</name>
|
|
|
|
<field>
|
|
|
|
<name>last_activity</name>
|
|
|
|
<sorting>ascending</sorting>
|
|
|
|
</field>
|
|
|
|
</index>
|
|
|
|
|
2016-04-25 15:10:55 +03:00
|
|
|
</declaration>
|
|
|
|
</table>
|
|
|
|
|
2016-07-20 19:36:15 +03:00
|
|
|
<table>
|
|
|
|
|
|
|
|
<!--
|
|
|
|
List of usernames, their display name and login password.
|
|
|
|
-->
|
|
|
|
<name>*dbprefix*bruteforce_attempts</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>action</name>
|
|
|
|
<type>text</type>
|
|
|
|
<default></default>
|
|
|
|
<notnull>true</notnull>
|
|
|
|
<length>64</length>
|
|
|
|
</field>
|
|
|
|
|
|
|
|
<field>
|
|
|
|
<name>occurred</name>
|
|
|
|
<type>integer</type>
|
|
|
|
<default>0</default>
|
|
|
|
<notnull>true</notnull>
|
|
|
|
<unsigned>true</unsigned>
|
|
|
|
<length>4</length>
|
|
|
|
</field>
|
|
|
|
|
|
|
|
<field>
|
|
|
|
<name>ip</name>
|
|
|
|
<type>text</type>
|
|
|
|
<default></default>
|
|
|
|
<notnull>true</notnull>
|
|
|
|
<length>255</length>
|
|
|
|
</field>
|
|
|
|
|
|
|
|
<field>
|
|
|
|
<name>subnet</name>
|
|
|
|
<type>text</type>
|
|
|
|
<default></default>
|
|
|
|
<notnull>true</notnull>
|
|
|
|
<length>255</length>
|
|
|
|
</field>
|
|
|
|
|
|
|
|
<field>
|
|
|
|
<name>metadata</name>
|
|
|
|
<type>text</type>
|
|
|
|
<default></default>
|
|
|
|
<notnull>true</notnull>
|
|
|
|
<length>255</length>
|
|
|
|
</field>
|
|
|
|
|
|
|
|
<index>
|
|
|
|
<name>bruteforce_attempts_ip</name>
|
|
|
|
<field>
|
|
|
|
<name>ip</name>
|
|
|
|
<sorting>ascending</sorting>
|
|
|
|
</field>
|
|
|
|
</index>
|
|
|
|
<index>
|
|
|
|
<name>bruteforce_attempts_subnet</name>
|
|
|
|
<field>
|
|
|
|
<name>subnet</name>
|
|
|
|
<sorting>ascending</sorting>
|
|
|
|
</field>
|
|
|
|
</index>
|
|
|
|
|
|
|
|
</declaration>
|
|
|
|
|
|
|
|
</table>
|
|
|
|
|
2012-10-19 21:42:59 +04:00
|
|
|
<table>
|
2013-11-27 01:16:14 +04:00
|
|
|
|
2013-11-27 01:06:20 +04:00
|
|
|
<!--
|
|
|
|
List of tags (category) + a unique tag id (id) per user (uid) and type.
|
|
|
|
-->
|
2012-10-19 21:42:59 +04:00
|
|
|
<name>*dbprefix*vcategory</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>
|
|
|
|
|
2013-11-27 01:06:20 +04:00
|
|
|
<!-- Foreign Key users::uid -->
|
2012-10-19 21:42:59 +04:00
|
|
|
<field>
|
|
|
|
<name>uid</name>
|
|
|
|
<type>text</type>
|
|
|
|
<default></default>
|
|
|
|
<notnull>true</notnull>
|
|
|
|
<length>64</length>
|
|
|
|
</field>
|
|
|
|
|
|
|
|
<field>
|
|
|
|
<name>type</name>
|
|
|
|
<type>text</type>
|
|
|
|
<default></default>
|
|
|
|
<notnull>true</notnull>
|
|
|
|
<length>64</length>
|
|
|
|
</field>
|
|
|
|
|
|
|
|
<field>
|
|
|
|
<name>category</name>
|
|
|
|
<type>text</type>
|
|
|
|
<default></default>
|
|
|
|
<notnull>true</notnull>
|
|
|
|
<length>255</length>
|
|
|
|
</field>
|
|
|
|
|
|
|
|
<index>
|
|
|
|
<name>uid_index</name>
|
|
|
|
<field>
|
|
|
|
<name>uid</name>
|
|
|
|
<sorting>ascending</sorting>
|
|
|
|
</field>
|
|
|
|
</index>
|
|
|
|
|
|
|
|
<index>
|
|
|
|
<name>type_index</name>
|
|
|
|
<field>
|
|
|
|
<name>type</name>
|
|
|
|
<sorting>ascending</sorting>
|
|
|
|
</field>
|
|
|
|
</index>
|
|
|
|
|
|
|
|
<index>
|
|
|
|
<name>category_index</name>
|
|
|
|
<field>
|
|
|
|
<name>category</name>
|
|
|
|
<sorting>ascending</sorting>
|
|
|
|
</field>
|
|
|
|
</index>
|
|
|
|
|
|
|
|
</declaration>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
<table>
|
2013-11-27 01:16:14 +04:00
|
|
|
|
2013-11-27 01:06:20 +04:00
|
|
|
<!--
|
|
|
|
Object-Tag associations per tag type.
|
|
|
|
-->
|
2012-10-19 21:42:59 +04:00
|
|
|
<name>*dbprefix*vcategory_to_object</name>
|
|
|
|
|
|
|
|
<declaration>
|
|
|
|
|
|
|
|
<field>
|
|
|
|
<name>objid</name>
|
|
|
|
<type>integer</type>
|
|
|
|
<default>0</default>
|
|
|
|
<notnull>true</notnull>
|
|
|
|
<unsigned>true</unsigned>
|
|
|
|
<length>4</length>
|
|
|
|
</field>
|
|
|
|
|
2013-11-27 01:06:20 +04:00
|
|
|
<!-- Foreign Key vcategory::id -->
|
2012-10-19 21:42:59 +04:00
|
|
|
<field>
|
|
|
|
<name>categoryid</name>
|
|
|
|
<type>integer</type>
|
|
|
|
<default>0</default>
|
|
|
|
<notnull>true</notnull>
|
|
|
|
<unsigned>true</unsigned>
|
|
|
|
<length>4</length>
|
|
|
|
</field>
|
|
|
|
|
|
|
|
<field>
|
|
|
|
<name>type</name>
|
|
|
|
<type>text</type>
|
|
|
|
<default></default>
|
|
|
|
<notnull>true</notnull>
|
|
|
|
<length>64</length>
|
|
|
|
</field>
|
|
|
|
|
|
|
|
<index>
|
|
|
|
<primary>true</primary>
|
|
|
|
<unique>true</unique>
|
|
|
|
<name>category_object_index</name>
|
|
|
|
<field>
|
|
|
|
<name>categoryid</name>
|
|
|
|
<sorting>ascending</sorting>
|
|
|
|
</field>
|
|
|
|
<field>
|
|
|
|
<name>objid</name>
|
|
|
|
<sorting>ascending</sorting>
|
|
|
|
</field>
|
|
|
|
<field>
|
|
|
|
<name>type</name>
|
|
|
|
<sorting>ascending</sorting>
|
|
|
|
</field>
|
|
|
|
</index>
|
|
|
|
|
2013-11-11 20:57:17 +04:00
|
|
|
<index>
|
|
|
|
<name>vcategory_objectd_index</name>
|
|
|
|
<field>
|
|
|
|
<name>objid</name>
|
|
|
|
<sorting>ascending</sorting>
|
|
|
|
</field>
|
|
|
|
<field>
|
|
|
|
<name>type</name>
|
|
|
|
<sorting>ascending</sorting>
|
|
|
|
</field>
|
|
|
|
</index>
|
|
|
|
|
2012-10-19 21:42:59 +04:00
|
|
|
</declaration>
|
|
|
|
|
|
|
|
</table>
|
2012-09-17 18:03:15 +04:00
|
|
|
|
2015-11-26 17:49:14 +03:00
|
|
|
<table>
|
|
|
|
<!--
|
|
|
|
List of system-wide tags
|
|
|
|
-->
|
|
|
|
<name>*dbprefix*systemtag</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>
|
|
|
|
|
|
|
|
<!-- Tag name -->
|
|
|
|
<field>
|
|
|
|
<name>name</name>
|
|
|
|
<type>text</type>
|
|
|
|
<default></default>
|
|
|
|
<notnull>true</notnull>
|
|
|
|
<length>64</length>
|
|
|
|
</field>
|
|
|
|
|
|
|
|
<!-- Visibility: 0 user-not-visible, 1 user-visible -->
|
|
|
|
<field>
|
|
|
|
<name>visibility</name>
|
|
|
|
<type>integer</type>
|
|
|
|
<default>1</default>
|
|
|
|
<notnull>true</notnull>
|
|
|
|
<length>1</length>
|
|
|
|
</field>
|
|
|
|
|
|
|
|
<!-- Editable: 0 user-not-editable, 1 user-editable -->
|
|
|
|
<field>
|
|
|
|
<name>editable</name>
|
|
|
|
<type>integer</type>
|
|
|
|
<default>1</default>
|
|
|
|
<notnull>true</notnull>
|
|
|
|
<length>1</length>
|
|
|
|
</field>
|
|
|
|
|
|
|
|
<index>
|
|
|
|
<name>tag_ident</name>
|
|
|
|
<unique>true</unique>
|
|
|
|
<field>
|
|
|
|
<name>name</name>
|
|
|
|
<sorting>ascending</sorting>
|
|
|
|
</field>
|
|
|
|
<field>
|
|
|
|
<name>visibility</name>
|
|
|
|
<sorting>ascending</sorting>
|
|
|
|
</field>
|
|
|
|
<field>
|
|
|
|
<name>editable</name>
|
|
|
|
<sorting>ascending</sorting>
|
|
|
|
</field>
|
|
|
|
</index>
|
|
|
|
|
|
|
|
</declaration>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
<table>
|
|
|
|
|
|
|
|
<!--
|
|
|
|
System tag to object associations per object type.
|
|
|
|
-->
|
|
|
|
<name>*dbprefix*systemtag_object_mapping</name>
|
|
|
|
|
|
|
|
<declaration>
|
|
|
|
|
|
|
|
<!-- object id (ex: file id for files)-->
|
|
|
|
<field>
|
|
|
|
<name>objectid</name>
|
2016-02-22 17:41:21 +03:00
|
|
|
<type>text</type>
|
|
|
|
<default></default>
|
2015-11-26 17:49:14 +03:00
|
|
|
<notnull>true</notnull>
|
2016-02-22 17:41:21 +03:00
|
|
|
<length>64</length>
|
2015-11-26 17:49:14 +03:00
|
|
|
</field>
|
|
|
|
|
|
|
|
<!-- object type (ex: "files")-->
|
|
|
|
<field>
|
|
|
|
<name>objecttype</name>
|
|
|
|
<type>text</type>
|
|
|
|
<default></default>
|
|
|
|
<notnull>true</notnull>
|
|
|
|
<length>64</length>
|
|
|
|
</field>
|
|
|
|
|
|
|
|
<!-- Foreign Key systemtag::id -->
|
|
|
|
<field>
|
|
|
|
<name>systemtagid</name>
|
|
|
|
<type>integer</type>
|
|
|
|
<default>0</default>
|
|
|
|
<notnull>true</notnull>
|
|
|
|
<unsigned>true</unsigned>
|
|
|
|
<length>4</length>
|
|
|
|
</field>
|
|
|
|
|
|
|
|
<index>
|
|
|
|
<unique>true</unique>
|
|
|
|
<name>mapping</name>
|
|
|
|
<field>
|
|
|
|
<name>objecttype</name>
|
|
|
|
<sorting>ascending</sorting>
|
|
|
|
</field>
|
|
|
|
<field>
|
|
|
|
<name>objectid</name>
|
|
|
|
<sorting>ascending</sorting>
|
|
|
|
</field>
|
|
|
|
<field>
|
|
|
|
<name>systemtagid</name>
|
|
|
|
<sorting>ascending</sorting>
|
|
|
|
</field>
|
|
|
|
</index>
|
|
|
|
|
|
|
|
</declaration>
|
|
|
|
|
|
|
|
</table>
|
|
|
|
|
2016-05-11 13:25:09 +03:00
|
|
|
<table>
|
|
|
|
|
|
|
|
<!--
|
|
|
|
System tag to group mapping
|
|
|
|
-->
|
|
|
|
<name>*dbprefix*systemtag_group</name>
|
|
|
|
|
|
|
|
<declaration>
|
|
|
|
|
|
|
|
<!-- Foreign Key systemtag::id -->
|
|
|
|
<field>
|
|
|
|
<name>systemtagid</name>
|
|
|
|
<type>integer</type>
|
|
|
|
<default>0</default>
|
|
|
|
<notnull>true</notnull>
|
|
|
|
<unsigned>true</unsigned>
|
|
|
|
<length>4</length>
|
|
|
|
</field>
|
|
|
|
|
|
|
|
<field>
|
|
|
|
<name>gid</name>
|
|
|
|
<type>string</type>
|
|
|
|
<notnull>true</notnull>
|
|
|
|
</field>
|
|
|
|
|
|
|
|
<index>
|
|
|
|
<name>systemtag_group</name>
|
|
|
|
<primary>true</primary>
|
|
|
|
<unique>true</unique>
|
|
|
|
<field>
|
|
|
|
<name>gid</name>
|
|
|
|
<sorting>ascending</sorting>
|
|
|
|
</field>
|
|
|
|
<field>
|
|
|
|
<name>systemtagid</name>
|
|
|
|
<sorting>ascending</sorting>
|
|
|
|
</field>
|
|
|
|
</index>
|
|
|
|
|
|
|
|
</declaration>
|
|
|
|
|
|
|
|
</table>
|
|
|
|
|
2013-10-30 22:36:29 +04:00
|
|
|
<table>
|
2013-11-27 01:16:14 +04:00
|
|
|
|
2013-11-27 01:13:01 +04:00
|
|
|
<!--
|
|
|
|
Namespaced Key-Value Store for arbitrary data.
|
|
|
|
- Keys are namespaced per userid and appid.
|
|
|
|
- E.g. (admin, files, foo) -> bar
|
|
|
|
-->
|
2013-10-30 22:36:29 +04:00
|
|
|
<name>*dbprefix*privatedata</name>
|
|
|
|
|
|
|
|
<declaration>
|
|
|
|
|
|
|
|
<field>
|
|
|
|
<name>keyid</name>
|
|
|
|
<type>integer</type>
|
|
|
|
<default>0</default>
|
|
|
|
<notnull>true</notnull>
|
|
|
|
<unsigned>true</unsigned>
|
|
|
|
<length>4</length>
|
|
|
|
<autoincrement>1</autoincrement>
|
|
|
|
</field>
|
|
|
|
|
2013-11-27 01:13:01 +04:00
|
|
|
<!-- Foreign Key users::uid -->
|
2013-10-30 22:36:29 +04:00
|
|
|
<field>
|
|
|
|
<name>user</name>
|
|
|
|
<type>text</type>
|
|
|
|
<default></default>
|
|
|
|
<notnull>true</notnull>
|
2014-06-27 18:48:42 +04:00
|
|
|
<length>64</length>
|
2013-10-30 22:36:29 +04:00
|
|
|
</field>
|
|
|
|
|
|
|
|
<field>
|
|
|
|
<name>app</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>
|
|
|
|
|
|
|
|
<index>
|
|
|
|
<primary>true</primary>
|
|
|
|
<unique>true</unique>
|
|
|
|
<name>keyid_index</name>
|
|
|
|
<field>
|
|
|
|
<name>keyid</name>
|
|
|
|
<sorting>ascending</sorting>
|
|
|
|
</field>
|
|
|
|
</index>
|
|
|
|
|
|
|
|
</declaration>
|
|
|
|
|
|
|
|
</table>
|
|
|
|
|
2015-07-15 17:14:32 +03:00
|
|
|
<table>
|
|
|
|
|
|
|
|
<!--
|
2015-08-03 16:46:19 +03:00
|
|
|
Table for storing transactional file locking
|
2015-07-15 17:14:32 +03:00
|
|
|
-->
|
2015-07-16 13:55:28 +03:00
|
|
|
<name>*dbprefix*file_locks</name>
|
2015-07-15 17:14:32 +03:00
|
|
|
|
|
|
|
<declaration>
|
|
|
|
|
2015-07-16 13:55:28 +03:00
|
|
|
<field>
|
|
|
|
<name>id</name>
|
|
|
|
<type>integer</type>
|
|
|
|
<default>0</default>
|
|
|
|
<notnull>true</notnull>
|
|
|
|
<unsigned>true</unsigned>
|
|
|
|
<length>4</length>
|
|
|
|
<autoincrement>1</autoincrement>
|
|
|
|
</field>
|
|
|
|
|
2015-07-15 17:14:32 +03:00
|
|
|
<field>
|
|
|
|
<name>lock</name>
|
|
|
|
<type>integer</type>
|
|
|
|
<default>0</default>
|
|
|
|
<notnull>true</notnull>
|
|
|
|
<length>4</length>
|
|
|
|
</field>
|
|
|
|
|
|
|
|
<field>
|
2015-08-03 16:46:19 +03:00
|
|
|
<name>key</name>
|
2015-07-15 17:14:32 +03:00
|
|
|
<type>text</type>
|
|
|
|
<notnull>true</notnull>
|
|
|
|
<length>64</length>
|
|
|
|
</field>
|
|
|
|
|
2015-07-16 13:55:28 +03:00
|
|
|
<field>
|
|
|
|
<name>ttl</name>
|
|
|
|
<type>integer</type>
|
2015-08-03 16:46:19 +03:00
|
|
|
<default>-1</default>
|
2015-07-16 13:55:28 +03:00
|
|
|
<notnull>true</notnull>
|
|
|
|
<length>4</length>
|
|
|
|
</field>
|
2015-07-15 17:14:32 +03:00
|
|
|
|
|
|
|
<index>
|
|
|
|
<primary>true</primary>
|
2015-07-16 13:55:28 +03:00
|
|
|
<unique>true</unique>
|
|
|
|
<name>lock_id_index</name>
|
|
|
|
<field>
|
|
|
|
<name>id</name>
|
|
|
|
<sorting>ascending</sorting>
|
|
|
|
</field>
|
|
|
|
</index>
|
|
|
|
|
|
|
|
<index>
|
2015-07-15 17:14:32 +03:00
|
|
|
<unique>true</unique>
|
2015-08-03 16:46:19 +03:00
|
|
|
<name>lock_key_index</name>
|
2015-07-15 17:14:32 +03:00
|
|
|
<field>
|
2015-08-03 16:46:19 +03:00
|
|
|
<name>key</name>
|
2015-07-15 17:14:32 +03:00
|
|
|
<sorting>ascending</sorting>
|
|
|
|
</field>
|
|
|
|
</index>
|
|
|
|
|
2015-07-16 13:55:28 +03:00
|
|
|
<index>
|
|
|
|
<name>lock_ttl_index</name>
|
|
|
|
<field>
|
|
|
|
<name>ttl</name>
|
|
|
|
<sorting>ascending</sorting>
|
|
|
|
</field>
|
|
|
|
</index>
|
|
|
|
|
2015-07-15 17:14:32 +03:00
|
|
|
</declaration>
|
|
|
|
|
|
|
|
</table>
|
|
|
|
|
2015-11-19 22:50:26 +03:00
|
|
|
<table>
|
|
|
|
<!--
|
|
|
|
default place to store comment data
|
|
|
|
-->
|
|
|
|
<name>*dbprefix*comments</name>
|
|
|
|
|
|
|
|
<declaration>
|
|
|
|
|
|
|
|
<field>
|
|
|
|
<name>id</name>
|
|
|
|
<type>integer</type>
|
|
|
|
<default>0</default>
|
|
|
|
<notnull>true</notnull>
|
|
|
|
<unsigned>true</unsigned>
|
|
|
|
<length>4</length>
|
|
|
|
<autoincrement>1</autoincrement>
|
|
|
|
</field>
|
|
|
|
|
|
|
|
<field>
|
|
|
|
<name>parent_id</name>
|
|
|
|
<type>integer</type>
|
|
|
|
<default>0</default>
|
|
|
|
<notnull>true</notnull>
|
|
|
|
<unsigned>true</unsigned>
|
|
|
|
<length>4</length>
|
|
|
|
</field>
|
|
|
|
|
|
|
|
<field>
|
|
|
|
<name>topmost_parent_id</name>
|
|
|
|
<type>integer</type>
|
|
|
|
<default>0</default>
|
|
|
|
<notnull>true</notnull>
|
|
|
|
<unsigned>true</unsigned>
|
|
|
|
<length>4</length>
|
|
|
|
</field>
|
|
|
|
|
|
|
|
<field>
|
|
|
|
<name>children_count</name>
|
|
|
|
<type>integer</type>
|
|
|
|
<default>0</default>
|
|
|
|
<notnull>true</notnull>
|
|
|
|
<unsigned>true</unsigned>
|
|
|
|
<length>4</length>
|
|
|
|
</field>
|
|
|
|
|
|
|
|
<field>
|
|
|
|
<name>actor_type</name>
|
|
|
|
<type>text</type>
|
|
|
|
<default></default>
|
|
|
|
<notnull>true</notnull>
|
|
|
|
<length>64</length>
|
|
|
|
</field>
|
|
|
|
|
|
|
|
<field>
|
|
|
|
<name>actor_id</name>
|
|
|
|
<type>text</type>
|
|
|
|
<default></default>
|
|
|
|
<notnull>true</notnull>
|
|
|
|
<length>64</length>
|
|
|
|
</field>
|
|
|
|
|
|
|
|
<field>
|
|
|
|
<name>message</name>
|
|
|
|
<type>clob</type>
|
|
|
|
<default></default>
|
|
|
|
<notnull>false</notnull>
|
|
|
|
</field>
|
|
|
|
|
|
|
|
<field>
|
|
|
|
<name>verb</name>
|
|
|
|
<type>text</type>
|
|
|
|
<default></default>
|
|
|
|
<notnull>false</notnull>
|
|
|
|
<length>64</length>
|
|
|
|
</field>
|
|
|
|
|
|
|
|
<field>
|
|
|
|
<name>creation_timestamp</name>
|
|
|
|
<type>timestamp</type>
|
|
|
|
<default></default>
|
|
|
|
<notnull>false</notnull>
|
|
|
|
</field>
|
|
|
|
|
|
|
|
<field>
|
|
|
|
<name>latest_child_timestamp</name>
|
|
|
|
<type>timestamp</type>
|
|
|
|
<default></default>
|
|
|
|
<notnull>false</notnull>
|
|
|
|
</field>
|
|
|
|
|
|
|
|
<field>
|
|
|
|
<name>object_type</name>
|
|
|
|
<type>text</type>
|
|
|
|
<default></default>
|
|
|
|
<notnull>true</notnull>
|
|
|
|
<length>64</length>
|
|
|
|
</field>
|
|
|
|
|
|
|
|
<field>
|
|
|
|
<name>object_id</name>
|
|
|
|
<type>text</type>
|
|
|
|
<default></default>
|
|
|
|
<notnull>true</notnull>
|
|
|
|
<length>64</length>
|
|
|
|
</field>
|
2016-02-24 23:11:03 +03:00
|
|
|
|
2015-11-19 22:50:26 +03:00
|
|
|
<index>
|
|
|
|
<name>comments_parent_id_index</name>
|
|
|
|
<unique>false</unique>
|
|
|
|
<field>
|
|
|
|
<name>parent_id</name>
|
|
|
|
<sorting>descending</sorting>
|
|
|
|
</field>
|
|
|
|
</index>
|
|
|
|
|
|
|
|
<index>
|
2016-02-24 23:11:03 +03:00
|
|
|
<name>comments_topmost_parent_id_idx</name>
|
2015-11-19 22:50:26 +03:00
|
|
|
<unique>false</unique>
|
|
|
|
<field>
|
2016-02-24 23:11:03 +03:00
|
|
|
<name>topmost_parent_id</name>
|
|
|
|
<sorting>descending</sorting>
|
2015-11-19 22:50:26 +03:00
|
|
|
</field>
|
|
|
|
</index>
|
|
|
|
|
|
|
|
<index>
|
|
|
|
<name>comments_object_index</name>
|
|
|
|
<unique>false</unique>
|
|
|
|
<field>
|
|
|
|
<name>object_type</name>
|
|
|
|
<sorting>ascending</sorting>
|
|
|
|
</field>
|
|
|
|
<field>
|
|
|
|
<name>object_id</name>
|
|
|
|
<sorting>ascending</sorting>
|
|
|
|
</field>
|
|
|
|
<field>
|
|
|
|
<name>creation_timestamp</name>
|
|
|
|
<sorting>descending</sorting>
|
|
|
|
</field>
|
2016-02-24 23:11:03 +03:00
|
|
|
</index>
|
|
|
|
|
|
|
|
<index>
|
|
|
|
<name>comments_actor_index</name>
|
|
|
|
<unique>false</unique>
|
|
|
|
<field>
|
|
|
|
<name>actor_type</name>
|
|
|
|
<sorting>ascending</sorting>
|
|
|
|
</field>
|
|
|
|
<field>
|
|
|
|
<name>actor_id</name>
|
|
|
|
<sorting>ascending</sorting>
|
|
|
|
</field>
|
2015-11-19 22:50:26 +03:00
|
|
|
</index>
|
|
|
|
|
|
|
|
</declaration>
|
|
|
|
|
|
|
|
</table>
|
|
|
|
|
2016-01-29 00:59:48 +03:00
|
|
|
<table>
|
|
|
|
<!--
|
|
|
|
default place to store per user and object read markers
|
|
|
|
-->
|
|
|
|
<name>*dbprefix*comments_read_markers</name>
|
|
|
|
|
|
|
|
<declaration>
|
|
|
|
|
|
|
|
<field>
|
|
|
|
<name>user_id</name>
|
|
|
|
<type>text</type>
|
|
|
|
<default></default>
|
|
|
|
<notnull>true</notnull>
|
|
|
|
<length>64</length>
|
|
|
|
</field>
|
|
|
|
|
|
|
|
<field>
|
|
|
|
<name>marker_datetime</name>
|
|
|
|
<type>timestamp</type>
|
|
|
|
<default></default>
|
|
|
|
<notnull>false</notnull>
|
|
|
|
</field>
|
|
|
|
|
|
|
|
<field>
|
|
|
|
<name>object_type</name>
|
|
|
|
<type>text</type>
|
|
|
|
<default></default>
|
|
|
|
<notnull>true</notnull>
|
|
|
|
<length>64</length>
|
|
|
|
</field>
|
|
|
|
|
|
|
|
<field>
|
|
|
|
<name>object_id</name>
|
|
|
|
<type>text</type>
|
|
|
|
<default></default>
|
|
|
|
<notnull>true</notnull>
|
|
|
|
<length>64</length>
|
|
|
|
</field>
|
|
|
|
|
2016-02-24 23:11:03 +03:00
|
|
|
<index>
|
2016-02-26 03:02:22 +03:00
|
|
|
<name>comments_marker_object_index</name>
|
2016-02-24 23:11:03 +03:00
|
|
|
<unique>false</unique>
|
|
|
|
<field>
|
2016-02-26 03:02:22 +03:00
|
|
|
<name>object_type</name>
|
|
|
|
<sorting>ascending</sorting>
|
|
|
|
</field>
|
|
|
|
<field>
|
|
|
|
<name>object_id</name>
|
|
|
|
<sorting>ascending</sorting>
|
2016-02-24 23:11:03 +03:00
|
|
|
</field>
|
|
|
|
</index>
|
|
|
|
|
|
|
|
<index>
|
2016-02-26 03:02:22 +03:00
|
|
|
<name>comments_marker_index</name>
|
|
|
|
<unique>true</unique>
|
|
|
|
<field>
|
|
|
|
<name>user_id</name>
|
|
|
|
<sorting>descending</sorting>
|
|
|
|
</field>
|
2016-02-24 23:11:03 +03:00
|
|
|
<field>
|
|
|
|
<name>object_type</name>
|
|
|
|
<sorting>ascending</sorting>
|
|
|
|
</field>
|
|
|
|
<field>
|
|
|
|
<name>object_id</name>
|
|
|
|
<sorting>ascending</sorting>
|
|
|
|
</field>
|
|
|
|
</index>
|
|
|
|
|
2016-01-29 00:59:48 +03:00
|
|
|
</declaration>
|
|
|
|
|
|
|
|
</table>
|
|
|
|
|
2015-08-24 18:13:16 +03:00
|
|
|
<table>
|
|
|
|
<!--
|
|
|
|
Encrypted credentials storage
|
|
|
|
-->
|
|
|
|
<name>*dbprefix*credentials</name>
|
|
|
|
|
|
|
|
<declaration>
|
|
|
|
|
|
|
|
<field>
|
|
|
|
<name>user</name>
|
|
|
|
<type>text</type>
|
|
|
|
<default></default>
|
|
|
|
<notnull>false</notnull>
|
|
|
|
<length>64</length>
|
|
|
|
</field>
|
|
|
|
|
|
|
|
<field>
|
|
|
|
<name>identifier</name>
|
|
|
|
<type>text</type>
|
|
|
|
<notnull>true</notnull>
|
|
|
|
<length>64</length>
|
|
|
|
</field>
|
|
|
|
|
|
|
|
<field>
|
|
|
|
<name>credentials</name>
|
|
|
|
<type>clob</type>
|
|
|
|
<notnull>false</notnull>
|
|
|
|
</field>
|
|
|
|
|
|
|
|
<index>
|
|
|
|
<name>credentials_user_id</name>
|
|
|
|
<primary>true</primary>
|
|
|
|
<unique>true</unique>
|
|
|
|
<field>
|
|
|
|
<name>user</name>
|
|
|
|
<sorting>ascending</sorting>
|
|
|
|
</field>
|
|
|
|
<field>
|
|
|
|
<name>identifier</name>
|
|
|
|
<sorting>ascending</sorting>
|
|
|
|
</field>
|
|
|
|
</index>
|
|
|
|
|
|
|
|
<index>
|
|
|
|
<name>credentials_user</name>
|
|
|
|
<unique>false</unique>
|
|
|
|
<field>
|
|
|
|
<name>user</name>
|
|
|
|
<sorting>ascending</sorting>
|
|
|
|
</field>
|
|
|
|
</index>
|
|
|
|
|
|
|
|
</declaration>
|
|
|
|
|
|
|
|
</table>
|
2013-10-30 22:36:29 +04:00
|
|
|
|
2016-08-09 00:31:26 +03:00
|
|
|
<table>
|
|
|
|
<!-- Extra admin settings sections -->
|
|
|
|
<name>*dbprefix*admin_sections</name>
|
|
|
|
|
|
|
|
<declaration>
|
|
|
|
|
|
|
|
<field>
|
|
|
|
<name>id</name>
|
|
|
|
<type>text</type>
|
|
|
|
<default></default>
|
|
|
|
<notnull>false</notnull>
|
|
|
|
<length>64</length>
|
|
|
|
</field>
|
|
|
|
|
|
|
|
<field>
|
|
|
|
<name>class</name>
|
|
|
|
<type>text</type>
|
|
|
|
<default></default>
|
|
|
|
<notnull>true</notnull>
|
|
|
|
<length>255</length>
|
|
|
|
</field>
|
|
|
|
|
|
|
|
<field>
|
|
|
|
<name>priority</name>
|
|
|
|
<type>integer</type>
|
|
|
|
<default></default>
|
|
|
|
<notnull>true</notnull>
|
|
|
|
<length>1</length>
|
|
|
|
</field>
|
|
|
|
|
|
|
|
<index>
|
|
|
|
<name>admin_sections_id_index</name>
|
2016-08-16 14:21:59 +03:00
|
|
|
<primary>true</primary>
|
2016-08-09 00:31:26 +03:00
|
|
|
<field>
|
|
|
|
<name>id</name>
|
|
|
|
<sorting>ascending</sorting>
|
|
|
|
</field>
|
|
|
|
</index>
|
|
|
|
|
2016-08-16 14:21:59 +03:00
|
|
|
<index>
|
|
|
|
<name>admin_sections_class</name>
|
|
|
|
<unique>true</unique>
|
|
|
|
<field>
|
|
|
|
<name>class</name>
|
|
|
|
<sorting>ascending</sorting>
|
|
|
|
</field>
|
|
|
|
</index>
|
|
|
|
|
2016-08-09 00:31:26 +03:00
|
|
|
</declaration>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
<table>
|
|
|
|
<!-- Extra admin settings -->
|
|
|
|
<name>*dbprefix*admin_settings</name>
|
|
|
|
|
|
|
|
<declaration>
|
|
|
|
|
|
|
|
<field>
|
|
|
|
<name>id</name>
|
|
|
|
<type>integer</type>
|
|
|
|
<default>0</default>
|
|
|
|
<notnull>true</notnull>
|
|
|
|
<autoincrement>1</autoincrement>
|
|
|
|
<length>4</length>
|
|
|
|
</field>
|
|
|
|
|
|
|
|
<field>
|
|
|
|
<name>class</name>
|
|
|
|
<type>text</type>
|
|
|
|
<default></default>
|
|
|
|
<notnull>true</notnull>
|
|
|
|
<length>255</length>
|
|
|
|
</field>
|
|
|
|
|
|
|
|
<!-- id of the section, foreign key: admin_sections.id -->
|
|
|
|
<field>
|
|
|
|
<name>section</name>
|
|
|
|
<type>text</type>
|
|
|
|
<default></default>
|
|
|
|
<notnull>false</notnull>
|
|
|
|
<length>64</length>
|
|
|
|
</field>
|
|
|
|
|
|
|
|
<field>
|
|
|
|
<name>priority</name>
|
|
|
|
<type>integer</type>
|
|
|
|
<default></default>
|
|
|
|
<notnull>true</notnull>
|
|
|
|
<length>1</length>
|
|
|
|
</field>
|
|
|
|
|
|
|
|
<index>
|
2016-08-09 23:43:29 +03:00
|
|
|
<name>admin_settings_id_index</name>
|
2016-08-16 14:21:59 +03:00
|
|
|
<primary>true</primary>
|
2016-08-09 00:31:26 +03:00
|
|
|
<field>
|
|
|
|
<name>id</name>
|
|
|
|
<sorting>ascending</sorting>
|
|
|
|
</field>
|
|
|
|
</index>
|
|
|
|
|
2016-08-16 14:21:59 +03:00
|
|
|
<index>
|
|
|
|
<name>admin_settings_class</name>
|
|
|
|
<unique>true</unique>
|
|
|
|
<field>
|
|
|
|
<name>class</name>
|
|
|
|
<sorting>ascending</sorting>
|
|
|
|
</field>
|
|
|
|
</index>
|
|
|
|
|
|
|
|
<index>
|
|
|
|
<name>admin_settings_section</name>
|
|
|
|
<unique>false</unique>
|
|
|
|
<field>
|
|
|
|
<name>section</name>
|
|
|
|
<sorting>ascending</sorting>
|
|
|
|
</field>
|
|
|
|
</index>
|
|
|
|
|
2016-08-09 00:31:26 +03:00
|
|
|
</declaration>
|
|
|
|
</table>
|
|
|
|
|
2016-04-25 15:56:11 +03:00
|
|
|
<table>
|
|
|
|
|
|
|
|
<name>*dbprefix*accounts</name>
|
|
|
|
|
|
|
|
<declaration>
|
|
|
|
<field>
|
|
|
|
<name>uid</name>
|
|
|
|
<type>text</type>
|
|
|
|
<default></default>
|
|
|
|
<notnull>true</notnull>
|
|
|
|
<length>64</length>
|
|
|
|
</field>
|
|
|
|
<field>
|
|
|
|
<name>data</name>
|
|
|
|
<type>clob</type>
|
|
|
|
<default></default>
|
|
|
|
<notnull>true</notnull>
|
|
|
|
</field>
|
|
|
|
|
|
|
|
<index>
|
|
|
|
<name>uid_index</name>
|
|
|
|
<primary>true</primary>
|
|
|
|
<unique>true</unique>
|
|
|
|
<field>
|
|
|
|
<name>uid</name>
|
|
|
|
<sorting>ascending</sorting>
|
|
|
|
</field>
|
|
|
|
</index>
|
|
|
|
|
|
|
|
</declaration>
|
|
|
|
</table>
|
|
|
|
|
2010-06-18 22:08:24 +04:00
|
|
|
</database>
|