db_structure.xml 18 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075
  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>true</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></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>true</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. <unique>true</unique>
  333. <primary>true</primary>
  334. <field>
  335. <name>fileid</name>
  336. <sorting>ascending</sorting>
  337. </field>
  338. <field>
  339. <name>user</name>
  340. <sorting>ascending</sorting>
  341. </field>
  342. </index>
  343. </declaration>
  344. </table>
  345. <table>
  346. <name>*dbprefix*group_user</name>
  347. <declaration>
  348. <field>
  349. <name>gid</name>
  350. <type>text</type>
  351. <default></default>
  352. <notnull>true</notnull>
  353. <length>64</length>
  354. </field>
  355. <field>
  356. <name>uid</name>
  357. <type>text</type>
  358. <default></default>
  359. <notnull>true</notnull>
  360. <length>64</length>
  361. </field>
  362. <index>
  363. <name>gu_gid_uid_index</name>
  364. <primary>true</primary>
  365. <unique>true</unique>
  366. <field>
  367. <name>gid</name>
  368. <sorting>ascending</sorting>
  369. </field>
  370. <field>
  371. <name>uid</name>
  372. <sorting>ascending</sorting>
  373. </field>
  374. </index>
  375. </declaration>
  376. </table>
  377. <table>
  378. <name>*dbprefix*group_admin</name>
  379. <declaration>
  380. <field>
  381. <name>gid</name>
  382. <type>text</type>
  383. <default></default>
  384. <notnull>true</notnull>
  385. <length>64</length>
  386. </field>
  387. <field>
  388. <name>uid</name>
  389. <type>text</type>
  390. <default></default>
  391. <notnull>true</notnull>
  392. <length>64</length>
  393. </field>
  394. <index>
  395. <name>group_admin_uid</name>
  396. <field>
  397. <name>uid</name>
  398. <sorting>ascending</sorting>
  399. </field>
  400. </index>
  401. <index>
  402. <name>ga_gid_uid_index</name>
  403. <primary>true</primary>
  404. <unique>true</unique>
  405. <field>
  406. <name>gid</name>
  407. <sorting>ascending</sorting>
  408. </field>
  409. <field>
  410. <name>uid</name>
  411. <sorting>ascending</sorting>
  412. </field>
  413. </index>
  414. </declaration>
  415. </table>
  416. <table>
  417. <name>*dbprefix*groups</name>
  418. <declaration>
  419. <field>
  420. <name>gid</name>
  421. <type>text</type>
  422. <default></default>
  423. <notnull>true</notnull>
  424. <length>64</length>
  425. </field>
  426. <index>
  427. <name>groups_pKey</name>
  428. <primary>true</primary>
  429. <field>
  430. <name>gid</name>
  431. <sorting>ascending</sorting>
  432. </field>
  433. </index>
  434. </declaration>
  435. </table>
  436. <table>
  437. <name>*dbprefix*locks</name>
  438. <declaration>
  439. <field>
  440. <name>id</name>
  441. <type>integer</type>
  442. <default>0</default>
  443. <notnull>true</notnull>
  444. <autoincrement>1</autoincrement>
  445. <unsigned>true</unsigned>
  446. <length>4</length>
  447. </field>
  448. <field>
  449. <name>userid</name>
  450. <type>text</type>
  451. <default></default>
  452. <notnull>false</notnull>
  453. <length>64</length>
  454. </field>
  455. <field>
  456. <name>owner</name>
  457. <type>text</type>
  458. <default></default>
  459. <notnull>false</notnull>
  460. <length>100</length>
  461. </field>
  462. <field>
  463. <name>timeout</name>
  464. <type>integer</type>
  465. <notnull>false</notnull>
  466. <unsigned>true</unsigned>
  467. <length>4</length>
  468. </field>
  469. <field>
  470. <name>created</name>
  471. <type>integer</type>
  472. <notnull>false</notnull>
  473. <length>8</length>
  474. </field>
  475. <field>
  476. <name>token</name>
  477. <type>text</type>
  478. <default></default>
  479. <notnull>false</notnull>
  480. <length>100</length>
  481. </field>
  482. <field>
  483. <name>scope</name>
  484. <type>integer</type>
  485. <notnull>false</notnull>
  486. <length>1</length>
  487. </field>
  488. <field>
  489. <name>depth</name>
  490. <type>integer</type>
  491. <notnull>false</notnull>
  492. <length>1</length>
  493. </field>
  494. <field>
  495. <name>uri</name>
  496. <type>clob</type>
  497. <notnull>false</notnull>
  498. </field>
  499. </declaration>
  500. </table>
  501. <table>
  502. <name>*dbprefix*preferences</name>
  503. <declaration>
  504. <field>
  505. <name>userid</name>
  506. <type>text</type>
  507. <default></default>
  508. <notnull>true</notnull>
  509. <length>64</length>
  510. </field>
  511. <field>
  512. <name>appid</name>
  513. <type>text</type>
  514. <default></default>
  515. <notnull>true</notnull>
  516. <length>32</length>
  517. </field>
  518. <field>
  519. <name>configkey</name>
  520. <type>text</type>
  521. <default></default>
  522. <notnull>true</notnull>
  523. <length>64</length>
  524. </field>
  525. <field>
  526. <name>configvalue</name>
  527. <type>clob</type>
  528. <notnull>false</notnull>
  529. </field>
  530. <index>
  531. <name>pref_userid_appid_key_index</name>
  532. <primary>true</primary>
  533. <unique>true</unique>
  534. <field>
  535. <name>userid</name>
  536. <sorting>ascending</sorting>
  537. </field>
  538. <field>
  539. <name>appid</name>
  540. <sorting>ascending</sorting>
  541. </field>
  542. <field>
  543. <name>configkey</name>
  544. <sorting>ascending</sorting>
  545. </field>
  546. </index>
  547. </declaration>
  548. </table>
  549. <table>
  550. <name>*dbprefix*properties</name>
  551. <declaration>
  552. <field>
  553. <name>id</name>
  554. <autoincrement>1</autoincrement>
  555. <type>integer</type>
  556. <default>0</default>
  557. <notnull>true</notnull>
  558. <length>4</length>
  559. </field>
  560. <field>
  561. <name>userid</name>
  562. <type>text</type>
  563. <default></default>
  564. <notnull>true</notnull>
  565. <length>64</length>
  566. </field>
  567. <field>
  568. <name>propertypath</name>
  569. <type>text</type>
  570. <default></default>
  571. <notnull>true</notnull>
  572. <length>255</length>
  573. </field>
  574. <field>
  575. <name>propertyname</name>
  576. <type>text</type>
  577. <default></default>
  578. <notnull>true</notnull>
  579. <length>255</length>
  580. </field>
  581. <field>
  582. <name>propertyvalue</name>
  583. <type>text</type>
  584. <notnull>true</notnull>
  585. <length>255</length>
  586. </field>
  587. <index>
  588. <name>property_index</name>
  589. <field>
  590. <name>userid</name>
  591. <sorting>ascending</sorting>
  592. </field>
  593. </index>
  594. </declaration>
  595. </table>
  596. <table>
  597. <name>*dbprefix*share</name>
  598. <declaration>
  599. <field>
  600. <name>id</name>
  601. <autoincrement>1</autoincrement>
  602. <type>integer</type>
  603. <default>0</default>
  604. <notnull>true</notnull>
  605. <length>4</length>
  606. </field>
  607. <field>
  608. <name>share_type</name>
  609. <type>integer</type>
  610. <default>0</default>
  611. <notnull>true</notnull>
  612. <length>1</length>
  613. </field>
  614. <field>
  615. <name>share_with</name>
  616. <type>text</type>
  617. <default></default>
  618. <notnull>false</notnull>
  619. <length>255</length>
  620. </field>
  621. <field>
  622. <name>uid_owner</name>
  623. <type>text</type>
  624. <default></default>
  625. <notnull>true</notnull>
  626. <length>255</length>
  627. </field>
  628. <field>
  629. <name>parent</name>
  630. <type>integer</type>
  631. <notnull>false</notnull>
  632. <length>4</length>
  633. </field>
  634. <field>
  635. <name>item_type</name>
  636. <type>text</type>
  637. <default></default>
  638. <notnull>true</notnull>
  639. <length>64</length>
  640. </field>
  641. <field>
  642. <name>item_source</name>
  643. <type>text</type>
  644. <default></default>
  645. <notnull>false</notnull>
  646. <length>255</length>
  647. </field>
  648. <field>
  649. <name>item_target</name>
  650. <type>text</type>
  651. <default></default>
  652. <notnull>false</notnull>
  653. <length>255</length>
  654. </field>
  655. <field>
  656. <name>file_source</name>
  657. <type>integer</type>
  658. <notnull>false</notnull>
  659. <length>4</length>
  660. </field>
  661. <field>
  662. <name>file_target</name>
  663. <type>text</type>
  664. <default></default>
  665. <notnull>false</notnull>
  666. <length>512</length>
  667. </field>
  668. <field>
  669. <name>permissions</name>
  670. <type>integer</type>
  671. <default>0</default>
  672. <notnull>true</notnull>
  673. <length>1</length>
  674. </field>
  675. <field>
  676. <name>stime</name>
  677. <type>integer</type>
  678. <default>0</default>
  679. <notnull>true</notnull>
  680. <length>8</length>
  681. </field>
  682. <field>
  683. <name>accepted</name>
  684. <type>integer</type>
  685. <default>0</default>
  686. <notnull>true</notnull>
  687. <length>1</length>
  688. </field>
  689. <field>
  690. <name>expiration</name>
  691. <type>timestamp</type>
  692. <default></default>
  693. <notnull>false</notnull>
  694. </field>
  695. <field>
  696. <name>token</name>
  697. <type>text</type>
  698. <default></default>
  699. <notnull>false</notnull>
  700. <length>32</length>
  701. </field>
  702. <index>
  703. <name>token_index</name>
  704. <field>
  705. <name>token</name>
  706. <sorting>ascending</sorting>
  707. </field>
  708. </index>
  709. </declaration>
  710. </table>
  711. <table>
  712. <name>*dbprefix*jobs</name>
  713. <declaration>
  714. <field>
  715. <name>id</name>
  716. <type>integer</type>
  717. <default>0</default>
  718. <notnull>true</notnull>
  719. <autoincrement>1</autoincrement>
  720. <unsigned>true</unsigned>
  721. <length>4</length>
  722. </field>
  723. <field>
  724. <name>class</name>
  725. <type>text</type>
  726. <default></default>
  727. <notnull>true</notnull>
  728. <length>256</length>
  729. </field>
  730. <field>
  731. <name>argument</name>
  732. <type>text</type>
  733. <default></default>
  734. <notnull>true</notnull>
  735. <length>256</length>
  736. </field>
  737. <field>
  738. <name>last_run</name>
  739. <type>integer</type>
  740. <default></default>
  741. <notnull>false</notnull>
  742. </field>
  743. <index>
  744. <name>job_class_index</name>
  745. <field>
  746. <name>class</name>
  747. <sorting>ascending</sorting>
  748. </field>
  749. </index>
  750. </declaration>
  751. </table>
  752. <table>
  753. <name>*dbprefix*users</name>
  754. <declaration>
  755. <field>
  756. <name>uid</name>
  757. <type>text</type>
  758. <default></default>
  759. <notnull>true</notnull>
  760. <length>64</length>
  761. </field>
  762. <field>
  763. <name>displayname</name>
  764. <type>text</type>
  765. <default></default>
  766. <length>64</length>
  767. </field>
  768. <field>
  769. <name>password</name>
  770. <type>text</type>
  771. <default></default>
  772. <notnull>true</notnull>
  773. <length>255</length>
  774. </field>
  775. <index>
  776. <name>users_pKey</name>
  777. <primary>true</primary>
  778. <field>
  779. <name>uid</name>
  780. <sorting>ascending</sorting>
  781. </field>
  782. </index>
  783. </declaration>
  784. </table>
  785. <table>
  786. <name>*dbprefix*vcategory</name>
  787. <declaration>
  788. <field>
  789. <name>id</name>
  790. <type>integer</type>
  791. <default>0</default>
  792. <notnull>true</notnull>
  793. <autoincrement>1</autoincrement>
  794. <unsigned>true</unsigned>
  795. <length>4</length>
  796. </field>
  797. <field>
  798. <name>uid</name>
  799. <type>text</type>
  800. <default></default>
  801. <notnull>true</notnull>
  802. <length>64</length>
  803. </field>
  804. <field>
  805. <name>type</name>
  806. <type>text</type>
  807. <default></default>
  808. <notnull>true</notnull>
  809. <length>64</length>
  810. </field>
  811. <field>
  812. <name>category</name>
  813. <type>text</type>
  814. <default></default>
  815. <notnull>true</notnull>
  816. <length>255</length>
  817. </field>
  818. <index>
  819. <name>uid_index</name>
  820. <field>
  821. <name>uid</name>
  822. <sorting>ascending</sorting>
  823. </field>
  824. </index>
  825. <index>
  826. <name>type_index</name>
  827. <field>
  828. <name>type</name>
  829. <sorting>ascending</sorting>
  830. </field>
  831. </index>
  832. <index>
  833. <name>category_index</name>
  834. <field>
  835. <name>category</name>
  836. <sorting>ascending</sorting>
  837. </field>
  838. </index>
  839. </declaration>
  840. </table>
  841. <table>
  842. <name>*dbprefix*vcategory_to_object</name>
  843. <declaration>
  844. <field>
  845. <name>objid</name>
  846. <type>integer</type>
  847. <default>0</default>
  848. <notnull>true</notnull>
  849. <unsigned>true</unsigned>
  850. <length>4</length>
  851. </field>
  852. <field>
  853. <name>categoryid</name>
  854. <type>integer</type>
  855. <default>0</default>
  856. <notnull>true</notnull>
  857. <unsigned>true</unsigned>
  858. <length>4</length>
  859. </field>
  860. <field>
  861. <name>type</name>
  862. <type>text</type>
  863. <default></default>
  864. <notnull>true</notnull>
  865. <length>64</length>
  866. </field>
  867. <index>
  868. <primary>true</primary>
  869. <unique>true</unique>
  870. <name>category_object_index</name>
  871. <field>
  872. <name>categoryid</name>
  873. <sorting>ascending</sorting>
  874. </field>
  875. <field>
  876. <name>objid</name>
  877. <sorting>ascending</sorting>
  878. </field>
  879. <field>
  880. <name>type</name>
  881. <sorting>ascending</sorting>
  882. </field>
  883. </index>
  884. </declaration>
  885. </table>
  886. </database>