db_structure.xml 20 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174
  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <database>
  3. <name>*dbname*</name>
  4. <create>true</create>
  5. <overwrite>false</overwrite>
  6. <charset>utf8</charset>
  7. <table>
  8. <name>*dbprefix*appconfig</name>
  9. <declaration>
  10. <field>
  11. <name>appid</name>
  12. <type>text</type>
  13. <default></default>
  14. <notnull>true</notnull>
  15. <length>32</length>
  16. </field>
  17. <field>
  18. <name>configkey</name>
  19. <type>text</type>
  20. <default></default>
  21. <notnull>true</notnull>
  22. <length>64</length>
  23. </field>
  24. <field>
  25. <name>configvalue</name>
  26. <type>clob</type>
  27. <notnull>false</notnull>
  28. </field>
  29. <index>
  30. <name>appconfig_appid_key_index</name>
  31. <primary>true</primary>
  32. <unique>true</unique>
  33. <field>
  34. <name>appid</name>
  35. <sorting>ascending</sorting>
  36. </field>
  37. <field>
  38. <name>configkey</name>
  39. <sorting>ascending</sorting>
  40. </field>
  41. </index>
  42. <index>
  43. <name>appconfig_config_key_index</name>
  44. <field>
  45. <name>configkey</name>
  46. <sorting>ascending</sorting>
  47. </field>
  48. </index>
  49. </declaration>
  50. </table>
  51. <table>
  52. <name>*dbprefix*storages</name>
  53. <declaration>
  54. <field>
  55. <name>id</name>
  56. <type>text</type>
  57. <default></default>
  58. <notnull>false</notnull>
  59. <length>64</length>
  60. </field>
  61. <field>
  62. <name>numeric_id</name>
  63. <type>integer</type>
  64. <default>0</default>
  65. <notnull>true</notnull>
  66. <autoincrement>1</autoincrement>
  67. <length>4</length>
  68. </field>
  69. <index>
  70. <name>storages_id_index</name>
  71. <unique>true</unique>
  72. <field>
  73. <name>id</name>
  74. <sorting>ascending</sorting>
  75. </field>
  76. </index>
  77. </declaration>
  78. </table>
  79. <table>
  80. <name>*dbprefix*file_map</name>
  81. <declaration>
  82. <field>
  83. <name>logic_path</name>
  84. <type>text</type>
  85. <default></default>
  86. <notnull>true</notnull>
  87. <length>512</length>
  88. </field>
  89. <field>
  90. <name>logic_path_hash</name>
  91. <type>text</type>
  92. <default></default>
  93. <notnull>true</notnull>
  94. <length>32</length>
  95. </field>
  96. <field>
  97. <name>physic_path</name>
  98. <type>text</type>
  99. <default></default>
  100. <notnull>true</notnull>
  101. <length>512</length>
  102. </field>
  103. <field>
  104. <name>physic_path_hash</name>
  105. <type>text</type>
  106. <default></default>
  107. <notnull>true</notnull>
  108. <length>32</length>
  109. </field>
  110. <index>
  111. <name>file_map_lp_index</name>
  112. <primary>true</primary>
  113. <unique>true</unique>
  114. <field>
  115. <name>logic_path_hash</name>
  116. <sorting>ascending</sorting>
  117. </field>
  118. </index>
  119. <index>
  120. <name>file_map_pp_index</name>
  121. <unique>true</unique>
  122. <field>
  123. <name>physic_path_hash</name>
  124. <sorting>ascending</sorting>
  125. </field>
  126. </index>
  127. </declaration>
  128. </table>
  129. <table>
  130. <name>*dbprefix*mimetypes</name>
  131. <declaration>
  132. <field>
  133. <name>id</name>
  134. <type>integer</type>
  135. <default>0</default>
  136. <notnull>true</notnull>
  137. <autoincrement>1</autoincrement>
  138. <length>4</length>
  139. </field>
  140. <field>
  141. <name>mimetype</name>
  142. <type>text</type>
  143. <default></default>
  144. <notnull>true</notnull>
  145. <length>255</length>
  146. </field>
  147. <index>
  148. <name>mimetype_id_index</name>
  149. <unique>true</unique>
  150. <field>
  151. <name>mimetype</name>
  152. <sorting>ascending</sorting>
  153. </field>
  154. </index>
  155. </declaration>
  156. </table>
  157. <table>
  158. <name>*dbprefix*filecache</name>
  159. <declaration>
  160. <field>
  161. <name>fileid</name>
  162. <type>integer</type>
  163. <default>0</default>
  164. <notnull>true</notnull>
  165. <autoincrement>1</autoincrement>
  166. <length>4</length>
  167. </field>
  168. <field>
  169. <name>storage</name>
  170. <type>integer</type>
  171. <default></default>
  172. <notnull>true</notnull>
  173. <length>4</length>
  174. </field>
  175. <field>
  176. <name>path</name>
  177. <type>text</type>
  178. <default></default>
  179. <notnull>false</notnull>
  180. <length>512</length>
  181. </field>
  182. <field>
  183. <name>path_hash</name>
  184. <type>text</type>
  185. <default></default>
  186. <notnull>true</notnull>
  187. <length>32</length>
  188. </field>
  189. <field>
  190. <name>parent</name>
  191. <type>integer</type>
  192. <default></default>
  193. <notnull>true</notnull>
  194. <length>4</length>
  195. </field>
  196. <field>
  197. <name>name</name>
  198. <type>text</type>
  199. <default></default>
  200. <notnull>false</notnull>
  201. <length>250</length>
  202. </field>
  203. <field>
  204. <name>mimetype</name>
  205. <type>integer</type>
  206. <default></default>
  207. <notnull>true</notnull>
  208. <length>4</length>
  209. </field>
  210. <field>
  211. <name>mimepart</name>
  212. <type>integer</type>
  213. <default></default>
  214. <notnull>true</notnull>
  215. <length>4</length>
  216. </field>
  217. <field>
  218. <name>size</name>
  219. <type>integer</type>
  220. <default></default>
  221. <notnull>true</notnull>
  222. <length>8</length>
  223. </field>
  224. <field>
  225. <name>mtime</name>
  226. <type>integer</type>
  227. <default></default>
  228. <notnull>true</notnull>
  229. <length>4</length>
  230. </field>
  231. <field>
  232. <name>storage_mtime</name>
  233. <type>integer</type>
  234. <default></default>
  235. <notnull>true</notnull>
  236. <length>4</length>
  237. </field>
  238. <field>
  239. <name>encrypted</name>
  240. <type>integer</type>
  241. <default>0</default>
  242. <notnull>true</notnull>
  243. <length>4</length>
  244. </field>
  245. <field>
  246. <name>unencrypted_size</name>
  247. <type>integer</type>
  248. <default>0</default>
  249. <notnull>true</notnull>
  250. <length>8</length>
  251. </field>
  252. <field>
  253. <name>etag</name>
  254. <type>text</type>
  255. <default></default>
  256. <notnull>false</notnull>
  257. <length>40</length>
  258. </field>
  259. <index>
  260. <name>fs_storage_path_hash</name>
  261. <unique>true</unique>
  262. <field>
  263. <name>storage</name>
  264. <sorting>ascending</sorting>
  265. </field>
  266. <field>
  267. <name>path_hash</name>
  268. <sorting>ascending</sorting>
  269. </field>
  270. </index>
  271. <index>
  272. <name>fs_parent_name_hash</name>
  273. <field>
  274. <name>parent</name>
  275. <sorting>ascending</sorting>
  276. </field>
  277. <field>
  278. <name>name</name>
  279. <sorting>ascending</sorting>
  280. </field>
  281. </index>
  282. <index>
  283. <name>fs_storage_mimetype</name>
  284. <field>
  285. <name>storage</name>
  286. <sorting>ascending</sorting>
  287. </field>
  288. <field>
  289. <name>mimetype</name>
  290. <sorting>ascending</sorting>
  291. </field>
  292. </index>
  293. <index>
  294. <name>fs_storage_mimepart</name>
  295. <field>
  296. <name>storage</name>
  297. <sorting>ascending</sorting>
  298. </field>
  299. <field>
  300. <name>mimepart</name>
  301. <sorting>ascending</sorting>
  302. </field>
  303. </index>
  304. </declaration>
  305. </table>
  306. <table>
  307. <name>*dbprefix*permissions</name>
  308. <declaration>
  309. <field>
  310. <name>fileid</name>
  311. <type>integer</type>
  312. <default>0</default>
  313. <notnull>true</notnull>
  314. <length>4</length>
  315. </field>
  316. <field>
  317. <name>user</name>
  318. <type>text</type>
  319. <default></default>
  320. <notnull>false</notnull>
  321. <length>64</length>
  322. </field>
  323. <field>
  324. <name>permissions</name>
  325. <type>integer</type>
  326. <default>0</default>
  327. <notnull>true</notnull>
  328. <length>4</length>
  329. </field>
  330. <index>
  331. <name>id_user_index</name>
  332. <field>
  333. <name>fileid</name>
  334. <sorting>ascending</sorting>
  335. </field>
  336. <field>
  337. <name>user</name>
  338. <sorting>ascending</sorting>
  339. </field>
  340. </index>
  341. </declaration>
  342. </table>
  343. <table>
  344. <name>*dbprefix*group_user</name>
  345. <declaration>
  346. <field>
  347. <name>gid</name>
  348. <type>text</type>
  349. <default></default>
  350. <notnull>true</notnull>
  351. <length>64</length>
  352. </field>
  353. <field>
  354. <name>uid</name>
  355. <type>text</type>
  356. <default></default>
  357. <notnull>true</notnull>
  358. <length>64</length>
  359. </field>
  360. <index>
  361. <name>gu_gid_uid_index</name>
  362. <primary>true</primary>
  363. <unique>true</unique>
  364. <field>
  365. <name>gid</name>
  366. <sorting>ascending</sorting>
  367. </field>
  368. <field>
  369. <name>uid</name>
  370. <sorting>ascending</sorting>
  371. </field>
  372. </index>
  373. </declaration>
  374. </table>
  375. <table>
  376. <name>*dbprefix*group_admin</name>
  377. <declaration>
  378. <field>
  379. <name>gid</name>
  380. <type>text</type>
  381. <default></default>
  382. <notnull>true</notnull>
  383. <length>64</length>
  384. </field>
  385. <field>
  386. <name>uid</name>
  387. <type>text</type>
  388. <default></default>
  389. <notnull>true</notnull>
  390. <length>64</length>
  391. </field>
  392. <index>
  393. <name>group_admin_uid</name>
  394. <field>
  395. <name>uid</name>
  396. <sorting>ascending</sorting>
  397. </field>
  398. </index>
  399. <index>
  400. <name>ga_gid_uid_index</name>
  401. <primary>true</primary>
  402. <unique>true</unique>
  403. <field>
  404. <name>gid</name>
  405. <sorting>ascending</sorting>
  406. </field>
  407. <field>
  408. <name>uid</name>
  409. <sorting>ascending</sorting>
  410. </field>
  411. </index>
  412. </declaration>
  413. </table>
  414. <table>
  415. <name>*dbprefix*groups</name>
  416. <declaration>
  417. <field>
  418. <name>gid</name>
  419. <type>text</type>
  420. <default></default>
  421. <notnull>true</notnull>
  422. <length>64</length>
  423. </field>
  424. <index>
  425. <name>groups_pKey</name>
  426. <primary>true</primary>
  427. <field>
  428. <name>gid</name>
  429. <sorting>ascending</sorting>
  430. </field>
  431. </index>
  432. </declaration>
  433. </table>
  434. <table>
  435. <name>*dbprefix*locks</name>
  436. <declaration>
  437. <field>
  438. <name>id</name>
  439. <type>integer</type>
  440. <default>0</default>
  441. <notnull>true</notnull>
  442. <autoincrement>1</autoincrement>
  443. <unsigned>true</unsigned>
  444. <length>4</length>
  445. </field>
  446. <field>
  447. <name>userid</name>
  448. <type>text</type>
  449. <default></default>
  450. <notnull>false</notnull>
  451. <length>64</length>
  452. </field>
  453. <field>
  454. <name>owner</name>
  455. <type>text</type>
  456. <default></default>
  457. <notnull>false</notnull>
  458. <length>100</length>
  459. </field>
  460. <field>
  461. <name>timeout</name>
  462. <type>integer</type>
  463. <notnull>false</notnull>
  464. <unsigned>true</unsigned>
  465. <length>4</length>
  466. </field>
  467. <field>
  468. <name>created</name>
  469. <type>integer</type>
  470. <notnull>false</notnull>
  471. <length>8</length>
  472. </field>
  473. <field>
  474. <name>token</name>
  475. <type>text</type>
  476. <default></default>
  477. <notnull>false</notnull>
  478. <length>100</length>
  479. </field>
  480. <field>
  481. <name>scope</name>
  482. <type>integer</type>
  483. <notnull>false</notnull>
  484. <length>1</length>
  485. </field>
  486. <field>
  487. <name>depth</name>
  488. <type>integer</type>
  489. <notnull>false</notnull>
  490. <length>1</length>
  491. </field>
  492. <field>
  493. <name>uri</name>
  494. <type>clob</type>
  495. <notnull>false</notnull>
  496. </field>
  497. </declaration>
  498. </table>
  499. <table>
  500. <name>*dbprefix*preferences</name>
  501. <declaration>
  502. <field>
  503. <name>userid</name>
  504. <type>text</type>
  505. <default></default>
  506. <notnull>true</notnull>
  507. <length>64</length>
  508. </field>
  509. <field>
  510. <name>appid</name>
  511. <type>text</type>
  512. <default></default>
  513. <notnull>true</notnull>
  514. <length>32</length>
  515. </field>
  516. <field>
  517. <name>configkey</name>
  518. <type>text</type>
  519. <default></default>
  520. <notnull>true</notnull>
  521. <length>64</length>
  522. </field>
  523. <field>
  524. <name>configvalue</name>
  525. <type>clob</type>
  526. <notnull>false</notnull>
  527. </field>
  528. <index>
  529. <name>pref_userid_appid_key_index</name>
  530. <primary>true</primary>
  531. <unique>true</unique>
  532. <field>
  533. <name>userid</name>
  534. <sorting>ascending</sorting>
  535. </field>
  536. <field>
  537. <name>appid</name>
  538. <sorting>ascending</sorting>
  539. </field>
  540. <field>
  541. <name>configkey</name>
  542. <sorting>ascending</sorting>
  543. </field>
  544. </index>
  545. </declaration>
  546. </table>
  547. <table>
  548. <name>*dbprefix*properties</name>
  549. <declaration>
  550. <field>
  551. <name>id</name>
  552. <autoincrement>1</autoincrement>
  553. <type>integer</type>
  554. <default>0</default>
  555. <notnull>true</notnull>
  556. <length>4</length>
  557. </field>
  558. <field>
  559. <name>userid</name>
  560. <type>text</type>
  561. <default></default>
  562. <notnull>true</notnull>
  563. <length>64</length>
  564. </field>
  565. <field>
  566. <name>propertypath</name>
  567. <type>text</type>
  568. <default></default>
  569. <notnull>true</notnull>
  570. <length>255</length>
  571. </field>
  572. <field>
  573. <name>propertyname</name>
  574. <type>text</type>
  575. <default></default>
  576. <notnull>true</notnull>
  577. <length>255</length>
  578. </field>
  579. <field>
  580. <name>propertyvalue</name>
  581. <type>text</type>
  582. <notnull>true</notnull>
  583. <length>255</length>
  584. </field>
  585. <index>
  586. <name>property_index</name>
  587. <field>
  588. <name>userid</name>
  589. <sorting>ascending</sorting>
  590. </field>
  591. </index>
  592. </declaration>
  593. </table>
  594. <table>
  595. <name>*dbprefix*share</name>
  596. <declaration>
  597. <field>
  598. <name>id</name>
  599. <autoincrement>1</autoincrement>
  600. <type>integer</type>
  601. <default>0</default>
  602. <notnull>true</notnull>
  603. <length>4</length>
  604. </field>
  605. <field>
  606. <name>share_type</name>
  607. <type>integer</type>
  608. <default>0</default>
  609. <notnull>true</notnull>
  610. <length>1</length>
  611. </field>
  612. <field>
  613. <name>share_with</name>
  614. <type>text</type>
  615. <default></default>
  616. <notnull>false</notnull>
  617. <length>255</length>
  618. </field>
  619. <field>
  620. <name>uid_owner</name>
  621. <type>text</type>
  622. <default></default>
  623. <notnull>true</notnull>
  624. <length>255</length>
  625. </field>
  626. <field>
  627. <name>parent</name>
  628. <type>integer</type>
  629. <notnull>false</notnull>
  630. <length>4</length>
  631. </field>
  632. <field>
  633. <name>item_type</name>
  634. <type>text</type>
  635. <default></default>
  636. <notnull>true</notnull>
  637. <length>64</length>
  638. </field>
  639. <field>
  640. <name>item_source</name>
  641. <type>text</type>
  642. <default></default>
  643. <notnull>false</notnull>
  644. <length>255</length>
  645. </field>
  646. <field>
  647. <name>item_target</name>
  648. <type>text</type>
  649. <default></default>
  650. <notnull>false</notnull>
  651. <length>255</length>
  652. </field>
  653. <field>
  654. <name>file_source</name>
  655. <type>integer</type>
  656. <notnull>false</notnull>
  657. <length>4</length>
  658. </field>
  659. <field>
  660. <name>file_target</name>
  661. <type>text</type>
  662. <default></default>
  663. <notnull>false</notnull>
  664. <length>512</length>
  665. </field>
  666. <field>
  667. <name>permissions</name>
  668. <type>integer</type>
  669. <default>0</default>
  670. <notnull>true</notnull>
  671. <length>1</length>
  672. </field>
  673. <field>
  674. <name>stime</name>
  675. <type>integer</type>
  676. <default>0</default>
  677. <notnull>true</notnull>
  678. <length>8</length>
  679. </field>
  680. <field>
  681. <name>accepted</name>
  682. <type>integer</type>
  683. <default>0</default>
  684. <notnull>true</notnull>
  685. <length>1</length>
  686. </field>
  687. <field>
  688. <name>expiration</name>
  689. <type>timestamp</type>
  690. <default></default>
  691. <notnull>false</notnull>
  692. </field>
  693. <field>
  694. <name>token</name>
  695. <type>text</type>
  696. <default></default>
  697. <notnull>false</notnull>
  698. <length>32</length>
  699. </field>
  700. <field>
  701. <name>mail_send</name>
  702. <type>integer</type>
  703. <default>0</default>
  704. <notnull>true</notnull>
  705. <length>1</length>
  706. </field>
  707. <index>
  708. <name>item_share_type_index</name>
  709. <field>
  710. <name>item_type</name>
  711. <sorting>ascending</sorting>
  712. </field>
  713. <field>
  714. <name>share_type</name>
  715. <sorting>ascending</sorting>
  716. </field>
  717. </index>
  718. <index>
  719. <name>file_source_index</name>
  720. <field>
  721. <name>file_source</name>
  722. <sorting>ascending</sorting>
  723. </field>
  724. </index>
  725. <index>
  726. <name>token_index</name>
  727. <field>
  728. <name>token</name>
  729. <sorting>ascending</sorting>
  730. </field>
  731. </index>
  732. </declaration>
  733. </table>
  734. <table>
  735. <name>*dbprefix*jobs</name>
  736. <declaration>
  737. <field>
  738. <name>id</name>
  739. <type>integer</type>
  740. <default>0</default>
  741. <notnull>true</notnull>
  742. <autoincrement>1</autoincrement>
  743. <unsigned>true</unsigned>
  744. <length>4</length>
  745. </field>
  746. <field>
  747. <name>class</name>
  748. <type>text</type>
  749. <default></default>
  750. <notnull>true</notnull>
  751. <length>255</length>
  752. </field>
  753. <field>
  754. <name>argument</name>
  755. <type>text</type>
  756. <default></default>
  757. <notnull>true</notnull>
  758. <length>256</length>
  759. </field>
  760. <field>
  761. <name>last_run</name>
  762. <type>integer</type>
  763. <default></default>
  764. <notnull>false</notnull>
  765. </field>
  766. <index>
  767. <name>job_class_index</name>
  768. <field>
  769. <name>class</name>
  770. <sorting>ascending</sorting>
  771. </field>
  772. </index>
  773. </declaration>
  774. </table>
  775. <table>
  776. <name>*dbprefix*users</name>
  777. <declaration>
  778. <field>
  779. <name>uid</name>
  780. <type>text</type>
  781. <default></default>
  782. <notnull>true</notnull>
  783. <length>64</length>
  784. </field>
  785. <field>
  786. <name>displayname</name>
  787. <type>text</type>
  788. <default></default>
  789. <length>64</length>
  790. </field>
  791. <field>
  792. <name>password</name>
  793. <type>text</type>
  794. <default></default>
  795. <notnull>true</notnull>
  796. <length>255</length>
  797. </field>
  798. <index>
  799. <name>users_pKey</name>
  800. <primary>true</primary>
  801. <field>
  802. <name>uid</name>
  803. <sorting>ascending</sorting>
  804. </field>
  805. </index>
  806. </declaration>
  807. </table>
  808. <table>
  809. <name>*dbprefix*vcategory</name>
  810. <declaration>
  811. <field>
  812. <name>id</name>
  813. <type>integer</type>
  814. <default>0</default>
  815. <notnull>true</notnull>
  816. <autoincrement>1</autoincrement>
  817. <unsigned>true</unsigned>
  818. <length>4</length>
  819. </field>
  820. <field>
  821. <name>uid</name>
  822. <type>text</type>
  823. <default></default>
  824. <notnull>true</notnull>
  825. <length>64</length>
  826. </field>
  827. <field>
  828. <name>type</name>
  829. <type>text</type>
  830. <default></default>
  831. <notnull>true</notnull>
  832. <length>64</length>
  833. </field>
  834. <field>
  835. <name>category</name>
  836. <type>text</type>
  837. <default></default>
  838. <notnull>true</notnull>
  839. <length>255</length>
  840. </field>
  841. <index>
  842. <name>uid_index</name>
  843. <field>
  844. <name>uid</name>
  845. <sorting>ascending</sorting>
  846. </field>
  847. </index>
  848. <index>
  849. <name>type_index</name>
  850. <field>
  851. <name>type</name>
  852. <sorting>ascending</sorting>
  853. </field>
  854. </index>
  855. <index>
  856. <name>category_index</name>
  857. <field>
  858. <name>category</name>
  859. <sorting>ascending</sorting>
  860. </field>
  861. </index>
  862. </declaration>
  863. </table>
  864. <table>
  865. <name>*dbprefix*vcategory_to_object</name>
  866. <declaration>
  867. <field>
  868. <name>objid</name>
  869. <type>integer</type>
  870. <default>0</default>
  871. <notnull>true</notnull>
  872. <unsigned>true</unsigned>
  873. <length>4</length>
  874. </field>
  875. <field>
  876. <name>categoryid</name>
  877. <type>integer</type>
  878. <default>0</default>
  879. <notnull>true</notnull>
  880. <unsigned>true</unsigned>
  881. <length>4</length>
  882. </field>
  883. <field>
  884. <name>type</name>
  885. <type>text</type>
  886. <default></default>
  887. <notnull>true</notnull>
  888. <length>64</length>
  889. </field>
  890. <index>
  891. <primary>true</primary>
  892. <unique>true</unique>
  893. <name>category_object_index</name>
  894. <field>
  895. <name>categoryid</name>
  896. <sorting>ascending</sorting>
  897. </field>
  898. <field>
  899. <name>objid</name>
  900. <sorting>ascending</sorting>
  901. </field>
  902. <field>
  903. <name>type</name>
  904. <sorting>ascending</sorting>
  905. </field>
  906. </index>
  907. <index>
  908. <name>vcategory_objectd_index</name>
  909. <field>
  910. <name>objid</name>
  911. <sorting>ascending</sorting>
  912. </field>
  913. <field>
  914. <name>type</name>
  915. <sorting>ascending</sorting>
  916. </field>
  917. </index>
  918. </declaration>
  919. </table>
  920. <table>
  921. <name>*dbprefix*privatedata</name>
  922. <declaration>
  923. <field>
  924. <name>keyid</name>
  925. <type>integer</type>
  926. <default>0</default>
  927. <notnull>true</notnull>
  928. <unsigned>true</unsigned>
  929. <length>4</length>
  930. <autoincrement>1</autoincrement>
  931. </field>
  932. <field>
  933. <name>user</name>
  934. <type>text</type>
  935. <default></default>
  936. <notnull>true</notnull>
  937. <length>255</length>
  938. </field>
  939. <field>
  940. <name>app</name>
  941. <type>text</type>
  942. <default></default>
  943. <notnull>true</notnull>
  944. <length>255</length>
  945. </field>
  946. <field>
  947. <name>key</name>
  948. <type>text</type>
  949. <default></default>
  950. <notnull>true</notnull>
  951. <length>255</length>
  952. </field>
  953. <field>
  954. <name>value</name>
  955. <type>text</type>
  956. <default></default>
  957. <notnull>true</notnull>
  958. <length>255</length>
  959. </field>
  960. <index>
  961. <primary>true</primary>
  962. <unique>true</unique>
  963. <name>keyid_index</name>
  964. <field>
  965. <name>keyid</name>
  966. <sorting>ascending</sorting>
  967. </field>
  968. </index>
  969. </declaration>
  970. </table>
  971. </database>