ModelDB.edmx 41 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <edmx:Edmx Version="3.0" xmlns:edmx="http://schemas.microsoft.com/ado/2009/11/edmx">
  3. <!-- EF Runtime content -->
  4. <edmx:Runtime>
  5. <!-- SSDL content -->
  6. <edmx:StorageModels>
  7. <Schema Namespace="Хранилище gr692_kovModel" 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">
  8. <EntityType Name="Client">
  9. <Key>
  10. <PropertyRef Name="Id" />
  11. </Key>
  12. <Property Name="Id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  13. <Property Name="LName" Type="nvarchar" MaxLength="50" Nullable="false" />
  14. <Property Name="FName" Type="nvarchar" MaxLength="50" Nullable="false" />
  15. <Property Name="MName" Type="nchar" MaxLength="10" />
  16. <Property Name="Passport" Type="image" />
  17. <Property Name="Id_PersStatus" Type="int" Nullable="false" />
  18. </EntityType>
  19. <EntityType Name="HelpQuestion">
  20. <Key>
  21. <PropertyRef Name="id" />
  22. </Key>
  23. <Property Name="id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  24. <Property Name="Name" Type="nvarchar" MaxLength="50" />
  25. </EntityType>
  26. <EntityType Name="Order">
  27. <Key>
  28. <PropertyRef Name="Id" />
  29. </Key>
  30. <Property Name="Id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  31. <Property Name="Id_Staff" Type="int" />
  32. <Property Name="Id_Client" Type="int" />
  33. <Property Name="Id_Room" Type="int" />
  34. <Property Name="Id_Pay" Type="int" />
  35. <Property Name="DateStart" Type="date" />
  36. <Property Name="DateEnd" Type="date" />
  37. <Property Name="Id_OrderStatus" Type="int" />
  38. </EntityType>
  39. <EntityType Name="OrderStatus">
  40. <Key>
  41. <PropertyRef Name="Id" />
  42. </Key>
  43. <Property Name="Id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  44. <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
  45. </EntityType>
  46. <EntityType Name="Pay">
  47. <Key>
  48. <PropertyRef Name="Id" />
  49. </Key>
  50. <Property Name="Id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  51. <Property Name="EndSum" Type="money" Nullable="false" />
  52. <Property Name="PayDate" Type="date" Nullable="false" />
  53. <Property Name="Id_PayType" Type="int" Nullable="false" />
  54. </EntityType>
  55. <EntityType Name="PayType">
  56. <Key>
  57. <PropertyRef Name="Id" />
  58. </Key>
  59. <Property Name="Id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  60. <Property Name="Name" Type="nvarchar" MaxLength="50" />
  61. </EntityType>
  62. <EntityType Name="PersStasus">
  63. <Key>
  64. <PropertyRef Name="Id" />
  65. </Key>
  66. <Property Name="Id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  67. <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
  68. </EntityType>
  69. <EntityType Name="Room">
  70. <Key>
  71. <PropertyRef Name="Id" />
  72. </Key>
  73. <Property Name="Id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  74. <Property Name="NumRoom" Type="int" Nullable="false" />
  75. <Property Name="CostPerDay" Type="money" />
  76. <Property Name="CountOfSeats" Type="int" />
  77. <Property Name="Id_RoomStatus" Type="int" />
  78. </EntityType>
  79. <EntityType Name="RoomStatus">
  80. <Key>
  81. <PropertyRef Name="Id" />
  82. </Key>
  83. <Property Name="Id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  84. <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
  85. </EntityType>
  86. <EntityType Name="Staff">
  87. <Key>
  88. <PropertyRef Name="Id" />
  89. </Key>
  90. <Property Name="Id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  91. <Property Name="LName" Type="nvarchar" MaxLength="50" Nullable="false" />
  92. <Property Name="FName" Type="nvarchar" MaxLength="50" Nullable="false" />
  93. <Property Name="MName" Type="nvarchar" MaxLength="50" />
  94. <Property Name="Id_StaffRole" Type="int" />
  95. <Property Name="PhotoContract" Type="image" />
  96. <Property Name="Login" Type="nvarchar" MaxLength="50" Nullable="false" />
  97. <Property Name="Password" Type="nvarchar(max)" Nullable="false" />
  98. <Property Name="Id_PersStatus" Type="int" Nullable="false" />
  99. <Property Name="Id_HelpQuestion" Type="int" />
  100. <Property Name="AnswerOnHelpQuestion" Type="nvarchar(max)" />
  101. </EntityType>
  102. <EntityType Name="StaffRole">
  103. <Key>
  104. <PropertyRef Name="Id" />
  105. </Key>
  106. <Property Name="Id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  107. <Property Name="Name" Type="nvarchar" MaxLength="50" />
  108. </EntityType>
  109. <EntityType Name="sysdiagrams">
  110. <Key>
  111. <PropertyRef Name="diagram_id" />
  112. </Key>
  113. <Property Name="name" Type="nvarchar" MaxLength="128" Nullable="false" />
  114. <Property Name="principal_id" Type="int" Nullable="false" />
  115. <Property Name="diagram_id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  116. <Property Name="version" Type="int" />
  117. <Property Name="definition" Type="varbinary(max)" />
  118. </EntityType>
  119. <Association Name="FK_Client_PersStasus">
  120. <End Role="PersStasus" Type="Self.PersStasus" Multiplicity="1" />
  121. <End Role="Client" Type="Self.Client" Multiplicity="*" />
  122. <ReferentialConstraint>
  123. <Principal Role="PersStasus">
  124. <PropertyRef Name="Id" />
  125. </Principal>
  126. <Dependent Role="Client">
  127. <PropertyRef Name="Id_PersStatus" />
  128. </Dependent>
  129. </ReferentialConstraint>
  130. </Association>
  131. <Association Name="FK_Order_Client">
  132. <End Role="Client" Type="Self.Client" Multiplicity="0..1" />
  133. <End Role="Order" Type="Self.Order" Multiplicity="*" />
  134. <ReferentialConstraint>
  135. <Principal Role="Client">
  136. <PropertyRef Name="Id" />
  137. </Principal>
  138. <Dependent Role="Order">
  139. <PropertyRef Name="Id_Client" />
  140. </Dependent>
  141. </ReferentialConstraint>
  142. </Association>
  143. <Association Name="FK_Order_OrderStatus">
  144. <End Role="OrderStatus" Type="Self.OrderStatus" Multiplicity="0..1" />
  145. <End Role="Order" Type="Self.Order" Multiplicity="*" />
  146. <ReferentialConstraint>
  147. <Principal Role="OrderStatus">
  148. <PropertyRef Name="Id" />
  149. </Principal>
  150. <Dependent Role="Order">
  151. <PropertyRef Name="Id_OrderStatus" />
  152. </Dependent>
  153. </ReferentialConstraint>
  154. </Association>
  155. <Association Name="FK_Order_Pay">
  156. <End Role="Pay" Type="Self.Pay" Multiplicity="0..1" />
  157. <End Role="Order" Type="Self.Order" Multiplicity="*" />
  158. <ReferentialConstraint>
  159. <Principal Role="Pay">
  160. <PropertyRef Name="Id" />
  161. </Principal>
  162. <Dependent Role="Order">
  163. <PropertyRef Name="Id_Pay" />
  164. </Dependent>
  165. </ReferentialConstraint>
  166. </Association>
  167. <Association Name="FK_Order_Room">
  168. <End Role="Room" Type="Self.Room" Multiplicity="0..1" />
  169. <End Role="Order" Type="Self.Order" Multiplicity="*" />
  170. <ReferentialConstraint>
  171. <Principal Role="Room">
  172. <PropertyRef Name="Id" />
  173. </Principal>
  174. <Dependent Role="Order">
  175. <PropertyRef Name="Id_Room" />
  176. </Dependent>
  177. </ReferentialConstraint>
  178. </Association>
  179. <Association Name="FK_Order_Staff">
  180. <End Role="Staff" Type="Self.Staff" Multiplicity="0..1" />
  181. <End Role="Order" Type="Self.Order" Multiplicity="*" />
  182. <ReferentialConstraint>
  183. <Principal Role="Staff">
  184. <PropertyRef Name="Id" />
  185. </Principal>
  186. <Dependent Role="Order">
  187. <PropertyRef Name="Id_Staff" />
  188. </Dependent>
  189. </ReferentialConstraint>
  190. </Association>
  191. <Association Name="FK_Pay_PayType">
  192. <End Role="PayType" Type="Self.PayType" Multiplicity="1" />
  193. <End Role="Pay" Type="Self.Pay" Multiplicity="*" />
  194. <ReferentialConstraint>
  195. <Principal Role="PayType">
  196. <PropertyRef Name="Id" />
  197. </Principal>
  198. <Dependent Role="Pay">
  199. <PropertyRef Name="Id_PayType" />
  200. </Dependent>
  201. </ReferentialConstraint>
  202. </Association>
  203. <Association Name="FK_Room_RoomStatus">
  204. <End Role="RoomStatus" Type="Self.RoomStatus" Multiplicity="0..1" />
  205. <End Role="Room" Type="Self.Room" Multiplicity="*" />
  206. <ReferentialConstraint>
  207. <Principal Role="RoomStatus">
  208. <PropertyRef Name="Id" />
  209. </Principal>
  210. <Dependent Role="Room">
  211. <PropertyRef Name="Id_RoomStatus" />
  212. </Dependent>
  213. </ReferentialConstraint>
  214. </Association>
  215. <Association Name="FK_Staff_HelpQuestion">
  216. <End Role="HelpQuestion" Type="Self.HelpQuestion" Multiplicity="0..1" />
  217. <End Role="Staff" Type="Self.Staff" Multiplicity="*" />
  218. <ReferentialConstraint>
  219. <Principal Role="HelpQuestion">
  220. <PropertyRef Name="id" />
  221. </Principal>
  222. <Dependent Role="Staff">
  223. <PropertyRef Name="Id_HelpQuestion" />
  224. </Dependent>
  225. </ReferentialConstraint>
  226. </Association>
  227. <Association Name="FK_Staff_PersStasus">
  228. <End Role="PersStasus" Type="Self.PersStasus" Multiplicity="1" />
  229. <End Role="Staff" Type="Self.Staff" Multiplicity="*" />
  230. <ReferentialConstraint>
  231. <Principal Role="PersStasus">
  232. <PropertyRef Name="Id" />
  233. </Principal>
  234. <Dependent Role="Staff">
  235. <PropertyRef Name="Id_PersStatus" />
  236. </Dependent>
  237. </ReferentialConstraint>
  238. </Association>
  239. <Association Name="FK_Staff_StaffRole">
  240. <End Role="StaffRole" Type="Self.StaffRole" Multiplicity="0..1" />
  241. <End Role="Staff" Type="Self.Staff" Multiplicity="*" />
  242. <ReferentialConstraint>
  243. <Principal Role="StaffRole">
  244. <PropertyRef Name="Id" />
  245. </Principal>
  246. <Dependent Role="Staff">
  247. <PropertyRef Name="Id_StaffRole" />
  248. </Dependent>
  249. </ReferentialConstraint>
  250. </Association>
  251. <EntityContainer Name="Хранилище gr692_kovModelContainer">
  252. <EntitySet Name="Client" EntityType="Self.Client" Schema="dbo" store:Type="Tables" />
  253. <EntitySet Name="HelpQuestion" EntityType="Self.HelpQuestion" Schema="dbo" store:Type="Tables" />
  254. <EntitySet Name="Order" EntityType="Self.Order" Schema="dbo" store:Type="Tables" />
  255. <EntitySet Name="OrderStatus" EntityType="Self.OrderStatus" Schema="dbo" store:Type="Tables" />
  256. <EntitySet Name="Pay" EntityType="Self.Pay" Schema="dbo" store:Type="Tables" />
  257. <EntitySet Name="PayType" EntityType="Self.PayType" Schema="dbo" store:Type="Tables" />
  258. <EntitySet Name="PersStasus" EntityType="Self.PersStasus" Schema="dbo" store:Type="Tables" />
  259. <EntitySet Name="Room" EntityType="Self.Room" Schema="dbo" store:Type="Tables" />
  260. <EntitySet Name="RoomStatus" EntityType="Self.RoomStatus" Schema="dbo" store:Type="Tables" />
  261. <EntitySet Name="Staff" EntityType="Self.Staff" Schema="dbo" store:Type="Tables" />
  262. <EntitySet Name="StaffRole" EntityType="Self.StaffRole" Schema="dbo" store:Type="Tables" />
  263. <EntitySet Name="sysdiagrams" EntityType="Self.sysdiagrams" Schema="dbo" store:Type="Tables" />
  264. <AssociationSet Name="FK_Client_PersStasus" Association="Self.FK_Client_PersStasus">
  265. <End Role="PersStasus" EntitySet="PersStasus" />
  266. <End Role="Client" EntitySet="Client" />
  267. </AssociationSet>
  268. <AssociationSet Name="FK_Order_Client" Association="Self.FK_Order_Client">
  269. <End Role="Client" EntitySet="Client" />
  270. <End Role="Order" EntitySet="Order" />
  271. </AssociationSet>
  272. <AssociationSet Name="FK_Order_OrderStatus" Association="Self.FK_Order_OrderStatus">
  273. <End Role="OrderStatus" EntitySet="OrderStatus" />
  274. <End Role="Order" EntitySet="Order" />
  275. </AssociationSet>
  276. <AssociationSet Name="FK_Order_Pay" Association="Self.FK_Order_Pay">
  277. <End Role="Pay" EntitySet="Pay" />
  278. <End Role="Order" EntitySet="Order" />
  279. </AssociationSet>
  280. <AssociationSet Name="FK_Order_Room" Association="Self.FK_Order_Room">
  281. <End Role="Room" EntitySet="Room" />
  282. <End Role="Order" EntitySet="Order" />
  283. </AssociationSet>
  284. <AssociationSet Name="FK_Order_Staff" Association="Self.FK_Order_Staff">
  285. <End Role="Staff" EntitySet="Staff" />
  286. <End Role="Order" EntitySet="Order" />
  287. </AssociationSet>
  288. <AssociationSet Name="FK_Pay_PayType" Association="Self.FK_Pay_PayType">
  289. <End Role="PayType" EntitySet="PayType" />
  290. <End Role="Pay" EntitySet="Pay" />
  291. </AssociationSet>
  292. <AssociationSet Name="FK_Room_RoomStatus" Association="Self.FK_Room_RoomStatus">
  293. <End Role="RoomStatus" EntitySet="RoomStatus" />
  294. <End Role="Room" EntitySet="Room" />
  295. </AssociationSet>
  296. <AssociationSet Name="FK_Staff_HelpQuestion" Association="Self.FK_Staff_HelpQuestion">
  297. <End Role="HelpQuestion" EntitySet="HelpQuestion" />
  298. <End Role="Staff" EntitySet="Staff" />
  299. </AssociationSet>
  300. <AssociationSet Name="FK_Staff_PersStasus" Association="Self.FK_Staff_PersStasus">
  301. <End Role="PersStasus" EntitySet="PersStasus" />
  302. <End Role="Staff" EntitySet="Staff" />
  303. </AssociationSet>
  304. <AssociationSet Name="FK_Staff_StaffRole" Association="Self.FK_Staff_StaffRole">
  305. <End Role="StaffRole" EntitySet="StaffRole" />
  306. <End Role="Staff" EntitySet="Staff" />
  307. </AssociationSet>
  308. </EntityContainer>
  309. </Schema></edmx:StorageModels>
  310. <!-- CSDL content -->
  311. <edmx:ConceptualModels>
  312. <Schema Namespace="gr692_kovModel" 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">
  313. <EntityType Name="Client">
  314. <Key>
  315. <PropertyRef Name="Id" />
  316. </Key>
  317. <Property Name="Id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  318. <Property Name="LName" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
  319. <Property Name="FName" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
  320. <Property Name="MName" Type="String" MaxLength="10" FixedLength="true" Unicode="true" />
  321. <Property Name="Passport" Type="Binary" MaxLength="Max" FixedLength="false" />
  322. <NavigationProperty Name="Order" Relationship="Self.FK_Order_Client" FromRole="Client" ToRole="Order" />
  323. <Property Name="Id_PersStatus" Type="Int32" Nullable="false" />
  324. <NavigationProperty Name="PersStasus" Relationship="gr692_kovModel.FK_Client_PersStasus" FromRole="Client" ToRole="PersStasus" />
  325. </EntityType>
  326. <EntityType Name="Order">
  327. <Key>
  328. <PropertyRef Name="Id" />
  329. </Key>
  330. <Property Name="Id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  331. <Property Name="Id_Staff" Type="Int32" />
  332. <Property Name="Id_Client" Type="Int32" />
  333. <Property Name="Id_Room" Type="Int32" />
  334. <Property Name="DateStart" Type="DateTime" Precision="0" />
  335. <Property Name="DateEnd" Type="DateTime" Precision="0" />
  336. <NavigationProperty Name="Client" Relationship="Self.FK_Order_Client" FromRole="Order" ToRole="Client" />
  337. <NavigationProperty Name="Room" Relationship="Self.FK_Order_Room" FromRole="Order" ToRole="Room" />
  338. <NavigationProperty Name="Staff" Relationship="Self.FK_Order_Staff" FromRole="Order" ToRole="Staff" />
  339. <Property Name="Id_Pay" Type="Int32" />
  340. <NavigationProperty Name="Pay" Relationship="gr692_kovModel.FK_Order_Pay" FromRole="Order" ToRole="Pay" />
  341. <Property Name="Id_OrderStatus" Type="Int32" />
  342. <NavigationProperty Name="OrderStatus" Relationship="gr692_kovModel.FK_Order_OrderStatus" FromRole="Order" ToRole="OrderStatus" />
  343. </EntityType>
  344. <EntityType Name="Room">
  345. <Key>
  346. <PropertyRef Name="Id" />
  347. </Key>
  348. <Property Name="Id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  349. <Property Name="NumRoom" Type="Int32" Nullable="false" />
  350. <Property Name="CostPerDay" Type="Decimal" Precision="19" Scale="4" />
  351. <Property Name="Id_RoomStatus" Type="Int32" />
  352. <NavigationProperty Name="Order" Relationship="Self.FK_Order_Room" FromRole="Room" ToRole="Order" />
  353. <NavigationProperty Name="RoomStatus" Relationship="Self.FK_Room_RoomStatus" FromRole="Room" ToRole="RoomStatus" />
  354. <Property Name="CountOfSeats" Type="Int32" />
  355. </EntityType>
  356. <EntityType Name="RoomStatus">
  357. <Key>
  358. <PropertyRef Name="Id" />
  359. </Key>
  360. <Property Name="Id" Type="Int32" Nullable="false" />
  361. <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
  362. <NavigationProperty Name="Room" Relationship="Self.FK_Room_RoomStatus" FromRole="RoomStatus" ToRole="Room" />
  363. </EntityType>
  364. <EntityType Name="Staff">
  365. <Key>
  366. <PropertyRef Name="Id" />
  367. </Key>
  368. <Property Name="Id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  369. <Property Name="LName" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
  370. <Property Name="FName" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
  371. <Property Name="MName" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  372. <Property Name="Id_StaffRole" Type="Int32" />
  373. <Property Name="PhotoContract" Type="Binary" MaxLength="Max" FixedLength="false" />
  374. <Property Name="Login" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
  375. <Property Name="Password" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" Nullable="false" />
  376. <NavigationProperty Name="Order" Relationship="Self.FK_Order_Staff" FromRole="Staff" ToRole="Order" />
  377. <NavigationProperty Name="StaffRole" Relationship="Self.FK_Staff_StaffRole" FromRole="Staff" ToRole="StaffRole" />
  378. <Property Name="Id_PersStatus" Type="Int32" Nullable="false" />
  379. <NavigationProperty Name="PersStasus" Relationship="gr692_kovModel.FK_Staff_PersStasus" FromRole="Staff" ToRole="PersStasus" />
  380. <Property Name="Id_HelpQuestion" Type="Int32" />
  381. <Property Name="AnswerOnHelpQuestion" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" />
  382. <NavigationProperty Name="HelpQuestion" Relationship="gr692_kovModel.FK_Staff_HelpQuestion" FromRole="Staff" ToRole="HelpQuestion" />
  383. </EntityType>
  384. <EntityType Name="StaffRole">
  385. <Key>
  386. <PropertyRef Name="Id" />
  387. </Key>
  388. <Property Name="Id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  389. <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  390. <NavigationProperty Name="Staff" Relationship="Self.FK_Staff_StaffRole" FromRole="StaffRole" ToRole="Staff" />
  391. </EntityType>
  392. <EntityType Name="sysdiagrams">
  393. <Key>
  394. <PropertyRef Name="diagram_id" />
  395. </Key>
  396. <Property Name="name" Type="String" MaxLength="128" FixedLength="false" Unicode="true" Nullable="false" />
  397. <Property Name="principal_id" Type="Int32" Nullable="false" />
  398. <Property Name="diagram_id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  399. <Property Name="version" Type="Int32" />
  400. <Property Name="definition" Type="Binary" MaxLength="Max" FixedLength="false" />
  401. </EntityType>
  402. <Association Name="FK_Order_Client">
  403. <End Role="Client" Type="Self.Client" Multiplicity="0..1" />
  404. <End Role="Order" Type="Self.Order" Multiplicity="*" />
  405. <ReferentialConstraint>
  406. <Principal Role="Client">
  407. <PropertyRef Name="Id" />
  408. </Principal>
  409. <Dependent Role="Order">
  410. <PropertyRef Name="Id_Client" />
  411. </Dependent>
  412. </ReferentialConstraint>
  413. </Association>
  414. <Association Name="FK_Order_Room">
  415. <End Role="Room" Type="Self.Room" Multiplicity="0..1" />
  416. <End Role="Order" Type="Self.Order" Multiplicity="*" />
  417. <ReferentialConstraint>
  418. <Principal Role="Room">
  419. <PropertyRef Name="Id" />
  420. </Principal>
  421. <Dependent Role="Order">
  422. <PropertyRef Name="Id_Room" />
  423. </Dependent>
  424. </ReferentialConstraint>
  425. </Association>
  426. <Association Name="FK_Order_Staff">
  427. <End Role="Staff" Type="Self.Staff" Multiplicity="0..1" />
  428. <End Role="Order" Type="Self.Order" Multiplicity="*" />
  429. <ReferentialConstraint>
  430. <Principal Role="Staff">
  431. <PropertyRef Name="Id" />
  432. </Principal>
  433. <Dependent Role="Order">
  434. <PropertyRef Name="Id_Staff" />
  435. </Dependent>
  436. </ReferentialConstraint>
  437. </Association>
  438. <Association Name="FK_Room_RoomStatus">
  439. <End Role="RoomStatus" Type="Self.RoomStatus" Multiplicity="0..1" />
  440. <End Role="Room" Type="Self.Room" Multiplicity="*" />
  441. <ReferentialConstraint>
  442. <Principal Role="RoomStatus">
  443. <PropertyRef Name="Id" />
  444. </Principal>
  445. <Dependent Role="Room">
  446. <PropertyRef Name="Id_RoomStatus" />
  447. </Dependent>
  448. </ReferentialConstraint>
  449. </Association>
  450. <Association Name="FK_Staff_StaffRole">
  451. <End Role="StaffRole" Type="Self.StaffRole" Multiplicity="0..1" />
  452. <End Role="Staff" Type="Self.Staff" Multiplicity="*" />
  453. <ReferentialConstraint>
  454. <Principal Role="StaffRole">
  455. <PropertyRef Name="Id" />
  456. </Principal>
  457. <Dependent Role="Staff">
  458. <PropertyRef Name="Id_StaffRole" />
  459. </Dependent>
  460. </ReferentialConstraint>
  461. </Association>
  462. <EntityContainer Name="gr692_kovEntities" annotation:LazyLoadingEnabled="true">
  463. <EntitySet Name="Client" EntityType="Self.Client" />
  464. <EntitySet Name="Order" EntityType="Self.Order" />
  465. <EntitySet Name="Room" EntityType="Self.Room" />
  466. <EntitySet Name="RoomStatus" EntityType="Self.RoomStatus" />
  467. <EntitySet Name="Staff" EntityType="Self.Staff" />
  468. <EntitySet Name="StaffRole" EntityType="Self.StaffRole" />
  469. <EntitySet Name="sysdiagrams" EntityType="Self.sysdiagrams" />
  470. <AssociationSet Name="FK_Order_Client" Association="Self.FK_Order_Client">
  471. <End Role="Client" EntitySet="Client" />
  472. <End Role="Order" EntitySet="Order" />
  473. </AssociationSet>
  474. <AssociationSet Name="FK_Order_Room" Association="Self.FK_Order_Room">
  475. <End Role="Room" EntitySet="Room" />
  476. <End Role="Order" EntitySet="Order" />
  477. </AssociationSet>
  478. <AssociationSet Name="FK_Order_Staff" Association="Self.FK_Order_Staff">
  479. <End Role="Staff" EntitySet="Staff" />
  480. <End Role="Order" EntitySet="Order" />
  481. </AssociationSet>
  482. <AssociationSet Name="FK_Room_RoomStatus" Association="Self.FK_Room_RoomStatus">
  483. <End Role="RoomStatus" EntitySet="RoomStatus" />
  484. <End Role="Room" EntitySet="Room" />
  485. </AssociationSet>
  486. <AssociationSet Name="FK_Staff_StaffRole" Association="Self.FK_Staff_StaffRole">
  487. <End Role="StaffRole" EntitySet="StaffRole" />
  488. <End Role="Staff" EntitySet="Staff" />
  489. </AssociationSet>
  490. <EntitySet Name="Pay" EntityType="gr692_kovModel.Pay" />
  491. <EntitySet Name="PayType" EntityType="gr692_kovModel.PayType" />
  492. <AssociationSet Name="FK_Order_Pay" Association="gr692_kovModel.FK_Order_Pay">
  493. <End Role="Pay" EntitySet="Pay" />
  494. <End Role="Order" EntitySet="Order" />
  495. </AssociationSet>
  496. <AssociationSet Name="FK_Pay_PayType" Association="gr692_kovModel.FK_Pay_PayType">
  497. <End Role="PayType" EntitySet="PayType" />
  498. <End Role="Pay" EntitySet="Pay" />
  499. </AssociationSet>
  500. <EntitySet Name="PersStasus" EntityType="gr692_kovModel.PersStasus" />
  501. <AssociationSet Name="FK_Client_PersStasus" Association="gr692_kovModel.FK_Client_PersStasus">
  502. <End Role="PersStasus" EntitySet="PersStasus" />
  503. <End Role="Client" EntitySet="Client" />
  504. </AssociationSet>
  505. <AssociationSet Name="FK_Staff_PersStasus" Association="gr692_kovModel.FK_Staff_PersStasus">
  506. <End Role="PersStasus" EntitySet="PersStasus" />
  507. <End Role="Staff" EntitySet="Staff" />
  508. </AssociationSet>
  509. <EntitySet Name="OrderStatus" EntityType="gr692_kovModel.OrderStatus" />
  510. <AssociationSet Name="FK_Order_OrderStatus" Association="gr692_kovModel.FK_Order_OrderStatus">
  511. <End Role="OrderStatus" EntitySet="OrderStatus" />
  512. <End Role="Order" EntitySet="Order" />
  513. </AssociationSet>
  514. <EntitySet Name="HelpQuestion" EntityType="gr692_kovModel.HelpQuestion" />
  515. <AssociationSet Name="FK_Staff_HelpQuestion" Association="gr692_kovModel.FK_Staff_HelpQuestion">
  516. <End Role="HelpQuestion" EntitySet="HelpQuestion" />
  517. <End Role="Staff" EntitySet="Staff" />
  518. </AssociationSet>
  519. </EntityContainer>
  520. <EntityType Name="Pay">
  521. <Key>
  522. <PropertyRef Name="Id" />
  523. </Key>
  524. <Property Name="Id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  525. <Property Name="EndSum" Type="Decimal" Nullable="false" Precision="19" Scale="4" />
  526. <Property Name="PayDate" Type="DateTime" Nullable="false" Precision="0" />
  527. <Property Name="Id_PayType" Type="Int32" Nullable="false" />
  528. <NavigationProperty Name="Order" Relationship="gr692_kovModel.FK_Order_Pay" FromRole="Pay" ToRole="Order" />
  529. <NavigationProperty Name="PayType" Relationship="gr692_kovModel.FK_Pay_PayType" FromRole="Pay" ToRole="PayType" />
  530. </EntityType>
  531. <EntityType Name="PayType">
  532. <Key>
  533. <PropertyRef Name="Id" />
  534. </Key>
  535. <Property Name="Id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  536. <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  537. <NavigationProperty Name="Pay" Relationship="gr692_kovModel.FK_Pay_PayType" FromRole="PayType" ToRole="Pay" />
  538. </EntityType>
  539. <Association Name="FK_Order_Pay">
  540. <End Type="gr692_kovModel.Pay" Role="Pay" Multiplicity="0..1" />
  541. <End Type="gr692_kovModel.Order" Role="Order" Multiplicity="*" />
  542. <ReferentialConstraint>
  543. <Principal Role="Pay">
  544. <PropertyRef Name="Id" />
  545. </Principal>
  546. <Dependent Role="Order">
  547. <PropertyRef Name="Id_Pay" />
  548. </Dependent>
  549. </ReferentialConstraint>
  550. </Association>
  551. <Association Name="FK_Pay_PayType">
  552. <End Type="gr692_kovModel.PayType" Role="PayType" Multiplicity="1" />
  553. <End Type="gr692_kovModel.Pay" Role="Pay" Multiplicity="*" />
  554. <ReferentialConstraint>
  555. <Principal Role="PayType">
  556. <PropertyRef Name="Id" />
  557. </Principal>
  558. <Dependent Role="Pay">
  559. <PropertyRef Name="Id_PayType" />
  560. </Dependent>
  561. </ReferentialConstraint>
  562. </Association>
  563. <EntityType Name="PersStasus">
  564. <Key>
  565. <PropertyRef Name="Id" />
  566. </Key>
  567. <Property Name="Id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  568. <Property Name="Name" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
  569. <NavigationProperty Name="Client" Relationship="gr692_kovModel.FK_Client_PersStasus" FromRole="PersStasus" ToRole="Client" />
  570. <NavigationProperty Name="Staff" Relationship="gr692_kovModel.FK_Staff_PersStasus" FromRole="PersStasus" ToRole="Staff" />
  571. </EntityType>
  572. <Association Name="FK_Client_PersStasus">
  573. <End Type="gr692_kovModel.PersStasus" Role="PersStasus" Multiplicity="1" />
  574. <End Type="gr692_kovModel.Client" Role="Client" Multiplicity="*" />
  575. <ReferentialConstraint>
  576. <Principal Role="PersStasus">
  577. <PropertyRef Name="Id" />
  578. </Principal>
  579. <Dependent Role="Client">
  580. <PropertyRef Name="Id_PersStatus" />
  581. </Dependent>
  582. </ReferentialConstraint>
  583. </Association>
  584. <Association Name="FK_Staff_PersStasus">
  585. <End Type="gr692_kovModel.PersStasus" Role="PersStasus" Multiplicity="1" />
  586. <End Type="gr692_kovModel.Staff" Role="Staff" Multiplicity="*" />
  587. <ReferentialConstraint>
  588. <Principal Role="PersStasus">
  589. <PropertyRef Name="Id" />
  590. </Principal>
  591. <Dependent Role="Staff">
  592. <PropertyRef Name="Id_PersStatus" />
  593. </Dependent>
  594. </ReferentialConstraint>
  595. </Association>
  596. <EntityType Name="OrderStatus">
  597. <Key>
  598. <PropertyRef Name="Id" />
  599. </Key>
  600. <Property Name="Id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  601. <Property Name="Name" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
  602. <NavigationProperty Name="Order" Relationship="gr692_kovModel.FK_Order_OrderStatus" FromRole="OrderStatus" ToRole="Order" />
  603. </EntityType>
  604. <Association Name="FK_Order_OrderStatus">
  605. <End Type="gr692_kovModel.OrderStatus" Role="OrderStatus" Multiplicity="0..1" />
  606. <End Type="gr692_kovModel.Order" Role="Order" Multiplicity="*" />
  607. <ReferentialConstraint>
  608. <Principal Role="OrderStatus">
  609. <PropertyRef Name="Id" />
  610. </Principal>
  611. <Dependent Role="Order">
  612. <PropertyRef Name="Id_OrderStatus" />
  613. </Dependent>
  614. </ReferentialConstraint>
  615. </Association>
  616. <EntityType Name="HelpQuestion">
  617. <Key>
  618. <PropertyRef Name="id" />
  619. </Key>
  620. <Property Name="id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  621. <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  622. <NavigationProperty Name="Staff" Relationship="gr692_kovModel.FK_Staff_HelpQuestion" FromRole="HelpQuestion" ToRole="Staff" />
  623. </EntityType>
  624. <Association Name="FK_Staff_HelpQuestion">
  625. <End Type="gr692_kovModel.HelpQuestion" Role="HelpQuestion" Multiplicity="0..1" />
  626. <End Type="gr692_kovModel.Staff" Role="Staff" Multiplicity="*" />
  627. <ReferentialConstraint>
  628. <Principal Role="HelpQuestion">
  629. <PropertyRef Name="id" />
  630. </Principal>
  631. <Dependent Role="Staff">
  632. <PropertyRef Name="Id_HelpQuestion" />
  633. </Dependent>
  634. </ReferentialConstraint>
  635. </Association>
  636. </Schema>
  637. </edmx:ConceptualModels>
  638. <!-- C-S mapping content -->
  639. <edmx:Mappings>
  640. <Mapping Space="C-S" xmlns="http://schemas.microsoft.com/ado/2009/11/mapping/cs">
  641. <EntityContainerMapping StorageEntityContainer="Хранилище gr692_kovModelContainer" CdmEntityContainer="gr692_kovEntities">
  642. <EntitySetMapping Name="Client">
  643. <EntityTypeMapping TypeName="gr692_kovModel.Client">
  644. <MappingFragment StoreEntitySet="Client">
  645. <ScalarProperty Name="Id_PersStatus" ColumnName="Id_PersStatus" />
  646. <ScalarProperty Name="Id" ColumnName="Id" />
  647. <ScalarProperty Name="LName" ColumnName="LName" />
  648. <ScalarProperty Name="FName" ColumnName="FName" />
  649. <ScalarProperty Name="MName" ColumnName="MName" />
  650. <ScalarProperty Name="Passport" ColumnName="Passport" />
  651. </MappingFragment>
  652. </EntityTypeMapping>
  653. </EntitySetMapping>
  654. <EntitySetMapping Name="Order">
  655. <EntityTypeMapping TypeName="gr692_kovModel.Order">
  656. <MappingFragment StoreEntitySet="Order">
  657. <ScalarProperty Name="Id_OrderStatus" ColumnName="Id_OrderStatus" />
  658. <ScalarProperty Name="Id_Pay" ColumnName="Id_Pay" />
  659. <ScalarProperty Name="Id" ColumnName="Id" />
  660. <ScalarProperty Name="Id_Staff" ColumnName="Id_Staff" />
  661. <ScalarProperty Name="Id_Client" ColumnName="Id_Client" />
  662. <ScalarProperty Name="Id_Room" ColumnName="Id_Room" />
  663. <ScalarProperty Name="DateStart" ColumnName="DateStart" />
  664. <ScalarProperty Name="DateEnd" ColumnName="DateEnd" />
  665. </MappingFragment>
  666. </EntityTypeMapping>
  667. </EntitySetMapping>
  668. <EntitySetMapping Name="Room">
  669. <EntityTypeMapping TypeName="gr692_kovModel.Room">
  670. <MappingFragment StoreEntitySet="Room">
  671. <ScalarProperty Name="CountOfSeats" ColumnName="CountOfSeats" />
  672. <ScalarProperty Name="Id" ColumnName="Id" />
  673. <ScalarProperty Name="NumRoom" ColumnName="NumRoom" />
  674. <ScalarProperty Name="CostPerDay" ColumnName="CostPerDay" />
  675. <ScalarProperty Name="Id_RoomStatus" ColumnName="Id_RoomStatus" />
  676. </MappingFragment>
  677. </EntityTypeMapping>
  678. </EntitySetMapping>
  679. <EntitySetMapping Name="RoomStatus">
  680. <EntityTypeMapping TypeName="gr692_kovModel.RoomStatus">
  681. <MappingFragment StoreEntitySet="RoomStatus">
  682. <ScalarProperty Name="Id" ColumnName="Id" />
  683. <ScalarProperty Name="Name" ColumnName="Name" />
  684. </MappingFragment>
  685. </EntityTypeMapping>
  686. </EntitySetMapping>
  687. <EntitySetMapping Name="Staff">
  688. <EntityTypeMapping TypeName="gr692_kovModel.Staff">
  689. <MappingFragment StoreEntitySet="Staff">
  690. <ScalarProperty Name="AnswerOnHelpQuestion" ColumnName="AnswerOnHelpQuestion" />
  691. <ScalarProperty Name="Id_HelpQuestion" ColumnName="Id_HelpQuestion" />
  692. <ScalarProperty Name="Id_PersStatus" ColumnName="Id_PersStatus" />
  693. <ScalarProperty Name="Id" ColumnName="Id" />
  694. <ScalarProperty Name="LName" ColumnName="LName" />
  695. <ScalarProperty Name="FName" ColumnName="FName" />
  696. <ScalarProperty Name="MName" ColumnName="MName" />
  697. <ScalarProperty Name="Id_StaffRole" ColumnName="Id_StaffRole" />
  698. <ScalarProperty Name="PhotoContract" ColumnName="PhotoContract" />
  699. <ScalarProperty Name="Login" ColumnName="Login" />
  700. <ScalarProperty Name="Password" ColumnName="Password" />
  701. </MappingFragment>
  702. </EntityTypeMapping>
  703. </EntitySetMapping>
  704. <EntitySetMapping Name="StaffRole">
  705. <EntityTypeMapping TypeName="gr692_kovModel.StaffRole">
  706. <MappingFragment StoreEntitySet="StaffRole">
  707. <ScalarProperty Name="Id" ColumnName="Id" />
  708. <ScalarProperty Name="Name" ColumnName="Name" />
  709. </MappingFragment>
  710. </EntityTypeMapping>
  711. </EntitySetMapping>
  712. <EntitySetMapping Name="sysdiagrams">
  713. <EntityTypeMapping TypeName="gr692_kovModel.sysdiagrams">
  714. <MappingFragment StoreEntitySet="sysdiagrams">
  715. <ScalarProperty Name="name" ColumnName="name" />
  716. <ScalarProperty Name="principal_id" ColumnName="principal_id" />
  717. <ScalarProperty Name="diagram_id" ColumnName="diagram_id" />
  718. <ScalarProperty Name="version" ColumnName="version" />
  719. <ScalarProperty Name="definition" ColumnName="definition" />
  720. </MappingFragment>
  721. </EntityTypeMapping>
  722. </EntitySetMapping>
  723. <EntitySetMapping Name="Pay">
  724. <EntityTypeMapping TypeName="gr692_kovModel.Pay">
  725. <MappingFragment StoreEntitySet="Pay">
  726. <ScalarProperty Name="Id_PayType" ColumnName="Id_PayType" />
  727. <ScalarProperty Name="PayDate" ColumnName="PayDate" />
  728. <ScalarProperty Name="EndSum" ColumnName="EndSum" />
  729. <ScalarProperty Name="Id" ColumnName="Id" />
  730. </MappingFragment>
  731. </EntityTypeMapping>
  732. </EntitySetMapping>
  733. <EntitySetMapping Name="PayType">
  734. <EntityTypeMapping TypeName="gr692_kovModel.PayType">
  735. <MappingFragment StoreEntitySet="PayType">
  736. <ScalarProperty Name="Name" ColumnName="Name" />
  737. <ScalarProperty Name="Id" ColumnName="Id" />
  738. </MappingFragment>
  739. </EntityTypeMapping>
  740. </EntitySetMapping>
  741. <EntitySetMapping Name="PersStasus">
  742. <EntityTypeMapping TypeName="gr692_kovModel.PersStasus">
  743. <MappingFragment StoreEntitySet="PersStasus">
  744. <ScalarProperty Name="Name" ColumnName="Name" />
  745. <ScalarProperty Name="Id" ColumnName="Id" />
  746. </MappingFragment>
  747. </EntityTypeMapping>
  748. </EntitySetMapping>
  749. <EntitySetMapping Name="OrderStatus">
  750. <EntityTypeMapping TypeName="gr692_kovModel.OrderStatus">
  751. <MappingFragment StoreEntitySet="OrderStatus">
  752. <ScalarProperty Name="Name" ColumnName="Name" />
  753. <ScalarProperty Name="Id" ColumnName="Id" />
  754. </MappingFragment>
  755. </EntityTypeMapping>
  756. </EntitySetMapping>
  757. <EntitySetMapping Name="HelpQuestion">
  758. <EntityTypeMapping TypeName="gr692_kovModel.HelpQuestion">
  759. <MappingFragment StoreEntitySet="HelpQuestion">
  760. <ScalarProperty Name="Name" ColumnName="Name" />
  761. <ScalarProperty Name="id" ColumnName="id" />
  762. </MappingFragment>
  763. </EntityTypeMapping>
  764. </EntitySetMapping>
  765. </EntityContainerMapping>
  766. </Mapping>
  767. </edmx:Mappings>
  768. </edmx:Runtime>
  769. <!-- EF Designer content (DO NOT EDIT MANUALLY BELOW HERE) -->
  770. <Designer xmlns="http://schemas.microsoft.com/ado/2009/11/edmx">
  771. <Connection>
  772. <DesignerInfoPropertySet>
  773. <DesignerProperty Name="MetadataArtifactProcessing" Value="EmbedInOutputAssembly" />
  774. </DesignerInfoPropertySet>
  775. </Connection>
  776. <Options>
  777. <DesignerInfoPropertySet>
  778. <DesignerProperty Name="ValidateOnBuild" Value="true" />
  779. <DesignerProperty Name="EnablePluralization" Value="false" />
  780. <DesignerProperty Name="IncludeForeignKeysInModel" Value="true" />
  781. <DesignerProperty Name="UseLegacyProvider" Value="false" />
  782. <DesignerProperty Name="CodeGenerationStrategy" Value="Нет" />
  783. </DesignerInfoPropertySet>
  784. </Options>
  785. <!-- Diagram content (shape and connector positions) -->
  786. <Diagrams></Diagrams>
  787. </Designer>
  788. </edmx:Edmx>