Model1.edmx 39 KB

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