1
0
mirror of https://github.com/nerzhul/ocsms.git synced 2025-06-27 17:56:21 +00:00
ocsms/appinfo/database.xml
Loic Blot 8f4dfd217f Added table to store last read date. This permit to set unread messages on first refresh of contact list. We need to handle it at first load too
Note: this is an experimental thing. We need to set this cursor for every conversation to get better precision
2014-10-23 15:38:20 +00:00

108 lines
2.2 KiB
XML

<?xml version="1.0" encoding="UTF-8" ?>
<database>
<name>*dbname*</name>
<create>true</create>
<overwrite>false</overwrite>
<charset>utf8</charset>
<table>
<name>*dbprefix*ocsms_user_datas</name>
<declaration>
<field>
<name>user_id</name>
<type>text</type>
<notnull>true</notnull>
<length>64</length>
</field>
<field>
<name>datakey</name>
<type>text</type>
<notnull>true</notnull>
<length>64</length>
</field>
<field>
<name>datavalue</name>
<type>text</type>
<length>64</length>
<notnull>true</notnull>
</field>
</declaration>
</table>
<table>
<name>*dbprefix*ocsms_smsdatas</name>
<declaration>
<field>
<name>id</name>
<type>integer</type>
<default>0</default>
<notnull>true</notnull>
<autoincrement>1</autoincrement>
<length>10</length>
<primary>true</primary>
</field>
<field>
<name>user_id</name>
<type>text</type>
<notnull>true</notnull>
<length>64</length>
</field>
<field>
<name>added</name>
<type>timestamp</type>
<notnull>true</notnull>
<default>1970-01-01 00:00:00</default>
</field>
<field>
<name>lastmodified</name>
<type>timestamp</type>
<notnull>true</notnull>
<default>1970-01-01 00:00:00</default>
</field>
<field>
<name>sms_id</name>
<type>integer</type>
<notnull>true</notnull>
<length>5</length>
</field>
<field>
<name>sms_address</name>
<type>text</type>
<notnull>true</notnull>
<length>64</length>
</field>
<field>
<name>sms_msg</name>
<type>text</type>
<notnull>true</notnull>
<length>2048</length>
</field>
<field>
<name>sms_date</name>
<type>integer</type>
<notnull>true</notnull>
<length>10</length>
</field>
<field>
<name>sms_flags</name>
<type>text</type>
<notnull>true</notnull>
<default>00</default>
<length>2</length>
</field>
<field>
<name>sms_mailbox</name>
<type>integer</type>
<notnull>true</notnull>
<length>1</length>
</field>
<field>
<name>sms_type</name>
<type>integer</type>
<notnull>true</notnull>
<length>1</length>
</field>
</declaration>
</table>
</database>