Model1.ssdl 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <Schema Namespace="Хранилище KadroviYshotModel" Provider="System.Data.SqlClient" ProviderManifestToken="2012" Alias="Self" xmlns:store="http://schemas.microsoft.com/ado/2007/12/edm/EntityStoreSchemaGenerator" xmlns:customannotation="http://schemas.microsoft.com/ado/2013/11/edm/customannotation" xmlns="http://schemas.microsoft.com/ado/2009/11/edm/ssdl">
  3. <EntityType Name="Childrens">
  4. <Key>
  5. <PropertyRef Name="IdChildren" />
  6. </Key>
  7. <Property Name="IdChildren" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  8. <Property Name="IdEmployee" Type="int" />
  9. <Property Name="Type" Type="nvarchar" MaxLength="50" />
  10. <Property Name="FullName" Type="nvarchar(max)" />
  11. <Property Name="DateBirth" Type="date" />
  12. </EntityType>
  13. <EntityType Name="Dolzhnosts">
  14. <Key>
  15. <PropertyRef Name="IdDolzhnost" />
  16. </Key>
  17. <Property Name="IdDolzhnost" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  18. <Property Name="NameDolzhnost" Type="nvarchar" MaxLength="50" />
  19. <Property Name="Salary" Type="money" />
  20. </EntityType>
  21. <EntityType Name="Educations">
  22. <Key>
  23. <PropertyRef Name="IdEducation" />
  24. </Key>
  25. <Property Name="IdEducation" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  26. <Property Name="Establishment" Type="nvarchar" MaxLength="50" />
  27. <Property Name="YearEnding" Type="int" />
  28. <Property Name="Qualification" Type="nvarchar" MaxLength="50" />
  29. <Property Name="Speciality" Type="nvarchar" MaxLength="50" />
  30. </EntityType>
  31. <EntityType Name="Employees">
  32. <Key>
  33. <PropertyRef Name="IdEmployee" />
  34. </Key>
  35. <Property Name="IdEmployee" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  36. <Property Name="Surname" Type="nvarchar" MaxLength="50" />
  37. <Property Name="Name" Type="nvarchar" MaxLength="50" />
  38. <Property Name="Otchestvo" Type="nvarchar" MaxLength="50" />
  39. <Property Name="DateBirth" Type="date" />
  40. <Property Name="IdDolzhnost" Type="int" />
  41. <Property Name="IdFamilyStatus" Type="int" />
  42. <Property Name="AddressResidence" Type="nvarchar(max)" />
  43. <Property Name="Telephone" Type="nvarchar" MaxLength="50" />
  44. <Property Name="DateReceipt" Type="date" />
  45. <Property Name="IdEducation" Type="int" />
  46. <Property Name="IdChildren" Type="int" />
  47. <Property Name="IdMilitaryDuty" Type="int" />
  48. </EntityType>
  49. <EntityType Name="FamilyStatuses">
  50. <Key>
  51. <PropertyRef Name="IdFamilyStatus" />
  52. </Key>
  53. <Property Name="IdFamilyStatus" Type="int" Nullable="false" />
  54. <Property Name="Name" Type="nvarchar" MaxLength="50" />
  55. </EntityType>
  56. <EntityType Name="MilitaryDuties">
  57. <Key>
  58. <PropertyRef Name="IdMilitaryDuty" />
  59. </Key>
  60. <Property Name="IdMilitaryDuty" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  61. <Property Name="MilitaryIdNumber" Type="int" />
  62. <Property Name="AccountingGroup" Type="nvarchar" MaxLength="50" />
  63. <Property Name="MilitaryRank" Type="nvarchar" MaxLength="50" />
  64. <Property Name="Profile" Type="nvarchar" MaxLength="50" />
  65. <Property Name="ReserveRank" Type="nvarchar" MaxLength="50" />
  66. <Property Name="DateReceipt" Type="date" />
  67. <Property Name="DateWithdrawal" Type="date" />
  68. <Property Name="Base" Type="nvarchar" MaxLength="50" />
  69. <Property Name="SpecialAccount" Type="bit" />
  70. <Property Name="MilitaryRegistrationNumber" Type="int" />
  71. <Property Name="MilitaryPositionCode" Type="int" />
  72. </EntityType>
  73. <EntityType Name="OrdersDismissal">
  74. <Key>
  75. <PropertyRef Name="IdDismissal" />
  76. </Key>
  77. <Property Name="IdDismissal" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  78. <Property Name="IdEmployee" Type="int" />
  79. <Property Name="DateApproval" Type="date" />
  80. <Property Name="Grounds" Type="nvarchar" MaxLength="50" />
  81. </EntityType>
  82. <EntityType Name="OrdersEmployment">
  83. <Key>
  84. <PropertyRef Name="IdAcceptanceWork" />
  85. </Key>
  86. <Property Name="IdAcceptanceWork" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  87. <Property Name="IdEmployee" Type="int" />
  88. <Property Name="IdStaffingTable" Type="int" />
  89. <Property Name="IdDolzhnost" Type="int" />
  90. <Property Name="DateApproval" Type="date" />
  91. </EntityType>
  92. <EntityType Name="Roles">
  93. <Key>
  94. <PropertyRef Name="IdRole" />
  95. </Key>
  96. <Property Name="IdRole" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  97. <Property Name="Name" Type="nvarchar" MaxLength="50" />
  98. </EntityType>
  99. <EntityType Name="StaffingTables">
  100. <Key>
  101. <PropertyRef Name="IdStaffingTable" />
  102. </Key>
  103. <Property Name="IdStaffingTable" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  104. <Property Name="IdEmployee" Type="int" />
  105. <Property Name="IdSubdivision" Type="int" />
  106. </EntityType>
  107. <EntityType Name="Subdivisions">
  108. <Key>
  109. <PropertyRef Name="IdSubdivision" />
  110. </Key>
  111. <Property Name="IdSubdivision" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  112. <Property Name="NameSubdivision" Type="nvarchar" MaxLength="50" />
  113. </EntityType>
  114. <EntityType Name="sysdiagrams">
  115. <Key>
  116. <PropertyRef Name="diagram_id" />
  117. </Key>
  118. <Property Name="name" Type="nvarchar" MaxLength="128" Nullable="false" />
  119. <Property Name="principal_id" Type="int" Nullable="false" />
  120. <Property Name="diagram_id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  121. <Property Name="version" Type="int" />
  122. <Property Name="definition" Type="varbinary(max)" />
  123. </EntityType>
  124. <EntityType Name="Users">
  125. <Key>
  126. <PropertyRef Name="IdUser" />
  127. </Key>
  128. <Property Name="IdUser" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  129. <Property Name="Name" Type="nvarchar" MaxLength="50" />
  130. <Property Name="Login" Type="nvarchar" MaxLength="50" />
  131. <Property Name="Password" Type="nvarchar" MaxLength="50" />
  132. <Property Name="IdRole" Type="int" />
  133. </EntityType>
  134. <!--Ошибки, обнаруженные при создании:
  135. предупреждение 6013: Первичный ключ в таблице или представлении "KadroviYshot.dbo.Dolzhnost" не определен, его не удалось вывести. Эта таблица или представление исключены. Чтобы использовать сущность, необходимо проверить схему, добавить правильные ключи и раскомментировать ее.
  136. <EntityType Name="Dolzhnost">
  137. <Property Name="Должность" Type="nvarchar" MaxLength="50" />
  138. <Property Name="Оклад" Type="money" />
  139. </EntityType>-->
  140. <!--Ошибки, обнаруженные при создании:
  141. предупреждение 6013: Первичный ключ в таблице или представлении "KadroviYshot.dbo.EmployeeInformation" не определен, его не удалось вывести. Эта таблица или представление исключены. Чтобы использовать сущность, необходимо проверить схему, добавить правильные ключи и раскомментировать ее.
  142. <EntityType Name="EmployeeInformation">
  143. <Property Name="Фамилия" Type="nvarchar" MaxLength="50" />
  144. <Property Name="Имя" Type="nvarchar" MaxLength="50" />
  145. <Property Name="Отчество" Type="nvarchar" MaxLength="50" />
  146. <Property Name="Дата рождение" Type="date" />
  147. <Property Name="Должность" Type="nvarchar" MaxLength="50" />
  148. <Property Name="Адресс" Type="nvarchar(max)" />
  149. <Property Name="Телефон" Type="nvarchar" MaxLength="50" />
  150. <Property Name="Дата принятия" Type="date" />
  151. <Property Name="Дети" Type="nvarchar(max)" />
  152. <Property Name="Семейный статус" Type="nvarchar" MaxLength="50" />
  153. <Property Name="Учебное учереждение" Type="nvarchar" MaxLength="50" />
  154. <Property Name="Номер военника" Type="int" />
  155. </EntityType>-->
  156. <!--Ошибки, обнаруженные при создании:
  157. предупреждение 6013: Первичный ключ в таблице или представлении "KadroviYshot.dbo.EmployeesFired" не определен, его не удалось вывести. Эта таблица или представление исключены. Чтобы использовать сущность, необходимо проверить схему, добавить правильные ключи и раскомментировать ее.
  158. <EntityType Name="EmployeesFired">
  159. <Property Name="Фамилия" Type="nvarchar" MaxLength="50" />
  160. <Property Name="Имя" Type="nvarchar" MaxLength="50" />
  161. <Property Name="Отчество" Type="nvarchar" MaxLength="50" />
  162. <Property Name="Дата рождения" Type="date" />
  163. <Property Name="Дата утверждения" Type="date" />
  164. <Property Name="Основания" Type="nvarchar" MaxLength="50" />
  165. </EntityType>-->
  166. <!--Ошибки, обнаруженные при создании:
  167. предупреждение 6013: Первичный ключ в таблице или представлении "KadroviYshot.dbo.EmploymentAgreement" не определен, его не удалось вывести. Эта таблица или представление исключены. Чтобы использовать сущность, необходимо проверить схему, добавить правильные ключи и раскомментировать ее.
  168. <EntityType Name="EmploymentAgreement">
  169. <Property Name="Фамилия" Type="nvarchar" MaxLength="50" />
  170. <Property Name="Имя" Type="nvarchar" MaxLength="50" />
  171. <Property Name="Отчество" Type="nvarchar" MaxLength="50" />
  172. <Property Name="Дата рождения" Type="date" />
  173. <Property Name="Адрес проживания" Type="nvarchar(max)" />
  174. <Property Name="Телефон" Type="nvarchar" MaxLength="50" />
  175. <Property Name="Дата принятия на работу" Type="date" />
  176. <Property Name="Подразделение" Type="nvarchar" MaxLength="50" />
  177. <Property Name="Должность" Type="nvarchar" MaxLength="50" />
  178. <Property Name="Оклад" Type="money" />
  179. </EntityType>-->
  180. <!--Ошибки, обнаруженные при создании:
  181. предупреждение 6013: Первичный ключ в таблице или представлении "KadroviYshot.dbo.StaffingTable" не определен, его не удалось вывести. Эта таблица или представление исключены. Чтобы использовать сущность, необходимо проверить схему, добавить правильные ключи и раскомментировать ее.
  182. <EntityType Name="StaffingTable">
  183. <Property Name="Подразделение" Type="nvarchar" MaxLength="50" />
  184. <Property Name="Фамилия" Type="nvarchar" MaxLength="50" />
  185. <Property Name="Имя" Type="nvarchar" MaxLength="50" />
  186. <Property Name="Отчество" Type="nvarchar" MaxLength="50" />
  187. <Property Name="Дата рождения" Type="date" />
  188. <Property Name="Адрес проживания" Type="nvarchar(max)" />
  189. <Property Name="Телефон" Type="nvarchar" MaxLength="50" />
  190. <Property Name="Принят на работу" Type="date" />
  191. </EntityType>-->
  192. <!--Ошибки, обнаруженные при создании:
  193. предупреждение 6013: Первичный ключ в таблице или представлении "KadroviYshot.dbo.Subdivision" не определен, его не удалось вывести. Эта таблица или представление исключены. Чтобы использовать сущность, необходимо проверить схему, добавить правильные ключи и раскомментировать ее.
  194. <EntityType Name="Subdivision">
  195. <Property Name="Подразделение" Type="nvarchar" MaxLength="50" />
  196. </EntityType>-->
  197. <Association Name="FK_Childrens_Employees">
  198. <End Role="Employees" Type="Self.Employees" Multiplicity="0..1" />
  199. <End Role="Childrens" Type="Self.Childrens" Multiplicity="*" />
  200. <ReferentialConstraint>
  201. <Principal Role="Employees">
  202. <PropertyRef Name="IdEmployee" />
  203. </Principal>
  204. <Dependent Role="Childrens">
  205. <PropertyRef Name="IdEmployee" />
  206. </Dependent>
  207. </ReferentialConstraint>
  208. </Association>
  209. <Association Name="FK_Employees_Dolzhnosts">
  210. <End Role="Dolzhnosts" Type="Self.Dolzhnosts" Multiplicity="0..1" />
  211. <End Role="Employees" Type="Self.Employees" Multiplicity="*" />
  212. <ReferentialConstraint>
  213. <Principal Role="Dolzhnosts">
  214. <PropertyRef Name="IdDolzhnost" />
  215. </Principal>
  216. <Dependent Role="Employees">
  217. <PropertyRef Name="IdDolzhnost" />
  218. </Dependent>
  219. </ReferentialConstraint>
  220. </Association>
  221. <Association Name="FK_Employees_Educations">
  222. <End Role="Educations" Type="Self.Educations" Multiplicity="0..1" />
  223. <End Role="Employees" Type="Self.Employees" Multiplicity="*" />
  224. <ReferentialConstraint>
  225. <Principal Role="Educations">
  226. <PropertyRef Name="IdEducation" />
  227. </Principal>
  228. <Dependent Role="Employees">
  229. <PropertyRef Name="IdEducation" />
  230. </Dependent>
  231. </ReferentialConstraint>
  232. </Association>
  233. <Association Name="FK_Employees_FamilyStatuses">
  234. <End Role="FamilyStatuses" Type="Self.FamilyStatuses" Multiplicity="0..1" />
  235. <End Role="Employees" Type="Self.Employees" Multiplicity="*" />
  236. <ReferentialConstraint>
  237. <Principal Role="FamilyStatuses">
  238. <PropertyRef Name="IdFamilyStatus" />
  239. </Principal>
  240. <Dependent Role="Employees">
  241. <PropertyRef Name="IdFamilyStatus" />
  242. </Dependent>
  243. </ReferentialConstraint>
  244. </Association>
  245. <Association Name="FK_Employees_MilitaryDuties">
  246. <End Role="MilitaryDuties" Type="Self.MilitaryDuties" Multiplicity="0..1" />
  247. <End Role="Employees" Type="Self.Employees" Multiplicity="*" />
  248. <ReferentialConstraint>
  249. <Principal Role="MilitaryDuties">
  250. <PropertyRef Name="IdMilitaryDuty" />
  251. </Principal>
  252. <Dependent Role="Employees">
  253. <PropertyRef Name="IdMilitaryDuty" />
  254. </Dependent>
  255. </ReferentialConstraint>
  256. </Association>
  257. <Association Name="FK_OrdersDismissal_Employees">
  258. <End Role="Employees" Type="Self.Employees" Multiplicity="0..1" />
  259. <End Role="OrdersDismissal" Type="Self.OrdersDismissal" Multiplicity="*" />
  260. <ReferentialConstraint>
  261. <Principal Role="Employees">
  262. <PropertyRef Name="IdEmployee" />
  263. </Principal>
  264. <Dependent Role="OrdersDismissal">
  265. <PropertyRef Name="IdEmployee" />
  266. </Dependent>
  267. </ReferentialConstraint>
  268. </Association>
  269. <Association Name="FK_OrdersEmployment_Dolzhnosts">
  270. <End Role="Dolzhnosts" Type="Self.Dolzhnosts" Multiplicity="0..1" />
  271. <End Role="OrdersEmployment" Type="Self.OrdersEmployment" Multiplicity="*" />
  272. <ReferentialConstraint>
  273. <Principal Role="Dolzhnosts">
  274. <PropertyRef Name="IdDolzhnost" />
  275. </Principal>
  276. <Dependent Role="OrdersEmployment">
  277. <PropertyRef Name="IdDolzhnost" />
  278. </Dependent>
  279. </ReferentialConstraint>
  280. </Association>
  281. <Association Name="FK_OrdersEmployment_Employees1">
  282. <End Role="Employees" Type="Self.Employees" Multiplicity="0..1" />
  283. <End Role="OrdersEmployment" Type="Self.OrdersEmployment" Multiplicity="*" />
  284. <ReferentialConstraint>
  285. <Principal Role="Employees">
  286. <PropertyRef Name="IdEmployee" />
  287. </Principal>
  288. <Dependent Role="OrdersEmployment">
  289. <PropertyRef Name="IdEmployee" />
  290. </Dependent>
  291. </ReferentialConstraint>
  292. </Association>
  293. <Association Name="FK_OrdersEmployment_StaffingTables">
  294. <End Role="StaffingTables" Type="Self.StaffingTables" Multiplicity="0..1" />
  295. <End Role="OrdersEmployment" Type="Self.OrdersEmployment" Multiplicity="*" />
  296. <ReferentialConstraint>
  297. <Principal Role="StaffingTables">
  298. <PropertyRef Name="IdStaffingTable" />
  299. </Principal>
  300. <Dependent Role="OrdersEmployment">
  301. <PropertyRef Name="IdStaffingTable" />
  302. </Dependent>
  303. </ReferentialConstraint>
  304. </Association>
  305. <Association Name="FK_StaffingTables_Subdivisions">
  306. <End Role="Subdivisions" Type="Self.Subdivisions" Multiplicity="0..1" />
  307. <End Role="StaffingTables" Type="Self.StaffingTables" Multiplicity="*" />
  308. <ReferentialConstraint>
  309. <Principal Role="Subdivisions">
  310. <PropertyRef Name="IdSubdivision" />
  311. </Principal>
  312. <Dependent Role="StaffingTables">
  313. <PropertyRef Name="IdSubdivision" />
  314. </Dependent>
  315. </ReferentialConstraint>
  316. </Association>
  317. <Association Name="FK_Users_Roles">
  318. <End Role="Roles" Type="Self.Roles" Multiplicity="0..1" />
  319. <End Role="Users" Type="Self.Users" Multiplicity="*" />
  320. <ReferentialConstraint>
  321. <Principal Role="Roles">
  322. <PropertyRef Name="IdRole" />
  323. </Principal>
  324. <Dependent Role="Users">
  325. <PropertyRef Name="IdRole" />
  326. </Dependent>
  327. </ReferentialConstraint>
  328. </Association>
  329. <Function Name="fn_diagramobjects" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="true" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo" ReturnType="int" />
  330. <Function Name="sp_alterdiagram" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo">
  331. <Parameter Name="diagramname" Type="nvarchar" Mode="In" />
  332. <Parameter Name="owner_id" Type="int" Mode="In" />
  333. <Parameter Name="version" Type="int" Mode="In" />
  334. <Parameter Name="definition" Type="varbinary(max)" Mode="In" />
  335. </Function>
  336. <Function Name="sp_creatediagram" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo">
  337. <Parameter Name="diagramname" Type="nvarchar" Mode="In" />
  338. <Parameter Name="owner_id" Type="int" Mode="In" />
  339. <Parameter Name="version" Type="int" Mode="In" />
  340. <Parameter Name="definition" Type="varbinary(max)" Mode="In" />
  341. </Function>
  342. <Function Name="sp_dropdiagram" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo">
  343. <Parameter Name="diagramname" Type="nvarchar" Mode="In" />
  344. <Parameter Name="owner_id" Type="int" Mode="In" />
  345. </Function>
  346. <Function Name="sp_helpdiagramdefinition" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo">
  347. <Parameter Name="diagramname" Type="nvarchar" Mode="In" />
  348. <Parameter Name="owner_id" Type="int" Mode="In" />
  349. </Function>
  350. <Function Name="sp_helpdiagrams" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo">
  351. <Parameter Name="diagramname" Type="nvarchar" Mode="In" />
  352. <Parameter Name="owner_id" Type="int" Mode="In" />
  353. </Function>
  354. <Function Name="sp_renamediagram" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo">
  355. <Parameter Name="diagramname" Type="nvarchar" Mode="In" />
  356. <Parameter Name="owner_id" Type="int" Mode="In" />
  357. <Parameter Name="new_diagramname" Type="nvarchar" Mode="In" />
  358. </Function>
  359. <Function Name="sp_upgraddiagrams" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo" />
  360. <EntityContainer Name="Хранилище KadroviYshotModelContainer">
  361. <EntitySet Name="Childrens" EntityType="Self.Childrens" Schema="dbo" store:Type="Tables" />
  362. <EntitySet Name="Dolzhnosts" EntityType="Self.Dolzhnosts" Schema="dbo" store:Type="Tables" />
  363. <EntitySet Name="Educations" EntityType="Self.Educations" Schema="dbo" store:Type="Tables" />
  364. <EntitySet Name="Employees" EntityType="Self.Employees" Schema="dbo" store:Type="Tables" />
  365. <EntitySet Name="FamilyStatuses" EntityType="Self.FamilyStatuses" Schema="dbo" store:Type="Tables" />
  366. <EntitySet Name="MilitaryDuties" EntityType="Self.MilitaryDuties" Schema="dbo" store:Type="Tables" />
  367. <EntitySet Name="OrdersDismissal" EntityType="Self.OrdersDismissal" Schema="dbo" store:Type="Tables" />
  368. <EntitySet Name="OrdersEmployment" EntityType="Self.OrdersEmployment" Schema="dbo" store:Type="Tables" />
  369. <EntitySet Name="Roles" EntityType="Self.Roles" Schema="dbo" store:Type="Tables" />
  370. <EntitySet Name="StaffingTables" EntityType="Self.StaffingTables" Schema="dbo" store:Type="Tables" />
  371. <EntitySet Name="Subdivisions" EntityType="Self.Subdivisions" Schema="dbo" store:Type="Tables" />
  372. <EntitySet Name="sysdiagrams" EntityType="Self.sysdiagrams" Schema="dbo" store:Type="Tables" />
  373. <EntitySet Name="Users" EntityType="Self.Users" Schema="dbo" store:Type="Tables" />
  374. <AssociationSet Name="FK_Childrens_Employees" Association="Self.FK_Childrens_Employees">
  375. <End Role="Employees" EntitySet="Employees" />
  376. <End Role="Childrens" EntitySet="Childrens" />
  377. </AssociationSet>
  378. <AssociationSet Name="FK_Employees_Dolzhnosts" Association="Self.FK_Employees_Dolzhnosts">
  379. <End Role="Dolzhnosts" EntitySet="Dolzhnosts" />
  380. <End Role="Employees" EntitySet="Employees" />
  381. </AssociationSet>
  382. <AssociationSet Name="FK_Employees_Educations" Association="Self.FK_Employees_Educations">
  383. <End Role="Educations" EntitySet="Educations" />
  384. <End Role="Employees" EntitySet="Employees" />
  385. </AssociationSet>
  386. <AssociationSet Name="FK_Employees_FamilyStatuses" Association="Self.FK_Employees_FamilyStatuses">
  387. <End Role="FamilyStatuses" EntitySet="FamilyStatuses" />
  388. <End Role="Employees" EntitySet="Employees" />
  389. </AssociationSet>
  390. <AssociationSet Name="FK_Employees_MilitaryDuties" Association="Self.FK_Employees_MilitaryDuties">
  391. <End Role="MilitaryDuties" EntitySet="MilitaryDuties" />
  392. <End Role="Employees" EntitySet="Employees" />
  393. </AssociationSet>
  394. <AssociationSet Name="FK_OrdersDismissal_Employees" Association="Self.FK_OrdersDismissal_Employees">
  395. <End Role="Employees" EntitySet="Employees" />
  396. <End Role="OrdersDismissal" EntitySet="OrdersDismissal" />
  397. </AssociationSet>
  398. <AssociationSet Name="FK_OrdersEmployment_Dolzhnosts" Association="Self.FK_OrdersEmployment_Dolzhnosts">
  399. <End Role="Dolzhnosts" EntitySet="Dolzhnosts" />
  400. <End Role="OrdersEmployment" EntitySet="OrdersEmployment" />
  401. </AssociationSet>
  402. <AssociationSet Name="FK_OrdersEmployment_Employees1" Association="Self.FK_OrdersEmployment_Employees1">
  403. <End Role="Employees" EntitySet="Employees" />
  404. <End Role="OrdersEmployment" EntitySet="OrdersEmployment" />
  405. </AssociationSet>
  406. <AssociationSet Name="FK_OrdersEmployment_StaffingTables" Association="Self.FK_OrdersEmployment_StaffingTables">
  407. <End Role="StaffingTables" EntitySet="StaffingTables" />
  408. <End Role="OrdersEmployment" EntitySet="OrdersEmployment" />
  409. </AssociationSet>
  410. <AssociationSet Name="FK_StaffingTables_Subdivisions" Association="Self.FK_StaffingTables_Subdivisions">
  411. <End Role="Subdivisions" EntitySet="Subdivisions" />
  412. <End Role="StaffingTables" EntitySet="StaffingTables" />
  413. </AssociationSet>
  414. <AssociationSet Name="FK_Users_Roles" Association="Self.FK_Users_Roles">
  415. <End Role="Roles" EntitySet="Roles" />
  416. <End Role="Users" EntitySet="Users" />
  417. </AssociationSet>
  418. </EntityContainer>
  419. </Schema>