database.xml 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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="260" y="302" 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="601" y="305" 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. </sql>