db_structure.xml 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425
  1. <?xml version="1.0" encoding="ISO-8859-1" ?>
  2. <database>
  3. <name>*dbname*</name>
  4. <create>true</create>
  5. <overwrite>false</overwrite>
  6. <charset>latin1</charset>
  7. <table>
  8. <name>*dbprefix*privatedata</name>
  9. <declaration>
  10. <field>
  11. <name>key</name>
  12. <type>text</type>
  13. <default></default>
  14. <notnull>true</notnull>
  15. <length>64</length>
  16. </field>
  17. <field>
  18. <name>app</name>
  19. <type>text</type>
  20. <default></default>
  21. <notnull>true</notnull>
  22. <length>64</length>
  23. </field>
  24. <field>
  25. <name>value</name>
  26. <type>blob</type>
  27. <length>65532</length>
  28. <notnull>false</notnull>
  29. </field>
  30. <field>
  31. <name>timestamp</name>
  32. <type>timestamp</type>
  33. <notnull>true</notnull>
  34. </field>
  35. <index>
  36. <name>appkey</name>
  37. <unique>true</unique>
  38. <field>
  39. <name>key</name>
  40. <sorting>ascending</sorting>
  41. </field>
  42. <field>
  43. <name>app</name>
  44. <sorting>ascending</sorting>
  45. </field>
  46. </index>
  47. </declaration>
  48. </table>
  49. <table>
  50. <name>*dbprefix*groups</name>
  51. <declaration>
  52. <field>
  53. <name>group_id</name>
  54. <type>integer</type>
  55. <default>0</default>
  56. <notnull>true</notnull>
  57. <autoincrement>1</autoincrement>
  58. <length>4</length>
  59. </field>
  60. <field>
  61. <name>group_name</name>
  62. <type>text</type>
  63. <default></default>
  64. <notnull>true</notnull>
  65. <length>64</length>
  66. </field>
  67. <index>
  68. <name>group_name</name>
  69. <unique>true</unique>
  70. <field>
  71. <name>group_name</name>
  72. <sorting>ascending</sorting>
  73. </field>
  74. </index>
  75. </declaration>
  76. </table>
  77. <table>
  78. <name>*dbprefix*locks</name>
  79. <declaration>
  80. <field>
  81. <name>token</name>
  82. <type>text</type>
  83. <default></default>
  84. <notnull>true</notnull>
  85. <length>255</length>
  86. </field>
  87. <field>
  88. <name>path</name>
  89. <type>text</type>
  90. <default></default>
  91. <notnull>true</notnull>
  92. <length>200</length>
  93. </field>
  94. <field>
  95. <name>created</name>
  96. <type>integer</type>
  97. <default>0</default>
  98. <notnull>true</notnull>
  99. <length>4</length>
  100. </field>
  101. <field>
  102. <name>modified</name>
  103. <type>integer</type>
  104. <default>0</default>
  105. <notnull>true</notnull>
  106. <length>4</length>
  107. </field>
  108. <field>
  109. <name>expires</name>
  110. <type>integer</type>
  111. <default>0</default>
  112. <notnull>true</notnull>
  113. <length>4</length>
  114. </field>
  115. <field>
  116. <name>owner</name>
  117. <type>text</type>
  118. <default></default>
  119. <notnull>false</notnull>
  120. <length>200</length>
  121. </field>
  122. <field>
  123. <name>recursive</name>
  124. <type>integer</type>
  125. <default>0</default>
  126. <notnull>false</notnull>
  127. <length>4</length>
  128. </field>
  129. <field>
  130. <name>writelock</name>
  131. <type>integer</type>
  132. <default>0</default>
  133. <notnull>false</notnull>
  134. <length>4</length>
  135. </field>
  136. <field>
  137. <name>exclusivelock</name>
  138. <type>integer</type>
  139. <default>0</default>
  140. <notnull>true</notnull>
  141. <length>4</length>
  142. </field>
  143. <index>
  144. <name>path_2</name>
  145. <field>
  146. <name>path</name>
  147. <sorting>ascending</sorting>
  148. </field>
  149. </index>
  150. <index>
  151. <name>path_3</name>
  152. <field>
  153. <name>path</name>
  154. <sorting>ascending</sorting>
  155. </field>
  156. <field>
  157. <name>token</name>
  158. <sorting>ascending</sorting>
  159. </field>
  160. </index>
  161. <index>
  162. <name>expires</name>
  163. <field>
  164. <name>expires</name>
  165. <sorting>ascending</sorting>
  166. </field>
  167. </index>
  168. <index>
  169. <name>locks_pKey</name>
  170. <primary>true</primary>
  171. <field>
  172. <name>token</name>
  173. <sorting>ascending</sorting>
  174. </field>
  175. </index>
  176. <index>
  177. <name>token</name>
  178. <unique>true</unique>
  179. <field>
  180. <name>token</name>
  181. <sorting>ascending</sorting>
  182. </field>
  183. </index>
  184. </declaration>
  185. </table>
  186. <table>
  187. <name>*dbprefix*log</name>
  188. <declaration>
  189. <field>
  190. <name>id</name>
  191. <type>integer</type>
  192. <default>0</default>
  193. <notnull>true</notnull>
  194. <autoincrement>1</autoincrement>
  195. <length>4</length>
  196. </field>
  197. <field>
  198. <name>timestamp</name>
  199. <type>integer</type>
  200. <default></default>
  201. <notnull>true</notnull>
  202. <length>4</length>
  203. </field>
  204. <field>
  205. <name>user</name>
  206. <type>text</type>
  207. <default></default>
  208. <notnull>true</notnull>
  209. <length>250</length>
  210. </field>
  211. <field>
  212. <name>type</name>
  213. <type>integer</type>
  214. <default></default>
  215. <notnull>true</notnull>
  216. <length>4</length>
  217. </field>
  218. <field>
  219. <name>message</name>
  220. <type>text</type>
  221. <default></default>
  222. <notnull>true</notnull>
  223. <length>250</length>
  224. </field>
  225. </declaration>
  226. </table>
  227. <table>
  228. <name>*dbprefix*properties</name>
  229. <declaration>
  230. <field>
  231. <name>path</name>
  232. <type>text</type>
  233. <default></default>
  234. <notnull>true</notnull>
  235. <length>255</length>
  236. </field>
  237. <field>
  238. <name>name</name>
  239. <type>text</type>
  240. <default></default>
  241. <notnull>true</notnull>
  242. <length>120</length>
  243. </field>
  244. <field>
  245. <name>ns</name>
  246. <type>text</type>
  247. <default>DAV:</default>
  248. <notnull>true</notnull>
  249. <length>120</length>
  250. </field>
  251. <field>
  252. <name>value</name>
  253. <type>clob</type>
  254. <notnull>false</notnull>
  255. </field>
  256. <index>
  257. <name>path</name>
  258. <field>
  259. <name>path</name>
  260. <sorting>ascending</sorting>
  261. </field>
  262. </index>
  263. <index>
  264. <name>properties_pKey</name>
  265. <primary>true</primary>
  266. <field>
  267. <name>path</name>
  268. <sorting>ascending</sorting>
  269. </field>
  270. <field>
  271. <name>name</name>
  272. <sorting>ascending</sorting>
  273. </field>
  274. <field>
  275. <name>ns</name>
  276. <sorting>ascending</sorting>
  277. </field>
  278. </index>
  279. </declaration>
  280. </table>
  281. <table>
  282. <name>*dbprefix*user_group</name>
  283. <declaration>
  284. <field>
  285. <name>user_group_id</name>
  286. <type>integer</type>
  287. <default>0</default>
  288. <notnull>true</notnull>
  289. <autoincrement>1</autoincrement>
  290. <length>4</length>
  291. </field>
  292. <field>
  293. <name>user_id</name>
  294. <type>integer</type>
  295. <default></default>
  296. <notnull>true</notnull>
  297. <length>4</length>
  298. </field>
  299. <field>
  300. <name>group_id</name>
  301. <type>integer</type>
  302. <default></default>
  303. <notnull>true</notnull>
  304. <length>4</length>
  305. </field>
  306. </declaration>
  307. </table>
  308. <table>
  309. <name>*dbprefix*users</name>
  310. <declaration>
  311. <field>
  312. <name>user_id</name>
  313. <type>integer</type>
  314. <default>0</default>
  315. <notnull>true</notnull>
  316. <autoincrement>1</autoincrement>
  317. <length>4</length>
  318. </field>
  319. <field>
  320. <name>user_name</name>
  321. <type>text</type>
  322. <default></default>
  323. <notnull>true</notnull>
  324. <length>64</length>
  325. </field>
  326. <field>
  327. <name>user_name_clean</name>
  328. <type>text</type>
  329. <default></default>
  330. <notnull>true</notnull>
  331. <length>64</length>
  332. </field>
  333. <field>
  334. <name>user_password</name>
  335. <type>text</type>
  336. <default></default>
  337. <notnull>true</notnull>
  338. <length>340</length>
  339. </field>
  340. <index>
  341. <name>user_name</name>
  342. <unique>true</unique>
  343. <field>
  344. <name>user_name</name>
  345. <sorting>ascending</sorting>
  346. </field>
  347. <field>
  348. <name>user_name_clean</name>
  349. <sorting>ascending</sorting>
  350. </field>
  351. </index>
  352. </declaration>
  353. </table>
  354. </database>