db_structure.xml 18 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081
  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>token_index</name>
  709. <field>
  710. <name>token</name>
  711. <sorting>ascending</sorting>
  712. </field>
  713. </index>
  714. </declaration>
  715. </table>
  716. <table>
  717. <name>*dbprefix*jobs</name>
  718. <declaration>
  719. <field>
  720. <name>id</name>
  721. <type>integer</type>
  722. <default>0</default>
  723. <notnull>true</notnull>
  724. <autoincrement>1</autoincrement>
  725. <unsigned>true</unsigned>
  726. <length>4</length>
  727. </field>
  728. <field>
  729. <name>class</name>
  730. <type>text</type>
  731. <default></default>
  732. <notnull>true</notnull>
  733. <length>256</length>
  734. </field>
  735. <field>
  736. <name>argument</name>
  737. <type>text</type>
  738. <default></default>
  739. <notnull>true</notnull>
  740. <length>256</length>
  741. </field>
  742. <field>
  743. <name>last_run</name>
  744. <type>integer</type>
  745. <default></default>
  746. <notnull>false</notnull>
  747. </field>
  748. <index>
  749. <name>job_class_index</name>
  750. <field>
  751. <name>class</name>
  752. <sorting>ascending</sorting>
  753. </field>
  754. </index>
  755. </declaration>
  756. </table>
  757. <table>
  758. <name>*dbprefix*users</name>
  759. <declaration>
  760. <field>
  761. <name>uid</name>
  762. <type>text</type>
  763. <default></default>
  764. <notnull>true</notnull>
  765. <length>64</length>
  766. </field>
  767. <field>
  768. <name>displayname</name>
  769. <type>text</type>
  770. <default></default>
  771. <length>64</length>
  772. </field>
  773. <field>
  774. <name>password</name>
  775. <type>text</type>
  776. <default></default>
  777. <notnull>true</notnull>
  778. <length>255</length>
  779. </field>
  780. <index>
  781. <name>users_pKey</name>
  782. <primary>true</primary>
  783. <field>
  784. <name>uid</name>
  785. <sorting>ascending</sorting>
  786. </field>
  787. </index>
  788. </declaration>
  789. </table>
  790. <table>
  791. <name>*dbprefix*vcategory</name>
  792. <declaration>
  793. <field>
  794. <name>id</name>
  795. <type>integer</type>
  796. <default>0</default>
  797. <notnull>true</notnull>
  798. <autoincrement>1</autoincrement>
  799. <unsigned>true</unsigned>
  800. <length>4</length>
  801. </field>
  802. <field>
  803. <name>uid</name>
  804. <type>text</type>
  805. <default></default>
  806. <notnull>true</notnull>
  807. <length>64</length>
  808. </field>
  809. <field>
  810. <name>type</name>
  811. <type>text</type>
  812. <default></default>
  813. <notnull>true</notnull>
  814. <length>64</length>
  815. </field>
  816. <field>
  817. <name>category</name>
  818. <type>text</type>
  819. <default></default>
  820. <notnull>true</notnull>
  821. <length>255</length>
  822. </field>
  823. <index>
  824. <name>uid_index</name>
  825. <field>
  826. <name>uid</name>
  827. <sorting>ascending</sorting>
  828. </field>
  829. </index>
  830. <index>
  831. <name>type_index</name>
  832. <field>
  833. <name>type</name>
  834. <sorting>ascending</sorting>
  835. </field>
  836. </index>
  837. <index>
  838. <name>category_index</name>
  839. <field>
  840. <name>category</name>
  841. <sorting>ascending</sorting>
  842. </field>
  843. </index>
  844. </declaration>
  845. </table>
  846. <table>
  847. <name>*dbprefix*vcategory_to_object</name>
  848. <declaration>
  849. <field>
  850. <name>objid</name>
  851. <type>integer</type>
  852. <default>0</default>
  853. <notnull>true</notnull>
  854. <unsigned>true</unsigned>
  855. <length>4</length>
  856. </field>
  857. <field>
  858. <name>categoryid</name>
  859. <type>integer</type>
  860. <default>0</default>
  861. <notnull>true</notnull>
  862. <unsigned>true</unsigned>
  863. <length>4</length>
  864. </field>
  865. <field>
  866. <name>type</name>
  867. <type>text</type>
  868. <default></default>
  869. <notnull>true</notnull>
  870. <length>64</length>
  871. </field>
  872. <index>
  873. <primary>true</primary>
  874. <unique>true</unique>
  875. <name>category_object_index</name>
  876. <field>
  877. <name>categoryid</name>
  878. <sorting>ascending</sorting>
  879. </field>
  880. <field>
  881. <name>objid</name>
  882. <sorting>ascending</sorting>
  883. </field>
  884. <field>
  885. <name>type</name>
  886. <sorting>ascending</sorting>
  887. </field>
  888. </index>
  889. </declaration>
  890. </table>
  891. </database>