richdocuments/appinfo/database.xml

256 lines
5.5 KiB
XML
Raw Normal View History

2013-07-19 15:17:18 +03:00
<?xml version="1.0" encoding="ISO-8859-1" ?>
<database>
2013-07-19 16:13:40 +03:00
<name>*dbname*</name>
<create>true</create>
<overwrite>false</overwrite>
<charset>utf8</charset>
<table>
2013-08-28 12:02:27 +02:00
<name>*dbprefix*documents_session</name>
2013-07-19 15:17:18 +03:00
<declaration>
2013-07-19 15:17:18 +03:00
<field>
<name>es_id</name>
<type>text</type>
<notnull>true</notnull>
<length>64</length>
<comments>Editing session id</comments>
</field>
<field>
<name>genesis_url</name>
<type>text</type>
2013-07-19 16:28:08 +03:00
<length>512</length>
2013-08-28 12:02:27 +02:00
<comments>Relative to owner documents storage /welcome.odt</comments>
2013-07-19 15:17:18 +03:00
</field>
<field>
<name>genesis_hash</name>
<type>text</type>
<length>128</length>
2013-07-19 15:17:18 +03:00
<notnull>true</notnull>
<comments>To be sure the genesis did not change</comments>
</field>
2013-08-08 14:02:54 +03:00
<field>
2013-08-17 19:42:50 +03:00
<name>file_id</name>
2013-08-08 14:02:54 +03:00
<type>text</type>
<length>512</length>
<comments>Relative to storage e.g. /welcome.odt</comments>
</field>
2013-07-19 15:17:18 +03:00
<field>
<name>owner</name>
<type>text</type>
<notnull>true</notnull>
<length>64</length>
<comments>oC user who created the session</comments>
</field>
2013-07-19 16:28:08 +03:00
<index>
2013-08-28 12:02:27 +02:00
<name>documents_session_ei_idx</name>
2013-07-19 16:28:08 +03:00
<primary>true</primary>
<unique>true</unique>
<field>
<name>es_id</name>
<sorting>ascending</sorting>
</field>
</index>
2013-07-19 15:17:18 +03:00
</declaration>
</table>
2013-08-09 18:31:46 +03:00
<table>
2013-08-28 12:02:27 +02:00
<name>*dbprefix*documents_member</name>
2013-08-09 18:31:46 +03:00
<declaration>
2013-08-09 18:31:46 +03:00
<field>
2013-08-09 20:30:14 +03:00
<name>member_id</name>
2013-08-09 18:31:46 +03:00
<type>integer</type>
<notnull>true</notnull>
<autoincrement>1</autoincrement>
<unsigned>true</unsigned>
<length>4</length>
<comments>Unique per user and session</comments>
</field>
<field>
<name>es_id</name>
<type>text</type>
<notnull>true</notnull>
<length>64</length>
<comments>Related editing session id</comments>
</field>
<field>
2013-08-09 19:46:15 +03:00
<name>uid</name>
2013-08-09 18:31:46 +03:00
<type>text</type>
<length>64</length>
</field>
<field>
<name>color</name>
<type>text</type>
<length>32</length>
</field>
<field>
<name>last_activity</name>
<type>integer</type>
<unsigned>true</unsigned>
<length>4</length>
</field>
2013-08-17 18:32:24 +03:00
<field>
<name>status</name>
<type>integer</type>
<default>1</default>
<notnull>true</notnull>
<unsigned>true</unsigned>
<length>1</length>
</field>
2013-08-09 18:31:46 +03:00
</declaration>
</table>
2013-07-19 16:13:40 +03:00
<table>
2013-08-28 12:02:27 +02:00
<name>*dbprefix*documents_op</name>
2013-07-19 15:17:18 +03:00
<declaration>
2013-07-19 15:17:18 +03:00
<field>
<name>seq</name>
<type>integer</type>
2013-08-07 00:48:43 +03:00
<notnull>true</notnull>
2013-08-07 00:11:04 +03:00
<autoincrement>1</autoincrement>
2013-07-19 15:17:18 +03:00
<unsigned>true</unsigned>
2013-08-07 00:11:04 +03:00
<length>4</length>
2013-07-19 15:17:18 +03:00
<comments>Sequence number</comments>
</field>
2013-08-07 00:48:43 +03:00
<field>
<name>es_id</name>
<type>text</type>
<notnull>true</notnull>
<length>64</length>
<comments>Editing session id</comments>
</field>
2013-07-19 15:17:18 +03:00
<field>
<name>member</name>
2013-08-09 18:31:46 +03:00
<type>integer</type>
<default>1</default>
2013-07-19 15:17:18 +03:00
<notnull>true</notnull>
2013-08-09 18:31:46 +03:00
<unsigned>true</unsigned>
<length>4</length>
2013-07-19 15:17:18 +03:00
<comments>User and time specific</comments>
</field>
<field>
<name>opspec</name>
<type>clob</type>
<notnull>false</notnull>
<comments>json-string</comments>
</field>
2013-08-07 00:48:43 +03:00
<index>
<name>seq_pKey</name>
<primary>true</primary>
<field>
<name>seq</name>
<sorting>ascending</sorting>
</field>
</index>
2013-07-19 16:28:08 +03:00
<index>
2013-08-28 12:02:27 +02:00
<name>documents_op_eis_idx</name>
2013-07-19 16:28:08 +03:00
<unique>true</unique>
<field>
<name>es_id</name>
<sorting>ascending</sorting>
</field>
<field>
<name>seq</name>
<sorting>ascending</sorting>
</field>
</index>
2013-07-19 15:17:18 +03:00
</declaration>
</table>
2013-08-12 16:31:02 +03:00
<table>
2013-08-28 12:02:27 +02:00
<name>*dbprefix*documents_invite</name>
2013-08-12 16:31:02 +03:00
<declaration>
2013-08-12 16:31:02 +03:00
<field>
<name>es_id</name>
<type>text</type>
<notnull>true</notnull>
<length>64</length>
<comments>Related editing session id</comments>
</field>
<field>
<name>uid</name>
<type>text</type>
<length>64</length>
</field>
<field>
<name>status</name>
<type>integer</type>
<default>0</default>
<length>2</length>
</field>
<field>
<name>sent_on</name>
<type>integer</type>
<default></default>
2013-08-22 15:30:46 +02:00
<notnull>false</notnull>
2013-08-12 16:31:02 +03:00
<unsigned>true</unsigned>
<length>4</length>
</field>
</declaration>
</table>
<table>
<name>*dbprefix*documents_revisions</name>
<declaration>
<field>
<name>es_id</name>
<type>text</type>
<notnull>true</notnull>
<length>64</length>
<comments>Related editing session id</comments>
</field>
<field>
<name>seq_head</name>
<type>integer</type>
<notnull>true</notnull>
<unsigned>true</unsigned>
<length>4</length>
<comments>Sequence head number</comments>
</field>
<field>
<name>member_id</name>
<type>integer</type>
<notnull>true</notnull>
<unsigned>true</unsigned>
<length>4</length>
<comments>the member that saved the revision</comments>
</field>
<field>
<name>file_id</name>
<type>text</type>
<length>512</length>
<comments>Relative to storage e.g. /welcome.odt</comments>
</field>
<field>
<name>save_hash</name>
<type>text</type>
<length>128</length>
<notnull>true</notnull>
2013-09-16 18:50:56 +03:00
<comments>used to lookup revision in documents folder of member, eg hash.odt</comments>
</field>
<index>
<name>documents_rev_eis_idx</name>
<unique>true</unique>
<field>
<name>es_id</name>
<sorting>ascending</sorting>
</field>
<field>
<name>seq_head</name>
<sorting>ascending</sorting>
</field>
</index>
</declaration>
</table>
2013-08-12 16:31:02 +03:00
</database>