1
0

database.xml 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729
  1. <?xml version="1.0" encoding="ISO-8859-1" ?>
  2. <database>
  3. <!--
  4. CREATE TABLE addressbooks (
  5. id INT(11) UNSIGNED NOT NULL PRIMARY KEY AUTO_INCREMENT,
  6. principaluri VARBINARY(255),
  7. displayname VARCHAR(255),
  8. uri VARBINARY(200),
  9. description TEXT,
  10. synctoken INT(11) UNSIGNED NOT NULL DEFAULT '1',
  11. UNIQUE(principaluri(100), uri(100))
  12. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  13. -->
  14. <table>
  15. <name>*dbprefix*addressbooks</name>
  16. <declaration>
  17. <field>
  18. <name>id</name>
  19. <type>integer</type>
  20. <default>0</default>
  21. <notnull>true</notnull>
  22. <autoincrement>1</autoincrement>
  23. <unsigned>true</unsigned>
  24. <length>11</length>
  25. </field>
  26. <field>
  27. <name>principaluri</name>
  28. <type>text</type>
  29. <length>255</length>
  30. </field>
  31. <field>
  32. <name>displayname</name>
  33. <type>text</type>
  34. <length>255</length>
  35. </field>
  36. <field>
  37. <name>uri</name>
  38. <type>text</type>
  39. <length>255</length>
  40. </field>
  41. <field>
  42. <name>description</name>
  43. <type>text</type>
  44. <length>255</length>
  45. </field>
  46. <field>
  47. <name>synctoken</name>
  48. <type>integer</type>
  49. <default>1</default>
  50. <notnull>true</notnull>
  51. <unsigned>true</unsigned>
  52. </field>
  53. <index>
  54. <name>addressbook_index</name>
  55. <unique>true</unique>
  56. <field>
  57. <name>principaluri</name>
  58. </field>
  59. <field>
  60. <name>uri</name>
  61. </field>
  62. </index>
  63. </declaration>
  64. </table>
  65. <!--
  66. CREATE TABLE cards (
  67. id INT(11) UNSIGNED NOT NULL PRIMARY KEY AUTO_INCREMENT,
  68. addressbookid INT(11) UNSIGNED NOT NULL,
  69. carddata MEDIUMBLOB,
  70. uri VARBINARY(200),
  71. lastmodified INT(11) UNSIGNED,
  72. etag VARBINARY(32),
  73. size INT(11) UNSIGNED NOT NULL
  74. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  75. -->
  76. <table>
  77. <name>*dbprefix*cards</name>
  78. <declaration>
  79. <field>
  80. <name>id</name>
  81. <type>integer</type>
  82. <default>0</default>
  83. <notnull>true</notnull>
  84. <autoincrement>1</autoincrement>
  85. <unsigned>true</unsigned>
  86. <length>11</length>
  87. </field>
  88. <field>
  89. <name>addressbookid</name>
  90. <type>integer</type>
  91. <default>0</default>
  92. <notnull>true</notnull>
  93. </field>
  94. <field>
  95. <name>carddata</name>
  96. <type>blob</type>
  97. </field>
  98. <field>
  99. <name>uri</name>
  100. <type>text</type>
  101. <length>255</length>
  102. </field>
  103. <field>
  104. <name>lastmodified</name>
  105. <type>integer</type>
  106. <unsigned>true</unsigned>
  107. <length>11</length>
  108. </field>
  109. <field>
  110. <name>etag</name>
  111. <type>text</type>
  112. <length>32</length>
  113. </field>
  114. <field>
  115. <name>size</name>
  116. <type>integer</type>
  117. <notnull>true</notnull>
  118. <unsigned>true</unsigned>
  119. <length>11</length>
  120. </field>
  121. </declaration>
  122. </table>
  123. <!--
  124. CREATE TABLE addressbookchanges (
  125. id INT(11) UNSIGNED NOT NULL PRIMARY KEY AUTO_INCREMENT,
  126. uri VARBINARY(200) NOT NULL,
  127. synctoken INT(11) UNSIGNED NOT NULL,
  128. addressbookid INT(11) UNSIGNED NOT NULL,
  129. operation TINYINT(1) NOT NULL,
  130. INDEX addressbookid_synctoken (addressbookid, synctoken)
  131. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  132. -->
  133. <table>
  134. <name>*dbprefix*addressbookchanges</name>
  135. <declaration>
  136. <field>
  137. <name>id</name>
  138. <type>integer</type>
  139. <default>0</default>
  140. <notnull>true</notnull>
  141. <autoincrement>1</autoincrement>
  142. <unsigned>true</unsigned>
  143. <length>11</length>
  144. </field>
  145. <field>
  146. <name>uri</name>
  147. <type>text</type>
  148. <length>255</length>
  149. </field>
  150. <field>
  151. <name>synctoken</name>
  152. <type>integer</type>
  153. <default>1</default>
  154. <notnull>true</notnull>
  155. <unsigned>true</unsigned>
  156. </field>
  157. <field>
  158. <name>addressbookid</name>
  159. <type>integer</type>
  160. <notnull>true</notnull>
  161. </field>
  162. <field>
  163. <name>operation</name>
  164. <type>integer</type>
  165. <notnull>true</notnull>
  166. <length>1</length>
  167. </field>
  168. <index>
  169. <name>addressbookid_synctoken</name>
  170. <field>
  171. <name>addressbookid</name>
  172. </field>
  173. <field>
  174. <name>synctoken</name>
  175. </field>
  176. </index>
  177. </declaration>
  178. </table>
  179. <!--
  180. CREATE TABLE calendarobjects (
  181. id INT(11) UNSIGNED NOT NULL PRIMARY KEY AUTO_INCREMENT,
  182. calendardata MEDIUMBLOB,
  183. uri VARBINARY(200),
  184. calendarid INTEGER UNSIGNED NOT NULL,
  185. lastmodified INT(11) UNSIGNED,
  186. etag VARBINARY(32),
  187. size INT(11) UNSIGNED NOT NULL,
  188. componenttype VARBINARY(8),
  189. firstoccurence INT(11) UNSIGNED,
  190. lastoccurence INT(11) UNSIGNED,
  191. uid VARBINARY(200),
  192. UNIQUE(calendarid, uri)
  193. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  194. -->
  195. <table>
  196. <name>*dbprefix*calendarobjects</name>
  197. <declaration>
  198. <field>
  199. <name>id</name>
  200. <type>integer</type>
  201. <default>0</default>
  202. <notnull>true</notnull>
  203. <autoincrement>1</autoincrement>
  204. <unsigned>true</unsigned>
  205. <length>11</length>
  206. </field>
  207. <field>
  208. <name>calendardata</name>
  209. <type>blob</type>
  210. </field>
  211. <field>
  212. <name>uri</name>
  213. <type>text</type>
  214. <length>255</length>
  215. </field>
  216. <field>
  217. <name>calendarid</name>
  218. <type>integer</type>
  219. <unsigned>true</unsigned>
  220. <notnull>true</notnull>
  221. </field>
  222. <field>
  223. <name>lastmodified</name>
  224. <type>integer</type>
  225. <unsigned>true</unsigned>
  226. </field>
  227. <field>
  228. <name>etag</name>
  229. <type>text</type>
  230. <length>32</length>
  231. </field>
  232. <field>
  233. <name>size</name>
  234. <type>integer</type>
  235. <notnull>true</notnull>
  236. <unsigned>true</unsigned>
  237. <length>11</length>
  238. </field>
  239. <field>
  240. <name>componenttype</name>
  241. <type>text</type>
  242. <length>8</length>
  243. </field>
  244. <field>
  245. <name>firstoccurence</name>
  246. <type>integer</type>
  247. <unsigned>true</unsigned>
  248. <length>11</length>
  249. </field>
  250. <field>
  251. <name>lastoccurence</name>
  252. <type>integer</type>
  253. <unsigned>true</unsigned>
  254. <length>11</length>
  255. </field>
  256. <field>
  257. <name>uid</name>
  258. <type>text</type>
  259. <length>255</length>
  260. </field>
  261. <field>
  262. <comments>0 - public, 1 - private, 2 - confidential</comments>
  263. <name>classification</name>
  264. <type>integer</type>
  265. <default>0</default>
  266. </field>
  267. <index>
  268. <name>calobjects_index</name>
  269. <unique>true</unique>
  270. <field>
  271. <name>calendarid</name>
  272. </field>
  273. <field>
  274. <name>uri</name>
  275. </field>
  276. </index>
  277. </declaration>
  278. </table>
  279. <!--
  280. CREATE TABLE calendars (
  281. id INTEGER UNSIGNED NOT NULL PRIMARY KEY AUTO_INCREMENT,
  282. principaluri VARBINARY(100),
  283. displayname VARCHAR(100),
  284. uri VARBINARY(200),
  285. synctoken INTEGER UNSIGNED NOT NULL DEFAULT '1',
  286. description TEXT,
  287. calendarorder INT(11) UNSIGNED NOT NULL DEFAULT '0',
  288. calendarcolor VARBINARY(10),
  289. timezone CLOB,
  290. components VARBINARY(20),
  291. transparent TINYINT(1) NOT NULL DEFAULT '0',
  292. UNIQUE(principaluri, uri)
  293. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  294. -->
  295. <table>
  296. <name>*dbprefix*calendars</name>
  297. <declaration>
  298. <field>
  299. <name>id</name>
  300. <type>integer</type>
  301. <default>0</default>
  302. <notnull>true</notnull>
  303. <autoincrement>1</autoincrement>
  304. <unsigned>true</unsigned>
  305. <length>11</length>
  306. </field>
  307. <field>
  308. <name>principaluri</name>
  309. <type>text</type>
  310. <length>255</length>
  311. </field>
  312. <field>
  313. <name>displayname</name>
  314. <type>text</type>
  315. <length>255</length>
  316. </field>
  317. <field>
  318. <name>uri</name>
  319. <type>text</type>
  320. <length>255</length>
  321. </field>
  322. <field>
  323. <name>synctoken</name>
  324. <type>integer</type>
  325. <default>1</default>
  326. <notnull>true</notnull>
  327. <unsigned>true</unsigned>
  328. </field>
  329. <field>
  330. <name>description</name>
  331. <type>text</type>
  332. <length>255</length>
  333. </field>
  334. <field>
  335. <name>calendarorder</name>
  336. <type>integer</type>
  337. <default>0</default>
  338. <notnull>true</notnull>
  339. <unsigned>true</unsigned>
  340. </field>
  341. <field>
  342. <name>calendarcolor</name>
  343. <type>text</type>
  344. </field>
  345. <field>
  346. <name>timezone</name>
  347. <type>clob</type>
  348. </field>
  349. <field>
  350. <name>components</name>
  351. <type>text</type>
  352. <length>64</length>
  353. </field>
  354. <field>
  355. <name>transparent</name>
  356. <type>integer</type>
  357. <length>1</length>
  358. <notnull>true</notnull>
  359. <default>0</default>
  360. </field>
  361. <index>
  362. <name>calendars_index</name>
  363. <unique>true</unique>
  364. <field>
  365. <name>principaluri</name>
  366. </field>
  367. <field>
  368. <name>uri</name>
  369. </field>
  370. </index>
  371. </declaration>
  372. </table>
  373. <!--
  374. CREATE TABLE calendarchanges (
  375. id INT(11) UNSIGNED NOT NULL PRIMARY KEY AUTO_INCREMENT,
  376. uri VARBINARY(200) NOT NULL,
  377. synctoken INT(11) UNSIGNED NOT NULL,
  378. calendarid INT(11) UNSIGNED NOT NULL,
  379. operation TINYINT(1) NOT NULL,
  380. INDEX calendarid_synctoken (calendarid, synctoken)
  381. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  382. -->
  383. <table>
  384. <name>*dbprefix*calendarchanges</name>
  385. <declaration>
  386. <field>
  387. <name>id</name>
  388. <type>integer</type>
  389. <default>0</default>
  390. <notnull>true</notnull>
  391. <autoincrement>1</autoincrement>
  392. <unsigned>true</unsigned>
  393. <length>11</length>
  394. </field>
  395. <field>
  396. <name>uri</name>
  397. <type>text</type>
  398. <length>255</length>
  399. </field>
  400. <field>
  401. <name>synctoken</name>
  402. <type>integer</type>
  403. <default>1</default>
  404. <notnull>true</notnull>
  405. <unsigned>true</unsigned>
  406. </field>
  407. <field>
  408. <name>calendarid</name>
  409. <type>integer</type>
  410. <notnull>true</notnull>
  411. </field>
  412. <field>
  413. <name>operation</name>
  414. <type>integer</type>
  415. <notnull>true</notnull>
  416. <length>1</length>
  417. </field>
  418. <index>
  419. <name>calendarid_synctoken</name>
  420. <field>
  421. <name>calendarid</name>
  422. </field>
  423. <field>
  424. <name>synctoken</name>
  425. </field>
  426. </index>
  427. </declaration>
  428. </table>
  429. <!--
  430. CREATE TABLE calendarsubscriptions (
  431. id INT(11) UNSIGNED NOT NULL PRIMARY KEY AUTO_INCREMENT,
  432. uri VARBINARY(200) NOT NULL,
  433. principaluri VARBINARY(100) NOT NULL,
  434. source TEXT,
  435. displayname VARCHAR(100),
  436. refreshrate VARCHAR(10),
  437. calendarorder INT(11) UNSIGNED NOT NULL DEFAULT '0',
  438. calendarcolor VARBINARY(10),
  439. striptodos TINYINT(1) NULL,
  440. stripalarms TINYINT(1) NULL,
  441. stripattachments TINYINT(1) NULL,
  442. lastmodified INT(11) UNSIGNED,
  443. UNIQUE(principaluri, uri)
  444. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  445. -->
  446. <table>
  447. <name>*dbprefix*calendarsubscriptions</name>
  448. <declaration>
  449. <field>
  450. <name>id</name>
  451. <type>integer</type>
  452. <default>0</default>
  453. <notnull>true</notnull>
  454. <autoincrement>1</autoincrement>
  455. <unsigned>true</unsigned>
  456. <length>11</length>
  457. </field>
  458. <field>
  459. <name>uri</name>
  460. <type>text</type>
  461. </field>
  462. <field>
  463. <name>principaluri</name>
  464. <type>text</type>
  465. <length>255</length>
  466. </field>
  467. <field>
  468. <name>source</name>
  469. <type>text</type>
  470. <length>255</length>
  471. </field>
  472. <field>
  473. <name>displayname</name>
  474. <type>text</type>
  475. <length>100</length>
  476. </field>
  477. <field>
  478. <name>refreshrate</name>
  479. <type>text</type>
  480. <length>10</length>
  481. </field>
  482. <field>
  483. <name>calendarorder</name>
  484. <type>integer</type>
  485. <default>0</default>
  486. <notnull>true</notnull>
  487. <unsigned>true</unsigned>
  488. </field>
  489. <field>
  490. <name>calendarcolor</name>
  491. <type>text</type>
  492. </field>
  493. <field>
  494. <name>striptodos</name>
  495. <type>integer</type>
  496. <length>1</length>
  497. </field>
  498. <field>
  499. <name>stripalarms</name>
  500. <type>integer</type>
  501. <length>1</length>
  502. </field>
  503. <field>
  504. <name>stripattachments</name>
  505. <type>integer</type>
  506. <length>1</length>
  507. </field>
  508. <field>
  509. <name>lastmodified</name>
  510. <type>integer</type>
  511. <unsigned>true</unsigned>
  512. </field>
  513. <index>
  514. <name>calsub_index</name>
  515. <unique>true</unique>
  516. <field>
  517. <name>principaluri</name>
  518. </field>
  519. <field>
  520. <name>uri</name>
  521. </field>
  522. </index>
  523. </declaration>
  524. </table>
  525. <!--
  526. CREATE TABLE schedulingobjects (
  527. id INT(11) UNSIGNED NOT NULL PRIMARY KEY AUTO_INCREMENT,
  528. principaluri VARBINARY(255),
  529. calendardata MEDIUMBLOB,
  530. uri VARBINARY(200),
  531. lastmodified INT(11) UNSIGNED,
  532. etag VARBINARY(32),
  533. size INT(11) UNSIGNED NOT NULL
  534. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  535. -->
  536. <table>
  537. <name>*dbprefix*schedulingobjects</name>
  538. <declaration>
  539. <field>
  540. <name>id</name>
  541. <type>integer</type>
  542. <default>0</default>
  543. <notnull>true</notnull>
  544. <autoincrement>1</autoincrement>
  545. <unsigned>true</unsigned>
  546. <length>11</length>
  547. </field>
  548. <field>
  549. <name>principaluri</name>
  550. <type>text</type>
  551. <length>255</length>
  552. </field>
  553. <field>
  554. <name>calendardata</name>
  555. <type>blob</type>
  556. </field>
  557. <field>
  558. <name>uri</name>
  559. <type>text</type>
  560. <length>255</length>
  561. </field>
  562. <field>
  563. <name>lastmodified</name>
  564. <type>integer</type>
  565. <unsigned>true</unsigned>
  566. </field>
  567. <field>
  568. <name>etag</name>
  569. <type>text</type>
  570. <length>32</length>
  571. </field>
  572. <field>
  573. <name>size</name>
  574. <type>integer</type>
  575. <notnull>true</notnull>
  576. <unsigned>true</unsigned>
  577. <length>11</length>
  578. </field>
  579. </declaration>
  580. </table>
  581. <table>
  582. <name>*dbprefix*cards_properties</name>
  583. <declaration>
  584. <field>
  585. <name>id</name>
  586. <type>integer</type>
  587. <default>0</default>
  588. <notnull>true</notnull>
  589. <autoincrement>1</autoincrement>
  590. <unsigned>true</unsigned>
  591. <length>11</length>
  592. </field>
  593. <field>
  594. <name>addressbookid</name>
  595. <type>integer</type>
  596. <default></default>
  597. <notnull>true</notnull>
  598. <length>11</length>
  599. </field>
  600. <field>
  601. <name>cardid</name>
  602. <type>integer</type>
  603. <default></default>
  604. <notnull>true</notnull>
  605. <unsigned>true</unsigned>
  606. <length>11</length>
  607. </field>
  608. <field>
  609. <name>name</name>
  610. <type>text</type>
  611. <default></default>
  612. <notnull>false</notnull>
  613. <length>64</length>
  614. </field>
  615. <field>
  616. <name>value</name>
  617. <type>text</type>
  618. <default></default>
  619. <notnull>false</notnull>
  620. <length>255</length>
  621. </field>
  622. <field>
  623. <name>preferred</name>
  624. <type>integer</type>
  625. <default>1</default>
  626. <notnull>true</notnull>
  627. <length>4</length>
  628. </field>
  629. <index>
  630. <name>card_contactid_index</name>
  631. <field>
  632. <name>cardid</name>
  633. <sorting>ascending</sorting>
  634. </field>
  635. </index>
  636. <index>
  637. <name>card_name_index</name>
  638. <field>
  639. <name>name</name>
  640. <sorting>ascending</sorting>
  641. </field>
  642. </index>
  643. <index>
  644. <name>card_value_index</name>
  645. <field>
  646. <name>value</name>
  647. <sorting>ascending</sorting>
  648. </field>
  649. </index>
  650. </declaration>
  651. </table>
  652. <table>
  653. <name>*dbprefix*dav_shares</name>
  654. <declaration>
  655. <field>
  656. <name>id</name>
  657. <type>integer</type>
  658. <default>0</default>
  659. <notnull>true</notnull>
  660. <autoincrement>1</autoincrement>
  661. <unsigned>true</unsigned>
  662. <length>11</length>
  663. </field>
  664. <field>
  665. <name>principaluri</name>
  666. <type>text</type>
  667. <length>255</length>
  668. </field>
  669. <field>
  670. <name>type</name>
  671. <type>text</type>
  672. <length>255</length>
  673. </field>
  674. <field>
  675. <name>access</name>
  676. <type>integer</type>
  677. <length>1</length>
  678. </field>
  679. <field>
  680. <name>resourceid</name>
  681. <type>integer</type>
  682. <notnull>true</notnull>
  683. <unsigned>true</unsigned>
  684. </field>
  685. <field>
  686. <name>publicuri</name>
  687. <type>text</type>
  688. <length>255</length>
  689. </field>
  690. <index>
  691. <name>dav_shares_index</name>
  692. <unique>true</unique>
  693. <field>
  694. <name>principaluri</name>
  695. </field>
  696. <field>
  697. <name>resourceid</name>
  698. </field>
  699. <field>
  700. <name>type</name>
  701. </field>
  702. <field>
  703. <name>publicuri</name>
  704. </field>
  705. </index>
  706. </declaration>
  707. </table>
  708. </database>