Advertisement
candale

DB ISS

Mar 25th, 2014
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.12 KB | None | 0 0
  1. ========================== LINK ====================================
  2. http://ondras.zarovi.cz/sql/demo/
  3. ========================== LINK ====================================
  4.  
  5.  
  6. <?xml version="1.0" encoding="utf-8" ?>
  7. <!-- SQL XML created by WWW SQL Designer, http://code.google.com/p/wwwsqldesigner/ -->
  8. <!-- Active URL: http://ondras.zarovi.cz/sql/demo/ -->
  9. <sql>
  10. <datatypes db="mysql">
  11. <group label="Numeric" color="rgb(238,238,170)">
  12. <type label="Integer" length="0" sql="INTEGER" quote=""/>
  13. <type label="TINYINT" length="0" sql="TINYINT" quote=""/>
  14. <type label="SMALLINT" length="0" sql="SMALLINT" quote=""/>
  15. <type label="MEDIUMINT" length="0" sql="MEDIUMINT" quote=""/>
  16. <type label="INT" length="0" sql="INT" quote=""/>
  17. <type label="BIGINT" length="0" sql="BIGINT" quote=""/>
  18. <type label="Decimal" length="1" sql="DECIMAL" re="DEC" quote=""/>
  19. <type label="Single precision" length="0" sql="FLOAT" quote=""/>
  20. <type label="Double precision" length="0" sql="DOUBLE" re="DOUBLE" quote=""/>
  21. </group>
  22.  
  23. <group label="Character" color="rgb(255,200,200)">
  24. <type label="Char" length="1" sql="CHAR" quote="'"/>
  25. <type label="Varchar" length="1" sql="VARCHAR" quote="'"/>
  26. <type label="Text" length="0" sql="MEDIUMTEXT" re="TEXT" quote="'"/>
  27. <type label="Binary" length="1" sql="BINARY" quote="'"/>
  28. <type label="Varbinary" length="1" sql="VARBINARY" quote="'"/>
  29. <type label="BLOB" length="0" sql="BLOB" re="BLOB" quote="'"/>
  30. </group>
  31.  
  32. <group label="Date &amp; Time" color="rgb(200,255,200)">
  33. <type label="Date" length="0" sql="DATE" quote="'"/>
  34. <type label="Time" length="0" sql="TIME" quote="'"/>
  35. <type label="Datetime" length="0" sql="DATETIME" quote="'"/>
  36. <type label="Year" length="0" sql="YEAR" quote=""/>
  37. <type label="Timestamp" length="0" sql="TIMESTAMP" quote="'"/>
  38. </group>
  39.  
  40. <group label="Miscellaneous" color="rgb(200,200,255)">
  41. <type label="ENUM" length="1" sql="ENUM" quote=""/>
  42. <type label="SET" length="1" sql="SET" quote=""/>
  43. <type label="Bit" length="0" sql="bit" quote=""/>
  44. </group>
  45. </datatypes><table x="29" y="55" name="Users">
  46. <row name="id" null="1" autoincrement="1">
  47. <datatype>INTEGER</datatype>
  48. <default>NULL</default></row>
  49. <row name="Username" null="1" autoincrement="0">
  50. <datatype>VARCHAR(50)</datatype>
  51. <default>NULL</default></row>
  52. <row name="Password" null="1" autoincrement="0">
  53. <datatype>VARCHAR(20)</datatype>
  54. <default>NULL</default></row>
  55. <row name="DoctorId" null="1" autoincrement="0">
  56. <datatype>INTEGER</datatype>
  57. <default>NULL</default><relation table="Doctors" row="id" />
  58. </row>
  59. <key type="PRIMARY" name="">
  60. <part>id</part>
  61. </key>
  62. </table>
  63. <table x="997" y="283" name="Drugs">
  64. <row name="id" null="1" autoincrement="1">
  65. <datatype>INTEGER</datatype>
  66. <default>NULL</default></row>
  67. <row name="Name" null="1" autoincrement="0">
  68. <datatype>VARCHAR</datatype>
  69. <default>NULL</default></row>
  70. <row name="Producer" null="1" autoincrement="0">
  71. <datatype>VARCHAR</datatype>
  72. <default>NULL</default></row>
  73. <row name="Stock" null="1" autoincrement="0">
  74. <datatype>INTEGER</datatype>
  75. <default>NULL</default></row>
  76. <key type="PRIMARY" name="">
  77. <part>id</part>
  78. </key>
  79. </table>
  80. <table x="736" y="306" name="Recepies">
  81. <row name="id" null="1" autoincrement="1">
  82. <datatype>INTEGER</datatype>
  83. <default>NULL</default></row>
  84. <row name="DoctorId" null="1" autoincrement="0">
  85. <datatype>INTEGER</datatype>
  86. <default>NULL</default><relation table="Doctors" row="id" />
  87. </row>
  88. <row name="PatientId" null="1" autoincrement="0">
  89. <datatype>INTEGER</datatype>
  90. <default>NULL</default><relation table="Patient" row="id" />
  91. </row>
  92. <key type="PRIMARY" name="">
  93. <part>id</part>
  94. </key>
  95. </table>
  96. <table x="243" y="158" name="Doctors">
  97. <row name="id" null="1" autoincrement="1">
  98. <datatype>INTEGER</datatype>
  99. <default>NULL</default></row>
  100. <row name="FullName" null="1" autoincrement="0">
  101. <datatype>VARCHAR</datatype>
  102. <default>NULL</default></row>
  103. <key type="PRIMARY" name="">
  104. <part>id</part>
  105. </key>
  106. </table>
  107. <table x="240" y="288" name="Patient">
  108. <row name="id" null="1" autoincrement="1">
  109. <datatype>INTEGER</datatype>
  110. <default>NULL</default></row>
  111. <row name="FullName" null="1" autoincrement="0">
  112. <datatype>VARCHAR</datatype>
  113. <default>NULL</default></row>
  114. <key type="PRIMARY" name="">
  115. <part>id</part>
  116. </key>
  117. </table>
  118. <table x="951" y="87" name="RecepieDrugs">
  119. <row name="RecepieId" null="1" autoincrement="0">
  120. <datatype>INTEGER</datatype>
  121. <default>NULL</default><relation table="Recepies" row="id" />
  122. </row>
  123. <row name="DrugId" null="1" autoincrement="0">
  124. <datatype>INTEGER</datatype>
  125. <default>NULL</default><relation table="Drugs" row="id" />
  126. </row>
  127. <row name="Quantity" null="1" autoincrement="0">
  128. <datatype>INTEGER</datatype>
  129. <default>NULL</default></row>
  130. <key type="PRIMARY" name="">
  131. <part>RecepieId</part>
  132. <part>DrugId</part>
  133. </key>
  134. </table>
  135. <table x="536" y="58" name="Orders">
  136. <row name="id" null="1" autoincrement="1">
  137. <datatype>INTEGER</datatype>
  138. <default>NULL</default></row>
  139. <row name="Drug Name" null="1" autoincrement="0">
  140. <datatype>INTEGER</datatype>
  141. <default>NULL</default></row>
  142. <row name="Quantity" null="1" autoincrement="0">
  143. <datatype>INTEGER</datatype>
  144. <default>NULL</default></row>
  145. <row name="DoctorId" null="1" autoincrement="0">
  146. <datatype>INTEGER</datatype>
  147. <default>NULL</default><relation table="Doctors" row="id" />
  148. </row>
  149. <row name="ReceipeId" null="1" autoincrement="0">
  150. <datatype>INTEGER</datatype>
  151. <default>NULL</default><relation table="Recepies" row="id" />
  152. </row>
  153. <row name="Status" null="1" autoincrement="0">
  154. <datatype>VARCHAR</datatype>
  155. <default>NULL</default></row>
  156. <key type="PRIMARY" name="">
  157. <part>id</part>
  158. </key>
  159. </table>
  160. <table x="206" y="472" name="Drugs">
  161. <row name="id" null="1" autoincrement="1">
  162. <datatype>INTEGER</datatype>
  163. <default>NULL</default></row>
  164. <row name="Name" null="1" autoincrement="0">
  165. <datatype>VARCHAR</datatype>
  166. <default>NULL</default></row>
  167. <row name="Producer" null="1" autoincrement="0">
  168. <datatype>VARCHAR</datatype>
  169. <default>NULL</default></row>
  170. <row name="Stock" null="1" autoincrement="0">
  171. <datatype>INTEGER</datatype>
  172. <default>NULL</default></row>
  173. <key type="PRIMARY" name="">
  174. <part>id</part>
  175. </key>
  176. </table>
  177. <table x="324" y="471" name="Orders">
  178. <row name="id" null="1" autoincrement="1">
  179. <datatype>INTEGER</datatype>
  180. <default>NULL</default></row>
  181. <row name="Drug Name" null="1" autoincrement="0">
  182. <datatype>VARCHAR</datatype>
  183. <default>NULL</default></row>
  184. <row name="Quantity" null="1" autoincrement="0">
  185. <datatype>INTEGER</datatype>
  186. <default>NULL</default></row>
  187. <row name="Doctor Name" null="1" autoincrement="0">
  188. <datatype>VARCHAR</datatype>
  189. <default>NULL</default></row>
  190. <row name="Status" null="1" autoincrement="0">
  191. <datatype>VARCHAR</datatype>
  192. <default>NULL</default></row>
  193. <key type="PRIMARY" name="">
  194. <part>id</part>
  195. </key>
  196. </table>
  197. <table x="446" y="473" name="Pharmacists">
  198. <row name="id" null="1" autoincrement="1">
  199. <datatype>INTEGER</datatype>
  200. <default>NULL</default></row>
  201. <row name="Full Name" null="1" autoincrement="0">
  202. <datatype>VARCHAR</datatype>
  203. <default>NULL</default></row>
  204. <key type="PRIMARY" name="">
  205. <part>id</part>
  206. </key>
  207. </table>
  208. </sql>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement