Model1.edmx 39 KB

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