database.xml 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <!-- SQL XML created by WWW SQL Designer, https://github.com/ondras/wwwsqldesigner/ -->
  3. <!-- Active URL: http://192.168.100.140:8500/wwwsqldesigner/ -->
  4. <sql>
  5. <datatypes db="sqlite">
  6. <group label="Numeric" color="rgb(238,238,170)">
  7. <type label="Integer" length="0" sql="INTEGER" quote=""/>
  8. <type label="TINYINT" length="0" sql="TINYINT" quote=""/>
  9. <type label="SMALLINT" length="0" sql="SMALLINT" quote=""/>
  10. <type label="MEDIUMINT" length="0" sql="MEDIUMINT" quote=""/>
  11. <type label="INT" length="0" sql="INT" quote=""/>
  12. <type label="BIGINT" length="0" sql="BIGINT" quote=""/>
  13. <type label="Decimal" length="1" sql="DECIMAL" re="DEC" quote=""/>
  14. <type label="Single precision" length="0" sql="FLOAT" quote=""/>
  15. <type label="Double precision" length="0" sql="DOUBLE" re="DOUBLE" quote=""/>
  16. </group>
  17. <group label="Character" color="rgb(255,200,200)">
  18. <type label="Char" length="1" sql="CHAR" quote="'"/>
  19. <type label="Varchar" length="1" sql="VARCHAR" quote="'"/>
  20. <type label="Text" length="0" sql="MEDIUMTEXT" re="TEXT" quote="'"/>
  21. <type label="Binary" length="1" sql="BINARY" quote="'"/>
  22. <type label="Varbinary" length="1" sql="VARBINARY" quote="'"/>
  23. <type label="BLOB" length="0" sql="BLOB" re="BLOB" quote="'"/>
  24. </group>
  25. <group label="Date &amp; Time" color="rgb(200,255,200)">
  26. <type label="Date" length="0" sql="DATE" quote="'"/>
  27. <type label="Time" length="0" sql="TIME" quote="'"/>
  28. <type label="Datetime" length="0" sql="DATETIME" quote="'"/>
  29. <type label="Year" length="0" sql="YEAR" quote=""/>
  30. <type label="Timestamp" length="0" sql="TIMESTAMP" quote="'"/>
  31. </group>
  32. <group label="Miscellaneous" color="rgb(200,200,255)">
  33. <type label="ENUM" length="1" sql="ENUM" quote=""/>
  34. <type label="SET" length="1" sql="SET" quote=""/>
  35. <type label="Bit" length="0" sql="bit" quote=""/>
  36. </group>
  37. </datatypes><table x="93" y="47" name="user">
  38. <row name="id" null="0" autoincrement="1">
  39. <datatype>INTEGER</datatype>
  40. </row>
  41. <row name="username" null="1" autoincrement="0">
  42. <datatype>VARCHAR(35)</datatype>
  43. <default>NULL</default></row>
  44. <row name="password" null="1" autoincrement="0">
  45. <datatype>VARCHAR(35)</datatype>
  46. <default>NULL</default></row>
  47. <key type="PRIMARY" name="">
  48. <part>id</part>
  49. </key>
  50. </table>
  51. <table x="423" y="83" name="log">
  52. <row name="id" null="0" autoincrement="1">
  53. <datatype>INTEGER</datatype>
  54. </row>
  55. <row name="description" null="1" autoincrement="0">
  56. <datatype>VARCHAR(160)</datatype>
  57. <default>NULL</default></row>
  58. <row name="id_user" null="1" autoincrement="0">
  59. <datatype>INTEGER</datatype>
  60. <default>NULL</default><relation table="user" row="id" />
  61. </row>
  62. <key type="PRIMARY" name="">
  63. <part>id</part>
  64. </key>
  65. </table>
  66. <table x="81" y="179" name="partner">
  67. <row name="id" null="1" autoincrement="1">
  68. <datatype>INTEGER</datatype>
  69. <default>NULL</default></row>
  70. <row name="remote_id" null="1" autoincrement="0">
  71. <datatype>INTEGER</datatype>
  72. <default>0</default></row>
  73. <row name="name" null="1" autoincrement="0">
  74. <datatype>VARCHAR(35)</datatype>
  75. <default>NULL</default></row>
  76. <row name="city" null="1" autoincrement="0">
  77. <datatype>VARCHAR(35)</datatype>
  78. <default>NULL</default></row>
  79. <row name="mobile" null="1" autoincrement="0">
  80. <datatype>VARCHAR(20)</datatype>
  81. <default>NULL</default></row>
  82. <row name="phone" null="1" autoincrement="0">
  83. <datatype>VARCHAR(20)</datatype>
  84. <default>NULL</default></row>
  85. <row name="fax" null="1" autoincrement="0">
  86. <datatype>VARCHAR</datatype>
  87. <default>'20'</default></row>
  88. <row name="email" null="1" autoincrement="0">
  89. <datatype>VARCHAR(100)</datatype>
  90. <default>NULL</default></row>
  91. <row name="street" null="1" autoincrement="0">
  92. <datatype>VARCHAR(35)</datatype>
  93. <default>NULL</default></row>
  94. <row name="street2" null="1" autoincrement="0">
  95. <datatype>VARCHAR(35)</datatype>
  96. <default>NULL</default></row>
  97. <row name="image_medium" null="1" autoincrement="0">
  98. <datatype>BLOB</datatype>
  99. <default>NULL</default></row>
  100. <row name="image_small" null="1" autoincrement="0">
  101. <datatype>BLOB</datatype>
  102. <default>NULL</default></row>
  103. <row name="comment" null="1" autoincrement="0">
  104. <datatype>VARCHAR(160)</datatype>
  105. <default>NULL</default></row>
  106. <row name="customer" null="1" autoincrement="0">
  107. <datatype>INTEGER</datatype>
  108. <default>0</default></row>
  109. <row name="employee" null="1" autoincrement="0">
  110. <datatype>INTEGER</datatype>
  111. <default>0</default></row>
  112. <row name="is_company" null="1" autoincrement="0">
  113. <datatype>INTEGER</datatype>
  114. <default>0</default></row>
  115. <row name="debit" null="1" autoincrement="0">
  116. <datatype>INTEGER</datatype>
  117. <default>0</default></row>
  118. <row name="debit_limit" null="1" autoincrement="0">
  119. <datatype>INTEGER</datatype>
  120. <default>0</default></row>
  121. <row name="opportunity_count" null="1" autoincrement="0">
  122. <datatype>INTEGER</datatype>
  123. <default>0</default></row>
  124. <row name="contracts_count" null="1" autoincrement="0">
  125. <datatype>INTEGER</datatype>
  126. <default>0</default></row>
  127. <row name="journal_item_count" null="1" autoincrement="0">
  128. <datatype>INTEGER</datatype>
  129. <default>0</default></row>
  130. <row name="meeting_count" null="1" autoincrement="0">
  131. <datatype>INTEGER</datatype>
  132. <default>0</default></row>
  133. <row name="phonecall_count" null="1" autoincrement="0">
  134. <datatype>INTEGER</datatype>
  135. <default>0</default></row>
  136. <row name="sale_order_count" null="1" autoincrement="0">
  137. <datatype>INTEGER</datatype>
  138. <default>NULL</default></row>
  139. <row name="total_invoiced" null="1" autoincrement="0">
  140. <datatype>INTEGER</datatype>
  141. <default>NULL</default></row>
  142. <key type="PRIMARY" name="">
  143. <part>id</part>
  144. </key>
  145. </table>
  146. </sql>