Model1.csdl 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <Schema Namespace="ModelKindergartenEntities" Alias="Self" annotation:UseStrongSpatialTypes="false" xmlns:annotation="http://schemas.microsoft.com/ado/2009/02/edm/annotation" xmlns:customannotation="http://schemas.microsoft.com/ado/2013/11/edm/customannotation" xmlns="http://schemas.microsoft.com/ado/2009/11/edm">
  3. <EntityContainer Name="KindergartenEntities" annotation:LazyLoadingEnabled="true">
  4. <EntitySet Name="Attendance" EntityType="ModelKindergartenEntities.Attendance" />
  5. <EntitySet Name="Children" EntityType="ModelKindergartenEntities.Children" />
  6. <EntitySet Name="Distributions" EntityType="ModelKindergartenEntities.Distributions" />
  7. <EntitySet Name="Employees" EntityType="ModelKindergartenEntities.Employees" />
  8. <EntitySet Name="Genders" EntityType="ModelKindergartenEntities.Genders" />
  9. <EntitySet Name="Groups" EntityType="ModelKindergartenEntities.Groups" />
  10. <EntitySet Name="Kinships" EntityType="ModelKindergartenEntities.Kinships" />
  11. <EntitySet Name="Parents" EntityType="ModelKindergartenEntities.Parents" />
  12. <EntitySet Name="Positions" EntityType="ModelKindergartenEntities.Positions" />
  13. <EntitySet Name="Roles" EntityType="ModelKindergartenEntities.Roles" />
  14. <EntitySet Name="Sertificates" EntityType="ModelKindergartenEntities.Sertificates" />
  15. <EntitySet Name="Types_group" EntityType="ModelKindergartenEntities.Types_group" />
  16. <AssociationSet Name="FK__Attendanc__Id_ch__5F7E2DAC" Association="ModelKindergartenEntities.FK__Attendanc__Id_ch__5F7E2DAC">
  17. <End Role="Children" EntitySet="Children" />
  18. <End Role="Attendance" EntitySet="Attendance" />
  19. </AssociationSet>
  20. <AssociationSet Name="FK__Children__Id_gen__5BAD9CC8" Association="ModelKindergartenEntities.FK__Children__Id_gen__5BAD9CC8">
  21. <End Role="Genders" EntitySet="Genders" />
  22. <End Role="Children" EntitySet="Children" />
  23. </AssociationSet>
  24. <AssociationSet Name="FK__Children__Id_gro__5CA1C101" Association="ModelKindergartenEntities.FK__Children__Id_gro__5CA1C101">
  25. <End Role="Groups" EntitySet="Groups" />
  26. <End Role="Children" EntitySet="Children" />
  27. </AssociationSet>
  28. <AssociationSet Name="FK__Kinships__Id_chi__70A8B9AE" Association="ModelKindergartenEntities.FK__Kinships__Id_chi__70A8B9AE">
  29. <End Role="Children" EntitySet="Children" />
  30. <End Role="Kinships" EntitySet="Kinships" />
  31. </AssociationSet>
  32. <AssociationSet Name="FK_Sertificates_Children" Association="ModelKindergartenEntities.FK_Sertificates_Children">
  33. <End Role="Children" EntitySet="Children" />
  34. <End Role="Sertificates" EntitySet="Sertificates" />
  35. </AssociationSet>
  36. <AssociationSet Name="FK__Distribut__Id_em__39237A9A" Association="ModelKindergartenEntities.FK__Distribut__Id_em__39237A9A">
  37. <End Role="Employees" EntitySet="Employees" />
  38. <End Role="Distributions" EntitySet="Distributions" />
  39. </AssociationSet>
  40. <AssociationSet Name="FK__Distribut__Id_gr__3A179ED3" Association="ModelKindergartenEntities.FK__Distribut__Id_gr__3A179ED3">
  41. <End Role="Groups" EntitySet="Groups" />
  42. <End Role="Distributions" EntitySet="Distributions" />
  43. </AssociationSet>
  44. <AssociationSet Name="FK__Employees__Id_ge__1E6F845E" Association="ModelKindergartenEntities.FK__Employees__Id_ge__1E6F845E">
  45. <End Role="Genders" EntitySet="Genders" />
  46. <End Role="Employees" EntitySet="Employees" />
  47. </AssociationSet>
  48. <AssociationSet Name="FK__Employees__Id_po__1F63A897" Association="ModelKindergartenEntities.FK__Employees__Id_po__1F63A897">
  49. <End Role="Positions" EntitySet="Positions" />
  50. <End Role="Employees" EntitySet="Employees" />
  51. </AssociationSet>
  52. <AssociationSet Name="FK__Employees__Id_ro__2057CCD0" Association="ModelKindergartenEntities.FK__Employees__Id_ro__2057CCD0">
  53. <End Role="Roles" EntitySet="Roles" />
  54. <End Role="Employees" EntitySet="Employees" />
  55. </AssociationSet>
  56. <AssociationSet Name="FK__Parents__Id_gend__6CD828CA" Association="ModelKindergartenEntities.FK__Parents__Id_gend__6CD828CA">
  57. <End Role="Genders" EntitySet="Genders" />
  58. <End Role="Parents" EntitySet="Parents" />
  59. </AssociationSet>
  60. <AssociationSet Name="FK__Groups__Id_type__4E53A1AA" Association="ModelKindergartenEntities.FK__Groups__Id_type__4E53A1AA">
  61. <End Role="Types_group" EntitySet="Types_group" />
  62. <End Role="Groups" EntitySet="Groups" />
  63. </AssociationSet>
  64. <AssociationSet Name="FK__Kinships__Id_par__6FB49575" Association="ModelKindergartenEntities.FK__Kinships__Id_par__6FB49575">
  65. <End Role="Parents" EntitySet="Parents" />
  66. <End Role="Kinships" EntitySet="Kinships" />
  67. </AssociationSet>
  68. </EntityContainer>
  69. <EntityType Name="Attendance">
  70. <Key>
  71. <PropertyRef Name="Id_visit" />
  72. </Key>
  73. <Property Name="Id_visit" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  74. <Property Name="Date_visit" Type="DateTime" Nullable="false" Precision="0" />
  75. <Property Name="Id_child" Type="Int32" Nullable="false" />
  76. <Property Name="Status_visit" Type="Int32" Nullable="false" />
  77. <NavigationProperty Name="Children" Relationship="ModelKindergartenEntities.FK__Attendanc__Id_ch__5F7E2DAC" FromRole="Attendance" ToRole="Children" />
  78. </EntityType>
  79. <EntityType Name="Children">
  80. <Key>
  81. <PropertyRef Name="Id_child" />
  82. </Key>
  83. <Property Name="Id_child" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  84. <Property Name="Surname" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
  85. <Property Name="Names" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
  86. <Property Name="Patronymic" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
  87. <Property Name="Birthdate" Type="DateTime" Nullable="false" Precision="0" />
  88. <Property Name="Id_gender" Type="Int32" Nullable="false" />
  89. <Property Name="Id_group" Type="Int32" Nullable="false" />
  90. <Property Name="Street" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
  91. <Property Name="Building" Type="String" Nullable="false" MaxLength="10" FixedLength="false" Unicode="true" />
  92. <Property Name="Photo" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
  93. <NavigationProperty Name="Attendance" Relationship="ModelKindergartenEntities.FK__Attendanc__Id_ch__5F7E2DAC" FromRole="Children" ToRole="Attendance" />
  94. <NavigationProperty Name="Genders" Relationship="ModelKindergartenEntities.FK__Children__Id_gen__5BAD9CC8" FromRole="Children" ToRole="Genders" />
  95. <NavigationProperty Name="Groups" Relationship="ModelKindergartenEntities.FK__Children__Id_gro__5CA1C101" FromRole="Children" ToRole="Groups" />
  96. <NavigationProperty Name="Kinships" Relationship="ModelKindergartenEntities.FK__Kinships__Id_chi__70A8B9AE" FromRole="Children" ToRole="Kinships" />
  97. <NavigationProperty Name="Sertificates" Relationship="ModelKindergartenEntities.FK_Sertificates_Children" FromRole="Children" ToRole="Sertificates" />
  98. </EntityType>
  99. <EntityType Name="Distributions">
  100. <Key>
  101. <PropertyRef Name="Id_distribution" />
  102. </Key>
  103. <Property Name="Id_distribution" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  104. <Property Name="Id_employee" Type="Int32" Nullable="false" />
  105. <Property Name="Id_group" Type="Int32" Nullable="false" />
  106. <NavigationProperty Name="Employees" Relationship="ModelKindergartenEntities.FK__Distribut__Id_em__39237A9A" FromRole="Distributions" ToRole="Employees" />
  107. <NavigationProperty Name="Groups" Relationship="ModelKindergartenEntities.FK__Distribut__Id_gr__3A179ED3" FromRole="Distributions" ToRole="Groups" />
  108. </EntityType>
  109. <EntityType Name="Employees">
  110. <Key>
  111. <PropertyRef Name="Id_employee" />
  112. </Key>
  113. <Property Name="Id_employee" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  114. <Property Name="Surname" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
  115. <Property Name="Names" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
  116. <Property Name="Patronymic" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
  117. <Property Name="Birthdate" Type="DateTime" Nullable="false" Precision="0" />
  118. <Property Name="Id_gender" Type="Int32" Nullable="false" />
  119. <Property Name="Id_position" Type="Int32" Nullable="false" />
  120. <Property Name="Street" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
  121. <Property Name="Building" Type="String" Nullable="false" MaxLength="10" FixedLength="false" Unicode="true" />
  122. <Property Name="Phone" Type="String" Nullable="false" MaxLength="20" FixedLength="false" Unicode="true" />
  123. <Property Name="Login_user" Type="String" Nullable="false" MaxLength="20" FixedLength="false" Unicode="true" />
  124. <Property Name="Password_user" Type="Int32" Nullable="false" />
  125. <Property Name="Id_role" Type="Int32" Nullable="false" />
  126. <NavigationProperty Name="Distributions" Relationship="ModelKindergartenEntities.FK__Distribut__Id_em__39237A9A" FromRole="Employees" ToRole="Distributions" />
  127. <NavigationProperty Name="Genders" Relationship="ModelKindergartenEntities.FK__Employees__Id_ge__1E6F845E" FromRole="Employees" ToRole="Genders" />
  128. <NavigationProperty Name="Positions" Relationship="ModelKindergartenEntities.FK__Employees__Id_po__1F63A897" FromRole="Employees" ToRole="Positions" />
  129. <NavigationProperty Name="Roles" Relationship="ModelKindergartenEntities.FK__Employees__Id_ro__2057CCD0" FromRole="Employees" ToRole="Roles" />
  130. </EntityType>
  131. <EntityType Name="Genders">
  132. <Key>
  133. <PropertyRef Name="Id_gender" />
  134. </Key>
  135. <Property Name="Id_gender" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  136. <Property Name="Gender" Type="String" Nullable="false" MaxLength="10" FixedLength="false" Unicode="true" />
  137. <NavigationProperty Name="Children" Relationship="ModelKindergartenEntities.FK__Children__Id_gen__5BAD9CC8" FromRole="Genders" ToRole="Children" />
  138. <NavigationProperty Name="Employees" Relationship="ModelKindergartenEntities.FK__Employees__Id_ge__1E6F845E" FromRole="Genders" ToRole="Employees" />
  139. <NavigationProperty Name="Parents" Relationship="ModelKindergartenEntities.FK__Parents__Id_gend__6CD828CA" FromRole="Genders" ToRole="Parents" />
  140. </EntityType>
  141. <EntityType Name="Groups">
  142. <Key>
  143. <PropertyRef Name="Id_group" />
  144. </Key>
  145. <Property Name="Id_group" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  146. <Property Name="Id_type" Type="Int32" Nullable="false" />
  147. <Property Name="Code" Type="Int32" Nullable="false" />
  148. <NavigationProperty Name="Children" Relationship="ModelKindergartenEntities.FK__Children__Id_gro__5CA1C101" FromRole="Groups" ToRole="Children" />
  149. <NavigationProperty Name="Distributions" Relationship="ModelKindergartenEntities.FK__Distribut__Id_gr__3A179ED3" FromRole="Groups" ToRole="Distributions" />
  150. <NavigationProperty Name="Types_group" Relationship="ModelKindergartenEntities.FK__Groups__Id_type__4E53A1AA" FromRole="Groups" ToRole="Types_group" />
  151. </EntityType>
  152. <EntityType Name="Kinships">
  153. <Key>
  154. <PropertyRef Name="Id_kinship" />
  155. </Key>
  156. <Property Name="Id_kinship" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  157. <Property Name="Id_parent" Type="Int32" Nullable="false" />
  158. <Property Name="Id_child" Type="Int32" Nullable="false" />
  159. <NavigationProperty Name="Children" Relationship="ModelKindergartenEntities.FK__Kinships__Id_chi__70A8B9AE" FromRole="Kinships" ToRole="Children" />
  160. <NavigationProperty Name="Parents" Relationship="ModelKindergartenEntities.FK__Kinships__Id_par__6FB49575" FromRole="Kinships" ToRole="Parents" />
  161. </EntityType>
  162. <EntityType Name="Parents">
  163. <Key>
  164. <PropertyRef Name="Id_parent" />
  165. </Key>
  166. <Property Name="Id_parent" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  167. <Property Name="Surname" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
  168. <Property Name="Names" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
  169. <Property Name="Patronymic" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
  170. <Property Name="Birthdate" Type="DateTime" Nullable="false" Precision="0" />
  171. <Property Name="Id_gender" Type="Int32" Nullable="false" />
  172. <Property Name="Street" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
  173. <Property Name="Building" Type="String" Nullable="false" MaxLength="10" FixedLength="false" Unicode="true" />
  174. <Property Name="Phone" Type="String" Nullable="false" MaxLength="20" FixedLength="false" Unicode="true" />
  175. <NavigationProperty Name="Genders" Relationship="ModelKindergartenEntities.FK__Parents__Id_gend__6CD828CA" FromRole="Parents" ToRole="Genders" />
  176. <NavigationProperty Name="Kinships" Relationship="ModelKindergartenEntities.FK__Kinships__Id_par__6FB49575" FromRole="Parents" ToRole="Kinships" />
  177. </EntityType>
  178. <EntityType Name="Positions">
  179. <Key>
  180. <PropertyRef Name="Id_position" />
  181. </Key>
  182. <Property Name="Id_position" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  183. <Property Name="Position" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
  184. <NavigationProperty Name="Employees" Relationship="ModelKindergartenEntities.FK__Employees__Id_po__1F63A897" FromRole="Positions" ToRole="Employees" />
  185. </EntityType>
  186. <EntityType Name="Roles">
  187. <Key>
  188. <PropertyRef Name="Id_role" />
  189. </Key>
  190. <Property Name="Id_role" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  191. <Property Name="Role_name" Type="String" Nullable="false" MaxLength="20" FixedLength="false" Unicode="true" />
  192. <NavigationProperty Name="Employees" Relationship="ModelKindergartenEntities.FK__Employees__Id_ro__2057CCD0" FromRole="Roles" ToRole="Employees" />
  193. </EntityType>
  194. <EntityType Name="Sertificates">
  195. <Key>
  196. <PropertyRef Name="Id_sertificate" />
  197. </Key>
  198. <Property Name="Id_sertificate" Type="Int32" Nullable="false" />
  199. <Property Name="Series" Type="String" Nullable="false" MaxLength="10" FixedLength="false" Unicode="true" />
  200. <Property Name="Number" Type="Int32" Nullable="false" />
  201. <Property Name="Date_issue" Type="DateTime" Nullable="false" Precision="0" />
  202. <Property Name="Iddued" Type="String" Nullable="false" MaxLength="100" FixedLength="false" Unicode="true" />
  203. <NavigationProperty Name="Children" Relationship="ModelKindergartenEntities.FK_Sertificates_Children" FromRole="Sertificates" ToRole="Children" />
  204. </EntityType>
  205. <EntityType Name="Types_group">
  206. <Key>
  207. <PropertyRef Name="Id_type" />
  208. </Key>
  209. <Property Name="Id_type" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  210. <Property Name="Type_group" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
  211. <NavigationProperty Name="Groups" Relationship="ModelKindergartenEntities.FK__Groups__Id_type__4E53A1AA" FromRole="Types_group" ToRole="Groups" />
  212. </EntityType>
  213. <Association Name="FK__Attendanc__Id_ch__5F7E2DAC">
  214. <End Type="ModelKindergartenEntities.Children" Role="Children" Multiplicity="1" />
  215. <End Type="ModelKindergartenEntities.Attendance" Role="Attendance" Multiplicity="*" />
  216. <ReferentialConstraint>
  217. <Principal Role="Children">
  218. <PropertyRef Name="Id_child" />
  219. </Principal>
  220. <Dependent Role="Attendance">
  221. <PropertyRef Name="Id_child" />
  222. </Dependent>
  223. </ReferentialConstraint>
  224. </Association>
  225. <Association Name="FK__Children__Id_gen__5BAD9CC8">
  226. <End Type="ModelKindergartenEntities.Genders" Role="Genders" Multiplicity="1" />
  227. <End Type="ModelKindergartenEntities.Children" Role="Children" Multiplicity="*" />
  228. <ReferentialConstraint>
  229. <Principal Role="Genders">
  230. <PropertyRef Name="Id_gender" />
  231. </Principal>
  232. <Dependent Role="Children">
  233. <PropertyRef Name="Id_gender" />
  234. </Dependent>
  235. </ReferentialConstraint>
  236. </Association>
  237. <Association Name="FK__Children__Id_gro__5CA1C101">
  238. <End Type="ModelKindergartenEntities.Groups" Role="Groups" Multiplicity="1" />
  239. <End Type="ModelKindergartenEntities.Children" Role="Children" Multiplicity="*" />
  240. <ReferentialConstraint>
  241. <Principal Role="Groups">
  242. <PropertyRef Name="Id_group" />
  243. </Principal>
  244. <Dependent Role="Children">
  245. <PropertyRef Name="Id_group" />
  246. </Dependent>
  247. </ReferentialConstraint>
  248. </Association>
  249. <Association Name="FK__Kinships__Id_chi__70A8B9AE">
  250. <End Type="ModelKindergartenEntities.Children" Role="Children" Multiplicity="1" />
  251. <End Type="ModelKindergartenEntities.Kinships" Role="Kinships" Multiplicity="*" />
  252. <ReferentialConstraint>
  253. <Principal Role="Children">
  254. <PropertyRef Name="Id_child" />
  255. </Principal>
  256. <Dependent Role="Kinships">
  257. <PropertyRef Name="Id_child" />
  258. </Dependent>
  259. </ReferentialConstraint>
  260. </Association>
  261. <Association Name="FK_Sertificates_Children">
  262. <End Type="ModelKindergartenEntities.Children" Role="Children" Multiplicity="1" />
  263. <End Type="ModelKindergartenEntities.Sertificates" Role="Sertificates" Multiplicity="0..1" />
  264. <ReferentialConstraint>
  265. <Principal Role="Children">
  266. <PropertyRef Name="Id_child" />
  267. </Principal>
  268. <Dependent Role="Sertificates">
  269. <PropertyRef Name="Id_sertificate" />
  270. </Dependent>
  271. </ReferentialConstraint>
  272. </Association>
  273. <Association Name="FK__Distribut__Id_em__39237A9A">
  274. <End Type="ModelKindergartenEntities.Employees" Role="Employees" Multiplicity="1" />
  275. <End Type="ModelKindergartenEntities.Distributions" Role="Distributions" Multiplicity="*" />
  276. <ReferentialConstraint>
  277. <Principal Role="Employees">
  278. <PropertyRef Name="Id_employee" />
  279. </Principal>
  280. <Dependent Role="Distributions">
  281. <PropertyRef Name="Id_employee" />
  282. </Dependent>
  283. </ReferentialConstraint>
  284. </Association>
  285. <Association Name="FK__Distribut__Id_gr__3A179ED3">
  286. <End Type="ModelKindergartenEntities.Groups" Role="Groups" Multiplicity="1" />
  287. <End Type="ModelKindergartenEntities.Distributions" Role="Distributions" Multiplicity="*" />
  288. <ReferentialConstraint>
  289. <Principal Role="Groups">
  290. <PropertyRef Name="Id_group" />
  291. </Principal>
  292. <Dependent Role="Distributions">
  293. <PropertyRef Name="Id_group" />
  294. </Dependent>
  295. </ReferentialConstraint>
  296. </Association>
  297. <Association Name="FK__Employees__Id_ge__1E6F845E">
  298. <End Type="ModelKindergartenEntities.Genders" Role="Genders" Multiplicity="1" />
  299. <End Type="ModelKindergartenEntities.Employees" Role="Employees" Multiplicity="*" />
  300. <ReferentialConstraint>
  301. <Principal Role="Genders">
  302. <PropertyRef Name="Id_gender" />
  303. </Principal>
  304. <Dependent Role="Employees">
  305. <PropertyRef Name="Id_gender" />
  306. </Dependent>
  307. </ReferentialConstraint>
  308. </Association>
  309. <Association Name="FK__Employees__Id_po__1F63A897">
  310. <End Type="ModelKindergartenEntities.Positions" Role="Positions" Multiplicity="1" />
  311. <End Type="ModelKindergartenEntities.Employees" Role="Employees" Multiplicity="*" />
  312. <ReferentialConstraint>
  313. <Principal Role="Positions">
  314. <PropertyRef Name="Id_position" />
  315. </Principal>
  316. <Dependent Role="Employees">
  317. <PropertyRef Name="Id_position" />
  318. </Dependent>
  319. </ReferentialConstraint>
  320. </Association>
  321. <Association Name="FK__Employees__Id_ro__2057CCD0">
  322. <End Type="ModelKindergartenEntities.Roles" Role="Roles" Multiplicity="1" />
  323. <End Type="ModelKindergartenEntities.Employees" Role="Employees" Multiplicity="*" />
  324. <ReferentialConstraint>
  325. <Principal Role="Roles">
  326. <PropertyRef Name="Id_role" />
  327. </Principal>
  328. <Dependent Role="Employees">
  329. <PropertyRef Name="Id_role" />
  330. </Dependent>
  331. </ReferentialConstraint>
  332. </Association>
  333. <Association Name="FK__Parents__Id_gend__6CD828CA">
  334. <End Type="ModelKindergartenEntities.Genders" Role="Genders" Multiplicity="1" />
  335. <End Type="ModelKindergartenEntities.Parents" Role="Parents" Multiplicity="*" />
  336. <ReferentialConstraint>
  337. <Principal Role="Genders">
  338. <PropertyRef Name="Id_gender" />
  339. </Principal>
  340. <Dependent Role="Parents">
  341. <PropertyRef Name="Id_gender" />
  342. </Dependent>
  343. </ReferentialConstraint>
  344. </Association>
  345. <Association Name="FK__Groups__Id_type__4E53A1AA">
  346. <End Type="ModelKindergartenEntities.Types_group" Role="Types_group" Multiplicity="1" />
  347. <End Type="ModelKindergartenEntities.Groups" Role="Groups" Multiplicity="*" />
  348. <ReferentialConstraint>
  349. <Principal Role="Types_group">
  350. <PropertyRef Name="Id_type" />
  351. </Principal>
  352. <Dependent Role="Groups">
  353. <PropertyRef Name="Id_type" />
  354. </Dependent>
  355. </ReferentialConstraint>
  356. </Association>
  357. <Association Name="FK__Kinships__Id_par__6FB49575">
  358. <End Type="ModelKindergartenEntities.Parents" Role="Parents" Multiplicity="1" />
  359. <End Type="ModelKindergartenEntities.Kinships" Role="Kinships" Multiplicity="*" />
  360. <ReferentialConstraint>
  361. <Principal Role="Parents">
  362. <PropertyRef Name="Id_parent" />
  363. </Principal>
  364. <Dependent Role="Kinships">
  365. <PropertyRef Name="Id_parent" />
  366. </Dependent>
  367. </ReferentialConstraint>
  368. </Association>
  369. </Schema>