зеркало из https://github.com/nextcloud/news.git
251 строка
4.9 KiB
XML
251 строка
4.9 KiB
XML
<database>
|
|
<name>*dbname*</name>
|
|
<create>true</create>
|
|
<overwrite>false</overwrite>
|
|
<charset>utf8</charset>
|
|
<table>
|
|
<name>*dbprefix*news_folders</name>
|
|
<declaration>
|
|
<field>
|
|
<name>id</name>
|
|
<type>integer</type>
|
|
<notnull>true</notnull>
|
|
<autoincrement>true</autoincrement>
|
|
<unsigned>true</unsigned>
|
|
<primary>true</primary>
|
|
</field>
|
|
<field>
|
|
<name>parent_id</name>
|
|
<type>integer</type>
|
|
<notnull>false</notnull>
|
|
</field>
|
|
<field>
|
|
<name>name</name>
|
|
<type>text</type>
|
|
<length>100</length>
|
|
<notnull>true</notnull>
|
|
</field>
|
|
<field>
|
|
<name>user_id</name>
|
|
<type>text</type>
|
|
<default></default>
|
|
<notnull>true</notnull>
|
|
<length>64</length>
|
|
</field>
|
|
<field>
|
|
<name>opened</name>
|
|
<type>boolean</type>
|
|
<default>true</default>
|
|
<notnull>true</notnull>
|
|
</field>
|
|
<field>
|
|
<name>deleted_at</name>
|
|
<type>integer</type>
|
|
<default>0</default>
|
|
<notnull>false</notnull>
|
|
<unsigned>true</unsigned>
|
|
</field>
|
|
|
|
<index>
|
|
<name>news_folders_parent_id_index</name>
|
|
<field>
|
|
<name>parent_id</name>
|
|
</field>
|
|
</index>
|
|
|
|
<index>
|
|
<name>news_folders_user_id_index</name>
|
|
<field>
|
|
<name>user_id</name>
|
|
</field>
|
|
</index>
|
|
</declaration>
|
|
</table>
|
|
|
|
<table>
|
|
<name>*dbprefix*news_feeds</name>
|
|
<declaration>
|
|
<field>
|
|
<name>id</name>
|
|
<type>integer</type>
|
|
<notnull>true</notnull>
|
|
<autoincrement>true</autoincrement>
|
|
<primary>true</primary>
|
|
<unsigned>true</unsigned>
|
|
</field>
|
|
<field>
|
|
<name>user_id</name>
|
|
<type>text</type>
|
|
<default></default>
|
|
<notnull>true</notnull>
|
|
<length>64</length>
|
|
</field>
|
|
<field>
|
|
<name>url_hash</name>
|
|
<type>text</type>
|
|
<length>32</length>
|
|
<notnull>true</notnull>
|
|
</field>
|
|
<field>
|
|
<name>url</name>
|
|
<type>clob</type>
|
|
<notnull>true</notnull>
|
|
</field>
|
|
<field>
|
|
<name>title</name>
|
|
<type>clob</type>
|
|
<notnull>true</notnull>
|
|
</field>
|
|
<field>
|
|
<name>link</name>
|
|
<type>clob</type>
|
|
<notnull>false</notnull>
|
|
</field>
|
|
<field>
|
|
<name>favicon_link</name>
|
|
<type>clob</type>
|
|
<notnull>false</notnull>
|
|
</field>
|
|
<field>
|
|
<name>added</name>
|
|
<type>integer</type>
|
|
<default></default>
|
|
<notnull>false</notnull>
|
|
<unsigned>true</unsigned>
|
|
</field>
|
|
<field>
|
|
<name>deleted_at</name>
|
|
<type>integer</type>
|
|
<default>0</default>
|
|
<notnull>false</notnull>
|
|
<unsigned>true</unsigned>
|
|
</field>
|
|
<field>
|
|
<name>folder_id</name>
|
|
<type>integer</type>
|
|
<notnull>true</notnull>
|
|
</field>
|
|
<field>
|
|
<name>prevent_update</name>
|
|
<type>boolean</type>
|
|
<default>false</default>
|
|
<notnull>true</notnull>
|
|
</field>
|
|
|
|
<index>
|
|
<name>news_feeds_user_id_index</name>
|
|
<field>
|
|
<name>user_id</name>
|
|
</field>
|
|
</index>
|
|
|
|
<index>
|
|
<name>news_feeds_folder_id_index</name>
|
|
<field>
|
|
<name>folder_id</name>
|
|
</field>
|
|
</index>
|
|
|
|
<index>
|
|
<name>news_feeds_url_hash_index</name>
|
|
<field>
|
|
<name>url_hash</name>
|
|
</field>
|
|
</index>
|
|
</declaration>
|
|
</table>
|
|
|
|
<table>
|
|
<name>*dbprefix*news_items</name>
|
|
<declaration>
|
|
<field>
|
|
<name>id</name>
|
|
<type>integer</type>
|
|
<notnull>true</notnull>
|
|
<autoincrement>true</autoincrement>
|
|
<primary>true</primary>
|
|
<unsigned>true</unsigned>
|
|
</field>
|
|
<field>
|
|
<name>guid_hash</name>
|
|
<type>text</type>
|
|
<notnull>true</notnull>
|
|
<length>32</length>
|
|
</field>
|
|
<field>
|
|
<name>guid</name>
|
|
<type>clob</type>
|
|
<notnull>true</notnull>
|
|
</field>
|
|
<field>
|
|
<name>url</name>
|
|
<type>clob</type>
|
|
</field>
|
|
<field>
|
|
<name>title</name>
|
|
<type>clob</type>
|
|
</field>
|
|
<field>
|
|
<name>author</name>
|
|
<type>clob</type>
|
|
<notnull>false</notnull>
|
|
</field>
|
|
<field>
|
|
<name>pub_date</name>
|
|
<type>integer</type>
|
|
<unsigned>true</unsigned>
|
|
<notnull>false</notnull>
|
|
</field>
|
|
<field>
|
|
<name>body</name>
|
|
<type>clob</type>
|
|
<notnull>false</notnull>
|
|
</field>
|
|
<field>
|
|
<name>enclosure_mime</name>
|
|
<type>clob</type>
|
|
<notnull>false</notnull>
|
|
</field>
|
|
<field>
|
|
<name>enclosure_link</name>
|
|
<type>clob</type>
|
|
<notnull>false</notnull>
|
|
</field>
|
|
<field>
|
|
<name>feed_id</name>
|
|
<type>integer</type>
|
|
<notnull>true</notnull>
|
|
</field>
|
|
<field>
|
|
<name>status</name>
|
|
<type>integer</type>
|
|
</field>
|
|
<field>
|
|
<name>last_modified</name>
|
|
<type>integer</type>
|
|
<default></default>
|
|
<notnull>false</notnull>
|
|
<unsigned>true</unsigned>
|
|
</field>
|
|
|
|
<index>
|
|
<name>news_items_feed_id_index</name>
|
|
<field>
|
|
<name>feed_id</name>
|
|
</field>
|
|
</index>
|
|
|
|
<index>
|
|
<name>news_items_item_guid</name>
|
|
<unique>true</unique>
|
|
<field>
|
|
<name>guid_hash</name>
|
|
</field>
|
|
<field>
|
|
<name>feed_id</name>
|
|
</field>
|
|
</index>
|
|
</declaration>
|
|
</table>
|
|
</database>
|