Advertisement
Guest User

erd

a guest
Oct 26th, 2016
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MXML 5.95 KB | None | 0 0
  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://ondras.zarovi.cz/sql/demo/ -->
  4. <sql>
  5. <datatypes db="mysql">
  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.  
  18.     <group label="Character" color="rgb(255,200,200)">
  19.         <type label="Char" length="1" sql="CHAR" quote="'"/>
  20.         <type label="Varchar" length="1" sql="VARCHAR" quote="'"/>
  21.         <type label="Text" length="0" sql="MEDIUMTEXT" re="TEXT" quote="'"/>
  22.         <type label="Binary" length="1" sql="BINARY" quote="'"/>
  23.         <type label="Varbinary" length="1" sql="VARBINARY" quote="'"/>
  24.         <type label="BLOB" length="0" sql="BLOB" re="BLOB" quote="'"/>
  25.     </group>
  26.  
  27.     <group label="Date &amp; Time" color="rgb(200,255,200)">
  28.         <type label="Date" length="0" sql="DATE" quote="'"/>
  29.         <type label="Time" length="0" sql="TIME" quote="'"/>
  30.         <type label="Datetime" length="0" sql="DATETIME" quote="'"/>
  31.         <type label="Year" length="0" sql="YEAR" quote=""/>
  32.         <type label="Timestamp" length="0" sql="TIMESTAMP" quote="'"/>
  33.     </group>
  34.    
  35.     <group label="Miscellaneous" color="rgb(200,200,255)">
  36.         <type label="ENUM" length="1" sql="ENUM" quote=""/>
  37.         <type label="SET" length="1" sql="SET" quote=""/>
  38.         <type label="Bit" length="0" sql="bit" quote=""/>
  39.     </group>
  40. </datatypes><table x="223" y="240" name="user">
  41. <row name="id" null="1" autoincrement="1">
  42. <datatype>INTEGER</datatype>
  43. <default>NULL</default></row>
  44. <row name="name" null="1" autoincrement="0">
  45. <datatype>INTEGER</datatype>
  46. <default>NULL</default></row>
  47. <row name="credits" null="1" autoincrement="0">
  48. <datatype>INTEGER</datatype>
  49. <default>NULL</default></row>
  50. <key type="PRIMARY" name="">
  51. <part>id</part>
  52. </key>
  53. </table>
  54. <table x="221" y="461" name="transaction">
  55. <row name="id" null="1" autoincrement="1">
  56. <datatype>INTEGER</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. <row name="type" null="1" autoincrement="0">
  63. <datatype>INTEGER</datatype>
  64. <default>NULL</default></row>
  65. <row name="credits" null="1" autoincrement="0">
  66. <datatype>INTEGER</datatype>
  67. <default>NULL</default></row>
  68. <row name="timestamps" null="1" autoincrement="0">
  69. <datatype>INTEGER</datatype>
  70. <default>NULL</default></row>
  71. <key type="PRIMARY" name="">
  72. <part>id</part>
  73. </key>
  74. </table>
  75. <table x="915" y="634" name="variant">
  76. <row name="id" null="1" autoincrement="1">
  77. <datatype>INTEGER</datatype>
  78. <default>NULL</default></row>
  79. <row name="name" null="1" autoincrement="0">
  80. <datatype>INTEGER</datatype>
  81. <default>NULL</default></row>
  82. <row name="price" null="1" autoincrement="0">
  83. <datatype>INTEGER</datatype>
  84. <default>NULL</default></row>
  85. <key type="PRIMARY" name="">
  86. <part>id</part>
  87. </key>
  88. </table>
  89. <table x="456" y="630" name="product">
  90. <row name="id" null="1" autoincrement="1">
  91. <datatype>INTEGER</datatype>
  92. <default>NULL</default></row>
  93. <row name="name" null="1" autoincrement="0">
  94. <datatype>INTEGER</datatype>
  95. <default>NULL</default></row>
  96. <row name="price" null="1" autoincrement="0">
  97. <datatype>INTEGER</datatype>
  98. <default>NULL</default></row>
  99. <key type="PRIMARY" name="">
  100. <part>id</part>
  101. </key>
  102. </table>
  103. <table x="625" y="464" name="prod_variant">
  104. <row name="id" null="1" autoincrement="1">
  105. <datatype>INTEGER</datatype>
  106. <default>NULL</default></row>
  107. <row name="id_product" null="1" autoincrement="0">
  108. <datatype>INTEGER</datatype>
  109. <default>NULL</default><relation table="product" row="id" />
  110. </row>
  111. <row name="id_variant" null="1" autoincrement="0">
  112. <datatype>INTEGER</datatype>
  113. <default>NULL</default><relation table="variant" row="id" />
  114. </row>
  115. <key type="PRIMARY" name="">
  116. <part>id</part>
  117. </key>
  118. </table>
  119. <table x="915" y="396" name="basket">
  120. <row name="id" null="1" autoincrement="1">
  121. <datatype>INTEGER</datatype>
  122. <default>NULL</default></row>
  123. <row name="id_order" null="1" autoincrement="0">
  124. <datatype>INTEGER</datatype>
  125. <default>NULL</default><relation table="order" row="id" />
  126. </row>
  127. <row name="id_prod_variant" null="1" autoincrement="0">
  128. <datatype>INTEGER</datatype>
  129. <default>NULL</default><relation table="prod_variant" row="id" />
  130. </row>
  131. <key type="PRIMARY" name="">
  132. <part>id</part>
  133. </key>
  134. </table>
  135. <table x="616" y="217" name="order">
  136. <row name="id" null="1" autoincrement="1">
  137. <datatype>INTEGER</datatype>
  138. <default>NULL</default></row>
  139. <row name="id_user" null="1" autoincrement="0">
  140. <datatype>INTEGER</datatype>
  141. <default>NULL</default><relation table="user" row="id" />
  142. </row>
  143. <row name="extra info" null="1" autoincrement="0">
  144. <datatype>INTEGER</datatype>
  145. <default>NULL</default></row>
  146. <row name="price" null="1" autoincrement="0">
  147. <datatype>INTEGER</datatype>
  148. <default>NULL</default></row>
  149. <row name="timestamps" null="1" autoincrement="0">
  150. <datatype>INTEGER</datatype>
  151. <default>NULL</default></row>
  152. <key type="PRIMARY" name="">
  153. <part>id</part>
  154. </key>
  155. </table>
  156. <table x="424" y="383" name="favorite">
  157. <row name="id" null="1" autoincrement="1">
  158. <datatype>INTEGER</datatype>
  159. <default>NULL</default></row>
  160. <row name="id_user" null="1" autoincrement="0">
  161. <datatype>INTEGER</datatype>
  162. <default>NULL</default><relation table="user" row="id" />
  163. </row>
  164. <row name="default" null="1" autoincrement="0">
  165. <datatype>INTEGER</datatype>
  166. <default>NULL</default></row>
  167. <key type="PRIMARY" name="">
  168. <part>id</part>
  169. </key>
  170. </table>
  171. </sql>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement