123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729 |
- <?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>
- <length>255</length>
- </field>
- <field>
- <name>displayname</name>
- <type>text</type>
- <length>255</length>
- </field>
- <field>
- <name>uri</name>
- <type>text</type>
- <length>255</length>
- </field>
- <field>
- <name>description</name>
- <type>text</type>
- <length>255</length>
- </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>
- <length>255</length>
- </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>
- <length>255</length>
- </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>
- <!--
- CREATE TABLE calendarobjects (
- id INT(11) UNSIGNED NOT NULL PRIMARY KEY AUTO_INCREMENT,
- calendardata MEDIUMBLOB,
- uri VARBINARY(200),
- calendarid INTEGER UNSIGNED NOT NULL,
- lastmodified INT(11) UNSIGNED,
- etag VARBINARY(32),
- size INT(11) UNSIGNED NOT NULL,
- componenttype VARBINARY(8),
- firstoccurence INT(11) UNSIGNED,
- lastoccurence INT(11) UNSIGNED,
- uid VARBINARY(200),
- UNIQUE(calendarid, uri)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- -->
- <table>
- <name>*dbprefix*calendarobjects</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>calendardata</name>
- <type>blob</type>
- </field>
- <field>
- <name>uri</name>
- <type>text</type>
- <length>255</length>
- </field>
- <field>
- <name>calendarid</name>
- <type>integer</type>
- <unsigned>true</unsigned>
- <notnull>true</notnull>
- </field>
- <field>
- <name>lastmodified</name>
- <type>integer</type>
- <unsigned>true</unsigned>
- </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>
- <field>
- <name>componenttype</name>
- <type>text</type>
- <length>8</length>
- </field>
- <field>
- <name>firstoccurence</name>
- <type>integer</type>
- <unsigned>true</unsigned>
- <length>11</length>
- </field>
- <field>
- <name>lastoccurence</name>
- <type>integer</type>
- <unsigned>true</unsigned>
- <length>11</length>
- </field>
- <field>
- <name>uid</name>
- <type>text</type>
- <length>255</length>
- </field>
- <field>
- <comments>0 - public, 1 - private, 2 - confidential</comments>
- <name>classification</name>
- <type>integer</type>
- <default>0</default>
- </field>
- <index>
- <name>calobjects_index</name>
- <unique>true</unique>
- <field>
- <name>calendarid</name>
- </field>
- <field>
- <name>uri</name>
- </field>
- </index>
- </declaration>
- </table>
- <!--
- CREATE TABLE calendars (
- id INTEGER UNSIGNED NOT NULL PRIMARY KEY AUTO_INCREMENT,
- principaluri VARBINARY(100),
- displayname VARCHAR(100),
- uri VARBINARY(200),
- synctoken INTEGER UNSIGNED NOT NULL DEFAULT '1',
- description TEXT,
- calendarorder INT(11) UNSIGNED NOT NULL DEFAULT '0',
- calendarcolor VARBINARY(10),
- timezone CLOB,
- components VARBINARY(20),
- transparent TINYINT(1) NOT NULL DEFAULT '0',
- UNIQUE(principaluri, uri)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- -->
- <table>
- <name>*dbprefix*calendars</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>
- <length>255</length>
- </field>
- <field>
- <name>displayname</name>
- <type>text</type>
- <length>255</length>
- </field>
- <field>
- <name>uri</name>
- <type>text</type>
- <length>255</length>
- </field>
- <field>
- <name>synctoken</name>
- <type>integer</type>
- <default>1</default>
- <notnull>true</notnull>
- <unsigned>true</unsigned>
- </field>
- <field>
- <name>description</name>
- <type>text</type>
- <length>255</length>
- </field>
- <field>
- <name>calendarorder</name>
- <type>integer</type>
- <default>0</default>
- <notnull>true</notnull>
- <unsigned>true</unsigned>
- </field>
- <field>
- <name>calendarcolor</name>
- <type>text</type>
- </field>
- <field>
- <name>timezone</name>
- <type>clob</type>
- </field>
- <field>
- <name>components</name>
- <type>text</type>
- <length>64</length>
- </field>
- <field>
- <name>transparent</name>
- <type>integer</type>
- <length>1</length>
- <notnull>true</notnull>
- <default>0</default>
- </field>
- <index>
- <name>calendars_index</name>
- <unique>true</unique>
- <field>
- <name>principaluri</name>
- </field>
- <field>
- <name>uri</name>
- </field>
- </index>
- </declaration>
- </table>
- <!--
- CREATE TABLE calendarchanges (
- id INT(11) UNSIGNED NOT NULL PRIMARY KEY AUTO_INCREMENT,
- uri VARBINARY(200) NOT NULL,
- synctoken INT(11) UNSIGNED NOT NULL,
- calendarid INT(11) UNSIGNED NOT NULL,
- operation TINYINT(1) NOT NULL,
- INDEX calendarid_synctoken (calendarid, synctoken)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- -->
- <table>
- <name>*dbprefix*calendarchanges</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>
- <length>255</length>
- </field>
- <field>
- <name>synctoken</name>
- <type>integer</type>
- <default>1</default>
- <notnull>true</notnull>
- <unsigned>true</unsigned>
- </field>
- <field>
- <name>calendarid</name>
- <type>integer</type>
- <notnull>true</notnull>
- </field>
- <field>
- <name>operation</name>
- <type>integer</type>
- <notnull>true</notnull>
- <length>1</length>
- </field>
- <index>
- <name>calendarid_synctoken</name>
- <field>
- <name>calendarid</name>
- </field>
- <field>
- <name>synctoken</name>
- </field>
- </index>
- </declaration>
- </table>
- <!--
- CREATE TABLE calendarsubscriptions (
- id INT(11) UNSIGNED NOT NULL PRIMARY KEY AUTO_INCREMENT,
- uri VARBINARY(200) NOT NULL,
- principaluri VARBINARY(100) NOT NULL,
- source TEXT,
- displayname VARCHAR(100),
- refreshrate VARCHAR(10),
- calendarorder INT(11) UNSIGNED NOT NULL DEFAULT '0',
- calendarcolor VARBINARY(10),
- striptodos TINYINT(1) NULL,
- stripalarms TINYINT(1) NULL,
- stripattachments TINYINT(1) NULL,
- lastmodified INT(11) UNSIGNED,
- UNIQUE(principaluri, uri)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
- -->
- <table>
- <name>*dbprefix*calendarsubscriptions</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>principaluri</name>
- <type>text</type>
- <length>255</length>
- </field>
- <field>
- <name>source</name>
- <type>text</type>
- <length>255</length>
- </field>
- <field>
- <name>displayname</name>
- <type>text</type>
- <length>100</length>
- </field>
- <field>
- <name>refreshrate</name>
- <type>text</type>
- <length>10</length>
- </field>
- <field>
- <name>calendarorder</name>
- <type>integer</type>
- <default>0</default>
- <notnull>true</notnull>
- <unsigned>true</unsigned>
- </field>
- <field>
- <name>calendarcolor</name>
- <type>text</type>
- </field>
- <field>
- <name>striptodos</name>
- <type>integer</type>
- <length>1</length>
- </field>
- <field>
- <name>stripalarms</name>
- <type>integer</type>
- <length>1</length>
- </field>
- <field>
- <name>stripattachments</name>
- <type>integer</type>
- <length>1</length>
- </field>
- <field>
- <name>lastmodified</name>
- <type>integer</type>
- <unsigned>true</unsigned>
- </field>
- <index>
- <name>calsub_index</name>
- <unique>true</unique>
- <field>
- <name>principaluri</name>
- </field>
- <field>
- <name>uri</name>
- </field>
- </index>
- </declaration>
- </table>
- <!--
- CREATE TABLE schedulingobjects (
- id INT(11) UNSIGNED NOT NULL PRIMARY KEY AUTO_INCREMENT,
- principaluri VARBINARY(255),
- calendardata 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*schedulingobjects</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>
- <length>255</length>
- </field>
- <field>
- <name>calendardata</name>
- <type>blob</type>
- </field>
- <field>
- <name>uri</name>
- <type>text</type>
- <length>255</length>
- </field>
- <field>
- <name>lastmodified</name>
- <type>integer</type>
- <unsigned>true</unsigned>
- </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>
- <table>
- <name>*dbprefix*cards_properties</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></default>
- <notnull>true</notnull>
- <length>11</length>
- </field>
- <field>
- <name>cardid</name>
- <type>integer</type>
- <default></default>
- <notnull>true</notnull>
- <unsigned>true</unsigned>
- <length>11</length>
- </field>
- <field>
- <name>name</name>
- <type>text</type>
- <default></default>
- <notnull>false</notnull>
- <length>64</length>
- </field>
- <field>
- <name>value</name>
- <type>text</type>
- <default></default>
- <notnull>false</notnull>
- <length>255</length>
- </field>
- <field>
- <name>preferred</name>
- <type>integer</type>
- <default>1</default>
- <notnull>true</notnull>
- <length>4</length>
- </field>
- <index>
- <name>card_contactid_index</name>
- <field>
- <name>cardid</name>
- <sorting>ascending</sorting>
- </field>
- </index>
- <index>
- <name>card_name_index</name>
- <field>
- <name>name</name>
- <sorting>ascending</sorting>
- </field>
- </index>
- <index>
- <name>card_value_index</name>
- <field>
- <name>value</name>
- <sorting>ascending</sorting>
- </field>
- </index>
- </declaration>
- </table>
- <table>
- <name>*dbprefix*dav_shares</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>
- <length>255</length>
- </field>
- <field>
- <name>type</name>
- <type>text</type>
- <length>255</length>
- </field>
- <field>
- <name>access</name>
- <type>integer</type>
- <length>1</length>
- </field>
- <field>
- <name>resourceid</name>
- <type>integer</type>
- <notnull>true</notnull>
- <unsigned>true</unsigned>
- </field>
- <field>
- <name>publicuri</name>
- <type>text</type>
- <length>255</length>
- </field>
- <index>
- <name>dav_shares_index</name>
- <unique>true</unique>
- <field>
- <name>principaluri</name>
- </field>
- <field>
- <name>resourceid</name>
- </field>
- <field>
- <name>type</name>
- </field>
- <field>
- <name>publicuri</name>
- </field>
- </index>
- </declaration>
- </table>
- </database>
|