db_structure.xml 18 KB

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