187 lines
3.8 KiB
XML
187 lines
3.8 KiB
XML
<?xml version="1.0" encoding="ISO-8859-1" ?>
|
|
<database>
|
|
|
|
<!--
|
|
CREATE TABLE addressbooks (
|
|
id INT(11) UNSIGNED NOT NULL PRIMARY KEY AUTO_INCREMENT,
|
|
principaluri VARBINARY(255),
|
|
displayname VARCHAR(255),
|
|
uri VARBINARY(200),
|
|
description TEXT,
|
|
synctoken INT(11) UNSIGNED NOT NULL DEFAULT '1',
|
|
UNIQUE(principaluri(100), uri(100))
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
|
-->
|
|
<table>
|
|
|
|
<name>*dbprefix*addressbooks</name>
|
|
|
|
<declaration>
|
|
|
|
<field>
|
|
<name>id</name>
|
|
<type>integer</type>
|
|
<default>0</default>
|
|
<notnull>true</notnull>
|
|
<autoincrement>1</autoincrement>
|
|
<unsigned>true</unsigned>
|
|
<length>11</length>
|
|
</field>
|
|
|
|
<field>
|
|
<name>principaluri</name>
|
|
<type>text</type>
|
|
</field>
|
|
<field>
|
|
<name>displayname</name>
|
|
<type>text</type>
|
|
</field>
|
|
<field>
|
|
<name>uri</name>
|
|
<type>text</type>
|
|
</field>
|
|
<field>
|
|
<name>description</name>
|
|
<type>text</type>
|
|
</field>
|
|
<field>
|
|
<name>synctoken</name>
|
|
<type>integer</type>
|
|
<default>1</default>
|
|
<notnull>true</notnull>
|
|
<unsigned>true</unsigned>
|
|
</field>
|
|
<index>
|
|
<name>addressbook_index</name>
|
|
<unique>true</unique>
|
|
<field>
|
|
<name>principaluri</name>
|
|
</field>
|
|
<field>
|
|
<name>uri</name>
|
|
</field>
|
|
</index>
|
|
</declaration>
|
|
</table>
|
|
|
|
<!--
|
|
|
|
CREATE TABLE cards (
|
|
id INT(11) UNSIGNED NOT NULL PRIMARY KEY AUTO_INCREMENT,
|
|
addressbookid INT(11) UNSIGNED NOT NULL,
|
|
carddata MEDIUMBLOB,
|
|
uri VARBINARY(200),
|
|
lastmodified INT(11) UNSIGNED,
|
|
etag VARBINARY(32),
|
|
size INT(11) UNSIGNED NOT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
|
|
|
-->
|
|
<table>
|
|
<name>*dbprefix*cards</name>
|
|
<declaration>
|
|
<field>
|
|
<name>id</name>
|
|
<type>integer</type>
|
|
<default>0</default>
|
|
<notnull>true</notnull>
|
|
<autoincrement>1</autoincrement>
|
|
<unsigned>true</unsigned>
|
|
<length>11</length>
|
|
</field>
|
|
<field>
|
|
<name>addressbookid</name>
|
|
<type>integer</type>
|
|
<default>0</default>
|
|
<notnull>true</notnull>
|
|
</field>
|
|
<field>
|
|
<name>carddata</name>
|
|
<type>blob</type>
|
|
</field>
|
|
<field>
|
|
<name>uri</name>
|
|
<type>text</type>
|
|
</field>
|
|
<field>
|
|
<name>lastmodified</name>
|
|
<type>integer</type>
|
|
<unsigned>true</unsigned>
|
|
<length>11</length>
|
|
</field>
|
|
<field>
|
|
<name>etag</name>
|
|
<type>text</type>
|
|
<length>32</length>
|
|
</field>
|
|
<field>
|
|
<name>size</name>
|
|
<type>integer</type>
|
|
<notnull>true</notnull>
|
|
<unsigned>true</unsigned>
|
|
<length>11</length>
|
|
</field>
|
|
</declaration>
|
|
</table>
|
|
|
|
<!--
|
|
CREATE TABLE addressbookchanges (
|
|
id INT(11) UNSIGNED NOT NULL PRIMARY KEY AUTO_INCREMENT,
|
|
uri VARBINARY(200) NOT NULL,
|
|
synctoken INT(11) UNSIGNED NOT NULL,
|
|
addressbookid INT(11) UNSIGNED NOT NULL,
|
|
operation TINYINT(1) NOT NULL,
|
|
INDEX addressbookid_synctoken (addressbookid, synctoken)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
|
-->
|
|
|
|
<table>
|
|
<name>*dbprefix*addressbookchanges</name>
|
|
<declaration>
|
|
<field>
|
|
<name>id</name>
|
|
<type>integer</type>
|
|
<default>0</default>
|
|
<notnull>true</notnull>
|
|
<autoincrement>1</autoincrement>
|
|
<unsigned>true</unsigned>
|
|
<length>11</length>
|
|
</field>
|
|
<field>
|
|
<name>uri</name>
|
|
<type>text</type>
|
|
</field>
|
|
<field>
|
|
<name>synctoken</name>
|
|
<type>integer</type>
|
|
<default>1</default>
|
|
<notnull>true</notnull>
|
|
<unsigned>true</unsigned>
|
|
</field>
|
|
<field>
|
|
<name>addressbookid</name>
|
|
<type>integer</type>
|
|
<notnull>true</notnull>
|
|
</field>
|
|
<field>
|
|
<name>operation</name>
|
|
<type>integer</type>
|
|
<notnull>true</notnull>
|
|
<length>1</length>
|
|
</field>
|
|
|
|
<index>
|
|
<name>addressbookid_synctoken</name>
|
|
<field>
|
|
<name>addressbookid</name>
|
|
</field>
|
|
<field>
|
|
<name>synctoken</name>
|
|
</field>
|
|
</index>
|
|
|
|
</declaration>
|
|
</table>
|
|
|
|
</database>
|