4eb729b2-843d-44b4-aab0-d35125e95ae3.xml 9.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <dataSource name="hibernate.cfg.xml/Hibernate">
  3. <database-model serializer="dbm" rdbms="MYSQL" format-version="4.0">
  4. <root id="1"/>
  5. <schema id="2" parent="1" name="anketa">
  6. <Current>1</Current>
  7. <Visible>1</Visible>
  8. </schema>
  9. <schema id="3" parent="1" name="information_schema"/>
  10. <schema id="4" parent="1" name="mysql"/>
  11. <schema id="5" parent="1" name="performance_schema"/>
  12. <schema id="6" parent="1" name="sakila"/>
  13. <schema id="7" parent="1" name="sys"/>
  14. <schema id="8" parent="1" name="world"/>
  15. <table id="9" parent="2" name="clients"/>
  16. <table id="10" parent="2" name="groups"/>
  17. <table id="11" parent="2" name="moderators"/>
  18. <table id="12" parent="2" name="projects"/>
  19. <table id="13" parent="2" name="st_pr"/>
  20. <table id="14" parent="2" name="students"/>
  21. <table id="15" parent="2" name="users"/>
  22. <column id="16" parent="9" name="client_id">
  23. <Position>1</Position>
  24. <DataType>int(11)|0</DataType>
  25. <NotNull>1</NotNull>
  26. </column>
  27. <column id="17" parent="9" name="cl_family">
  28. <Position>2</Position>
  29. <DataType>varchar(45)|0</DataType>
  30. </column>
  31. <column id="18" parent="9" name="cl_first_name">
  32. <Position>3</Position>
  33. <DataType>varchar(45)|0</DataType>
  34. </column>
  35. <column id="19" parent="9" name="cl_sec_name">
  36. <Position>4</Position>
  37. <DataType>varchar(45)|0</DataType>
  38. </column>
  39. <column id="20" parent="9" name="cl_password">
  40. <Position>5</Position>
  41. <DataType>varchar(45)|0</DataType>
  42. </column>
  43. <key id="21" parent="9" name="PRIMARY">
  44. <ColNames>client_id</ColNames>
  45. <Primary>1</Primary>
  46. </key>
  47. <column id="22" parent="10" name="group_id">
  48. <Position>1</Position>
  49. <DataType>int(11)|0</DataType>
  50. <NotNull>1</NotNull>
  51. </column>
  52. <column id="23" parent="10" name="group_name">
  53. <Position>2</Position>
  54. <DataType>varchar(45)|0</DataType>
  55. </column>
  56. <column id="24" parent="10" name="year">
  57. <Position>3</Position>
  58. <DataType>varchar(45)|0</DataType>
  59. </column>
  60. <key id="25" parent="10" name="PRIMARY">
  61. <ColNames>group_id</ColNames>
  62. <Primary>1</Primary>
  63. </key>
  64. <column id="26" parent="11" name="mod_id">
  65. <Position>1</Position>
  66. <DataType>int(11)|0</DataType>
  67. <NotNull>1</NotNull>
  68. </column>
  69. <column id="27" parent="11" name="mod_family">
  70. <Position>2</Position>
  71. <DataType>varchar(45)|0</DataType>
  72. </column>
  73. <column id="28" parent="11" name="mod_first_name">
  74. <Position>3</Position>
  75. <DataType>varchar(45)|0</DataType>
  76. </column>
  77. <column id="29" parent="11" name="mod_sec_name">
  78. <Position>4</Position>
  79. <DataType>varchar(45)|0</DataType>
  80. </column>
  81. <column id="30" parent="11" name="mod_password">
  82. <Position>5</Position>
  83. <DataType>varchar(45)|0</DataType>
  84. </column>
  85. <column id="31" parent="11" name="mod_birthdate">
  86. <Position>6</Position>
  87. <DataType>varchar(255)|0</DataType>
  88. <DefaultExpression>&apos;11.11.2011&apos;</DefaultExpression>
  89. </column>
  90. <column id="32" parent="11" name="mod_email">
  91. <Position>7</Position>
  92. <DataType>varchar(255)|0</DataType>
  93. <DefaultExpression>&apos;pochta@mail.ru&apos;</DefaultExpression>
  94. </column>
  95. <column id="33" parent="11" name="mod_hometown">
  96. <Position>8</Position>
  97. <DataType>varchar(255)|0</DataType>
  98. <DefaultExpression>&apos;Город&apos;</DefaultExpression>
  99. </column>
  100. <column id="34" parent="11" name="mod_phone">
  101. <Position>9</Position>
  102. <DataType>varchar(255)|0</DataType>
  103. <DefaultExpression>&apos;0000000000&apos;</DefaultExpression>
  104. </column>
  105. <key id="35" parent="11" name="PRIMARY">
  106. <ColNames>mod_id</ColNames>
  107. <Primary>1</Primary>
  108. </key>
  109. <column id="36" parent="12" name="pr_id">
  110. <Position>1</Position>
  111. <DataType>int(11)|0</DataType>
  112. <NotNull>1</NotNull>
  113. <SequenceIdentity>1</SequenceIdentity>
  114. </column>
  115. <column id="37" parent="12" name="title">
  116. <Position>2</Position>
  117. <DataType>varchar(45)|0</DataType>
  118. </column>
  119. <column id="38" parent="12" name="description">
  120. <Position>3</Position>
  121. <DataType>varchar(45)|0</DataType>
  122. </column>
  123. <column id="39" parent="12" name="date_of_creation">
  124. <Position>4</Position>
  125. <DataType>timestamp|0</DataType>
  126. <NotNull>1</NotNull>
  127. <DefaultExpression>CURRENT_TIMESTAMP</DefaultExpression>
  128. </column>
  129. <column id="40" parent="12" name="status">
  130. <Position>5</Position>
  131. <DataType>varchar(45)|0</DataType>
  132. </column>
  133. <column id="41" parent="12" name="date_of_ready">
  134. <Position>6</Position>
  135. <DataType>date|0</DataType>
  136. </column>
  137. <column id="42" parent="12" name="sum">
  138. <Position>7</Position>
  139. <DataType>int(11)|0</DataType>
  140. </column>
  141. <column id="43" parent="12" name="mod_id">
  142. <Position>8</Position>
  143. <DataType>int(11)|0</DataType>
  144. </column>
  145. <column id="44" parent="12" name="client_id">
  146. <Position>9</Position>
  147. <DataType>int(11)|0</DataType>
  148. <NotNull>1</NotNull>
  149. </column>
  150. <column id="45" parent="12" name="jsondata">
  151. <Position>10</Position>
  152. <DataType>varchar(255)|0</DataType>
  153. <DefaultExpression>&apos;[]&apos;</DefaultExpression>
  154. </column>
  155. <index id="46" parent="12" name="FK_ffb6klvqmnwust69pdfgau69i">
  156. <ColNames>client_id</ColNames>
  157. </index>
  158. <index id="47" parent="12" name="pr_modFK_idx">
  159. <ColNames>mod_id</ColNames>
  160. </index>
  161. <key id="48" parent="12" name="PRIMARY">
  162. <ColNames>pr_id</ColNames>
  163. <Primary>1</Primary>
  164. </key>
  165. <foreign-key id="49" parent="12" name="pr_modFK">
  166. <ColNames>mod_id</ColNames>
  167. <RefSchemaName>anketa</RefSchemaName>
  168. <RefTableName>moderators</RefTableName>
  169. <RefColNames>mod_id</RefColNames>
  170. <OnUpdate>no-action</OnUpdate>
  171. <OnDelete>no-action</OnDelete>
  172. </foreign-key>
  173. <foreign-key id="50" parent="12" name="FK_ffb6klvqmnwust69pdfgau69i">
  174. <ColNames>client_id</ColNames>
  175. <RefSchemaName>anketa</RefSchemaName>
  176. <RefTableName>clients</RefTableName>
  177. <RefColNames>client_id</RefColNames>
  178. </foreign-key>
  179. <column id="51" parent="13" name="id">
  180. <Position>1</Position>
  181. <DataType>int(11)|0</DataType>
  182. <NotNull>1</NotNull>
  183. </column>
  184. <column id="52" parent="13" name="st_id">
  185. <Position>2</Position>
  186. <DataType>int(11)|0</DataType>
  187. </column>
  188. <column id="53" parent="13" name="pr_id">
  189. <Position>3</Position>
  190. <DataType>int(11)|0</DataType>
  191. </column>
  192. <index id="54" parent="13" name="prFK_idx">
  193. <ColNames>pr_id</ColNames>
  194. </index>
  195. <index id="55" parent="13" name="stFK_idx">
  196. <ColNames>st_id</ColNames>
  197. </index>
  198. <key id="56" parent="13" name="PRIMARY">
  199. <ColNames>id</ColNames>
  200. <Primary>1</Primary>
  201. </key>
  202. <foreign-key id="57" parent="13" name="stFK">
  203. <ColNames>st_id</ColNames>
  204. <RefSchemaName>anketa</RefSchemaName>
  205. <RefTableName>students</RefTableName>
  206. <RefColNames>students_id</RefColNames>
  207. <OnUpdate>no-action</OnUpdate>
  208. <OnDelete>no-action</OnDelete>
  209. </foreign-key>
  210. <foreign-key id="58" parent="13" name="prFK">
  211. <ColNames>pr_id</ColNames>
  212. <RefSchemaName>anketa</RefSchemaName>
  213. <RefTableName>projects</RefTableName>
  214. <RefColNames>pr_id</RefColNames>
  215. <OnUpdate>no-action</OnUpdate>
  216. <OnDelete>no-action</OnDelete>
  217. </foreign-key>
  218. <column id="59" parent="14" name="students_id">
  219. <Position>1</Position>
  220. <DataType>int(11)|0</DataType>
  221. <NotNull>1</NotNull>
  222. </column>
  223. <column id="60" parent="14" name="group_id">
  224. <Position>2</Position>
  225. <DataType>int(11)|0</DataType>
  226. </column>
  227. <column id="61" parent="14" name="st_family">
  228. <Position>3</Position>
  229. <DataType>varchar(45)|0</DataType>
  230. </column>
  231. <column id="62" parent="14" name="st_first_name">
  232. <Position>4</Position>
  233. <DataType>varchar(45)|0</DataType>
  234. </column>
  235. <column id="63" parent="14" name="st_sec_name">
  236. <Position>5</Position>
  237. <DataType>varchar(45)|0</DataType>
  238. </column>
  239. <column id="64" parent="14" name="st_pk_number">
  240. <Position>6</Position>
  241. <DataType>varchar(45)|0</DataType>
  242. </column>
  243. <index id="65" parent="14" name="stud_groupFK_idx">
  244. <ColNames>group_id</ColNames>
  245. </index>
  246. <key id="66" parent="14" name="PRIMARY">
  247. <ColNames>students_id</ColNames>
  248. <Primary>1</Primary>
  249. </key>
  250. <foreign-key id="67" parent="14" name="stud_groupFK">
  251. <ColNames>group_id</ColNames>
  252. <RefSchemaName>anketa</RefSchemaName>
  253. <RefTableName>groups</RefTableName>
  254. <RefColNames>group_id</RefColNames>
  255. <OnUpdate>no-action</OnUpdate>
  256. <OnDelete>no-action</OnDelete>
  257. </foreign-key>
  258. <column id="68" parent="15" name="user_id">
  259. <Position>1</Position>
  260. <DataType>int(11)|0</DataType>
  261. <NotNull>1</NotNull>
  262. </column>
  263. <column id="69" parent="15" name="user_login">
  264. <Position>2</Position>
  265. <DataType>varchar(45)|0</DataType>
  266. </column>
  267. <column id="70" parent="15" name="user_password">
  268. <Position>3</Position>
  269. <DataType>varchar(45)|0</DataType>
  270. </column>
  271. <key id="71" parent="15" name="PRIMARY">
  272. <ColNames>user_id</ColNames>
  273. <Primary>1</Primary>
  274. </key>
  275. </database-model>
  276. </dataSource>