1
0

db_structure.xml 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311
  1. <?xml version="1.0" encoding="ISO-8859-1" ?>
  2. <database>
  3. <name>*dbname*</name>
  4. <create>false</create>
  5. <overwrite>false</overwrite>
  6. <charset>utf8</charset>
  7. <table>
  8. <name>*dbprefix*cntcts_addrsbks</name>
  9. <declaration>
  10. <field>
  11. <name>id</name>
  12. <type>integer</type>
  13. <default>0</default>
  14. <notnull>true</notnull>
  15. <autoincrement>1</autoincrement>
  16. <unsigned>true</unsigned>
  17. <length>4</length>
  18. <comments>This is the id</comments>
  19. </field>
  20. <field>
  21. <name>userid</name>
  22. <type>text</type>
  23. <default></default>
  24. <notnull>true</notnull>
  25. <length>255</length>
  26. </field>
  27. <field>
  28. <name>displayname</name>
  29. <type>text</type>
  30. <default></default>
  31. <notnull>false</notnull>
  32. <length>255</length>
  33. </field>
  34. <field>
  35. <name>uri</name>
  36. <type>text</type>
  37. <default></default>
  38. <notnull>false</notnull>
  39. <length>200</length>
  40. </field>
  41. <field>
  42. <name>description</name>
  43. <type>text</type>
  44. <notnull>false</notnull>
  45. <length>255</length>
  46. </field>
  47. <field>
  48. <name>ctag</name>
  49. <type>integer</type>
  50. <default>1</default>
  51. <notnull>true</notnull>
  52. <unsigned>true</unsigned>
  53. <length>4</length>
  54. </field>
  55. <field>
  56. <name>active</name>
  57. <type>integer</type>
  58. <default>1</default>
  59. <notnull>true</notnull>
  60. <length>4</length>
  61. </field>
  62. </declaration>
  63. </table>
  64. <table>
  65. <name>*dbprefix*cntcts_cards</name>
  66. <declaration>
  67. <field>
  68. <name>id</name>
  69. <type>integer</type>
  70. <default>0</default>
  71. <notnull>true</notnull>
  72. <autoincrement>1</autoincrement>
  73. <unsigned>true</unsigned>
  74. <length>4</length>
  75. </field>
  76. <field>
  77. <name>addressbookid</name>
  78. <type>integer</type>
  79. <default></default>
  80. <notnull>true</notnull>
  81. <unsigned>true</unsigned>
  82. <length>4</length>
  83. </field>
  84. <field>
  85. <name>fullname</name>
  86. <type>text</type>
  87. <default></default>
  88. <notnull>false</notnull>
  89. <length>255</length>
  90. </field>
  91. <field>
  92. <name>carddata</name>
  93. <type>clob</type>
  94. <notnull>false</notnull>
  95. </field>
  96. <field>
  97. <name>uri</name>
  98. <type>text</type>
  99. <default></default>
  100. <notnull>false</notnull>
  101. <length>200</length>
  102. </field>
  103. <field>
  104. <name>lastmodified</name>
  105. <type>integer</type>
  106. <default></default>
  107. <notnull>false</notnull>
  108. <unsigned>true</unsigned>
  109. <length>4</length>
  110. </field>
  111. </declaration>
  112. </table>
  113. <table>
  114. <name>*dbprefix*vcategory</name>
  115. <declaration>
  116. <field>
  117. <name>id</name>
  118. <type>integer</type>
  119. <default>0</default>
  120. <notnull>true</notnull>
  121. <autoincrement>1</autoincrement>
  122. <unsigned>true</unsigned>
  123. <length>4</length>
  124. </field>
  125. <field>
  126. <name>uid</name>
  127. <type>text</type>
  128. <default></default>
  129. <notnull>true</notnull>
  130. <length>64</length>
  131. </field>
  132. <field>
  133. <name>type</name>
  134. <type>text</type>
  135. <default></default>
  136. <notnull>true</notnull>
  137. <length>64</length>
  138. </field>
  139. <field>
  140. <name>category</name>
  141. <type>text</type>
  142. <default></default>
  143. <notnull>true</notnull>
  144. <length>255</length>
  145. </field>
  146. </declaration>
  147. </table>
  148. <table>
  149. <name>*dbprefix*timestamp</name>
  150. <declaration>
  151. <field>
  152. <name>id</name>
  153. <autoincrement>1</autoincrement>
  154. <type>integer</type>
  155. <default>0</default>
  156. <notnull>true</notnull>
  157. <length>4</length>
  158. </field>
  159. <field>
  160. <name>timestamptest</name>
  161. <type>timestamp</type>
  162. <default></default>
  163. <notnull>false</notnull>
  164. </field>
  165. </declaration>
  166. </table>
  167. <table>
  168. <name>*dbprefix*decimal</name>
  169. <declaration>
  170. <field>
  171. <name>id</name>
  172. <autoincrement>1</autoincrement>
  173. <type>integer</type>
  174. <default>0</default>
  175. <notnull>true</notnull>
  176. <length>4</length>
  177. </field>
  178. <field>
  179. <name>decimaltest</name>
  180. <type>decimal</type>
  181. <default/>
  182. <notnull>true</notnull>
  183. <precision>12</precision>
  184. <scale>2</scale>
  185. </field>
  186. </declaration>
  187. </table>
  188. <table>
  189. <name>*dbprefix*migratekeyword</name>
  190. <declaration>
  191. <field>
  192. <name>select</name>
  193. <type>text</type>
  194. <default></default>
  195. <notnull>true</notnull>
  196. <length>255</length>
  197. </field>
  198. </declaration>
  199. </table>
  200. <table>
  201. <name>*dbprefix*uniconst</name>
  202. <declaration>
  203. <field>
  204. <name>id</name>
  205. <type>integer</type>
  206. <default>0</default>
  207. <notnull>true</notnull>
  208. <autoincrement>1</autoincrement>
  209. <length>4</length>
  210. </field>
  211. <!-- Foreign Key storages::numeric_id -->
  212. <field>
  213. <name>storage</name>
  214. <type>integer</type>
  215. <default></default>
  216. <notnull>true</notnull>
  217. <length>4</length>
  218. </field>
  219. <field>
  220. <name>path_hash</name>
  221. <type>text</type>
  222. <default></default>
  223. <notnull>true</notnull>
  224. <length>32</length>
  225. </field>
  226. <field>
  227. <name>etag</name>
  228. <type>text</type>
  229. <default></default>
  230. <notnull>false</notnull>
  231. <length>40</length>
  232. </field>
  233. <index>
  234. <!--<name>fs_storage_path_hash</name>-->
  235. <unique>true</unique>
  236. <field>
  237. <name>storage</name>
  238. <sorting>ascending</sorting>
  239. </field>
  240. <field>
  241. <name>path_hash</name>
  242. <sorting>ascending</sorting>
  243. </field>
  244. </index>
  245. </declaration>
  246. </table>
  247. <table>
  248. <name>*dbprefix*text_table</name>
  249. <declaration>
  250. <field>
  251. <name>textfield</name>
  252. <type>text</type>
  253. <notnull>false</notnull>
  254. <length>255</length>
  255. </field>
  256. </declaration>
  257. </table>
  258. </database>