DataBase.edmx 38 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669
  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="Хранилище TheBestV2Model" 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="Authorization_History">
  9. <Key>
  10. <PropertyRef Name="ID_Auth" />
  11. </Key>
  12. <Property Name="ID_Auth" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  13. <Property Name="ID_User" Type="int" Nullable="false" />
  14. <Property Name="Time_Auth" Type="datetime" Nullable="false" />
  15. </EntityType>
  16. <EntityType Name="Date_task">
  17. <Key>
  18. <PropertyRef Name="ID_task" />
  19. </Key>
  20. <Property Name="ID_task" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  21. <Property Name="Name_task" Type="varchar" MaxLength="255" />
  22. <Property Name="Description_task" Type="varchar" MaxLength="255" />
  23. <Property Name="Date_start_job" Type="date" />
  24. <Property Name="Date_finish_job" Type="date" />
  25. <Property Name="ID_status" Type="int" />
  26. </EntityType>
  27. <EntityType Name="Date_Users">
  28. <Key>
  29. <PropertyRef Name="Login" />
  30. </Key>
  31. <Property Name="Login" Type="varchar" MaxLength="255" Nullable="false" />
  32. <Property Name="Password" Type="varchar" MaxLength="255" />
  33. <Property Name="ID_user" Type="int" />
  34. <Property Name="ID_role" Type="int" />
  35. </EntityType>
  36. <EntityType Name="Role">
  37. <Key>
  38. <PropertyRef Name="ID_role" />
  39. </Key>
  40. <Property Name="ID_role" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  41. <Property Name="Name_role" Type="varchar" MaxLength="255" />
  42. </EntityType>
  43. <EntityType Name="Status">
  44. <Key>
  45. <PropertyRef Name="ID_status" />
  46. </Key>
  47. <Property Name="ID_status" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  48. <Property Name="Status" Type="varchar" MaxLength="255" />
  49. </EntityType>
  50. <EntityType Name="sysdiagrams">
  51. <Key>
  52. <PropertyRef Name="diagram_id" />
  53. </Key>
  54. <Property Name="name" Type="nvarchar" MaxLength="128" Nullable="false" />
  55. <Property Name="principal_id" Type="int" Nullable="false" />
  56. <Property Name="diagram_id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  57. <Property Name="version" Type="int" />
  58. <Property Name="definition" Type="varbinary(max)" />
  59. </EntityType>
  60. <EntityType Name="Task">
  61. <Key>
  62. <PropertyRef Name="ID_Task_For_User" />
  63. </Key>
  64. <Property Name="ID_Task_For_User" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  65. <Property Name="ID_task" Type="int" />
  66. <Property Name="ID_user" Type="int" />
  67. </EntityType>
  68. <EntityType Name="Users">
  69. <Key>
  70. <PropertyRef Name="ID_user" />
  71. </Key>
  72. <Property Name="ID_user" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  73. <Property Name="Surname" Type="varchar" MaxLength="255" />
  74. <Property Name="Name" Type="varchar" MaxLength="255" />
  75. <Property Name="Patronymic" Type="varchar" MaxLength="255" />
  76. <Property Name="Phone" Type="varchar" MaxLength="255" />
  77. <Property Name="Email" Type="varchar" MaxLength="255" />
  78. </EntityType>
  79. <!--Ошибки, обнаруженные при создании:
  80. предупреждение 6002: В таблице или представлении "TheBestV2.dbo.Active_tasks" не определен первичный ключ. Ключ был выведен, а определение таблицы или представления было создано в режиме только для чтения.-->
  81. <EntityType Name="Active_tasks">
  82. <Key>
  83. <PropertyRef Name="ID_task" />
  84. </Key>
  85. <Property Name="ID_task" Type="int" Nullable="false" />
  86. <Property Name="Name_tasks" Type="varchar" MaxLength="255" />
  87. <Property Name="Description_task" Type="varchar" MaxLength="255" />
  88. <Property Name="Date_start_job" Type="date" />
  89. <Property Name="Date_finish_job" Type="date" />
  90. </EntityType>
  91. <!--Ошибки, обнаруженные при создании:
  92. предупреждение 6002: В таблице или представлении "TheBestV2.dbo.Complete_tasks" не определен первичный ключ. Ключ был выведен, а определение таблицы или представления было создано в режиме только для чтения.-->
  93. <EntityType Name="Complete_tasks">
  94. <Key>
  95. <PropertyRef Name="ID_task" />
  96. </Key>
  97. <Property Name="ID_task" Type="int" Nullable="false" />
  98. <Property Name="Name_tasks" Type="varchar" MaxLength="255" />
  99. <Property Name="Description_task" Type="varchar" MaxLength="255" />
  100. <Property Name="Date_start_job" Type="date" />
  101. <Property Name="Date_finish_job" Type="date" />
  102. </EntityType>
  103. <Association Name="FK__Authoriza__ID_Us__47DBAE45">
  104. <End Role="Users" Type="Self.Users" Multiplicity="1" />
  105. <End Role="Authorization_History" Type="Self.Authorization_History" Multiplicity="*" />
  106. <ReferentialConstraint>
  107. <Principal Role="Users">
  108. <PropertyRef Name="ID_user" />
  109. </Principal>
  110. <Dependent Role="Authorization_History">
  111. <PropertyRef Name="ID_User" />
  112. </Dependent>
  113. </ReferentialConstraint>
  114. </Association>
  115. <Association Name="FK__Date_task__ID_st__412EB0B6">
  116. <End Role="Status" Type="Self.Status" Multiplicity="0..1" />
  117. <End Role="Date_task" Type="Self.Date_task" Multiplicity="*" />
  118. <ReferentialConstraint>
  119. <Principal Role="Status">
  120. <PropertyRef Name="ID_status" />
  121. </Principal>
  122. <Dependent Role="Date_task">
  123. <PropertyRef Name="ID_status" />
  124. </Dependent>
  125. </ReferentialConstraint>
  126. </Association>
  127. <Association Name="FK__Date_User__ID_ro__3C69FB99">
  128. <End Role="Role" Type="Self.Role" Multiplicity="0..1" />
  129. <End Role="Date_Users" Type="Self.Date_Users" Multiplicity="*" />
  130. <ReferentialConstraint>
  131. <Principal Role="Role">
  132. <PropertyRef Name="ID_role" />
  133. </Principal>
  134. <Dependent Role="Date_Users">
  135. <PropertyRef Name="ID_role" />
  136. </Dependent>
  137. </ReferentialConstraint>
  138. </Association>
  139. <Association Name="FK__Date_User__ID_us__3B75D760">
  140. <End Role="Users" Type="Self.Users" Multiplicity="0..1" />
  141. <End Role="Date_Users" Type="Self.Date_Users" Multiplicity="*" />
  142. <ReferentialConstraint>
  143. <Principal Role="Users">
  144. <PropertyRef Name="ID_user" />
  145. </Principal>
  146. <Dependent Role="Date_Users">
  147. <PropertyRef Name="ID_user" />
  148. </Dependent>
  149. </ReferentialConstraint>
  150. </Association>
  151. <Association Name="FK__Task__ID_task__440B1D61">
  152. <End Role="Date_task" Type="Self.Date_task" Multiplicity="0..1" />
  153. <End Role="Task" Type="Self.Task" Multiplicity="*" />
  154. <ReferentialConstraint>
  155. <Principal Role="Date_task">
  156. <PropertyRef Name="ID_task" />
  157. </Principal>
  158. <Dependent Role="Task">
  159. <PropertyRef Name="ID_task" />
  160. </Dependent>
  161. </ReferentialConstraint>
  162. </Association>
  163. <Association Name="FK__Task__ID_user__44FF419A">
  164. <End Role="Users" Type="Self.Users" Multiplicity="0..1" />
  165. <End Role="Task" Type="Self.Task" Multiplicity="*" />
  166. <ReferentialConstraint>
  167. <Principal Role="Users">
  168. <PropertyRef Name="ID_user" />
  169. </Principal>
  170. <Dependent Role="Task">
  171. <PropertyRef Name="ID_user" />
  172. </Dependent>
  173. </ReferentialConstraint>
  174. </Association>
  175. <Function Name="fn_diagramobjects" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="true" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo" ReturnType="int" />
  176. <Function Name="sp_alterdiagram" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo">
  177. <Parameter Name="diagramname" Type="nvarchar" Mode="In" />
  178. <Parameter Name="owner_id" Type="int" Mode="In" />
  179. <Parameter Name="version" Type="int" Mode="In" />
  180. <Parameter Name="definition" Type="varbinary(max)" Mode="In" />
  181. </Function>
  182. <Function Name="sp_creatediagram" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo">
  183. <Parameter Name="diagramname" Type="nvarchar" Mode="In" />
  184. <Parameter Name="owner_id" Type="int" Mode="In" />
  185. <Parameter Name="version" Type="int" Mode="In" />
  186. <Parameter Name="definition" Type="varbinary(max)" Mode="In" />
  187. </Function>
  188. <Function Name="sp_dropdiagram" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo">
  189. <Parameter Name="diagramname" Type="nvarchar" Mode="In" />
  190. <Parameter Name="owner_id" Type="int" Mode="In" />
  191. </Function>
  192. <Function Name="sp_helpdiagramdefinition" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo">
  193. <Parameter Name="diagramname" Type="nvarchar" Mode="In" />
  194. <Parameter Name="owner_id" Type="int" Mode="In" />
  195. </Function>
  196. <Function Name="sp_helpdiagrams" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo">
  197. <Parameter Name="diagramname" Type="nvarchar" Mode="In" />
  198. <Parameter Name="owner_id" Type="int" Mode="In" />
  199. </Function>
  200. <Function Name="sp_renamediagram" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo">
  201. <Parameter Name="diagramname" Type="nvarchar" Mode="In" />
  202. <Parameter Name="owner_id" Type="int" Mode="In" />
  203. <Parameter Name="new_diagramname" Type="nvarchar" Mode="In" />
  204. </Function>
  205. <Function Name="sp_upgraddiagrams" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo" />
  206. <EntityContainer Name="Хранилище TheBestV2ModelContainer">
  207. <EntitySet Name="Authorization_History" EntityType="Self.Authorization_History" Schema="dbo" store:Type="Tables" />
  208. <EntitySet Name="Date_task" EntityType="Self.Date_task" Schema="dbo" store:Type="Tables" />
  209. <EntitySet Name="Date_Users" EntityType="Self.Date_Users" Schema="dbo" store:Type="Tables" />
  210. <EntitySet Name="Role" EntityType="Self.Role" Schema="dbo" store:Type="Tables" />
  211. <EntitySet Name="Status" EntityType="Self.Status" Schema="dbo" store:Type="Tables" />
  212. <EntitySet Name="sysdiagrams" EntityType="Self.sysdiagrams" Schema="dbo" store:Type="Tables" />
  213. <EntitySet Name="Task" EntityType="Self.Task" Schema="dbo" store:Type="Tables" />
  214. <EntitySet Name="Users" EntityType="Self.Users" Schema="dbo" store:Type="Tables" />
  215. <EntitySet Name="Active_tasks" EntityType="Self.Active_tasks" store:Type="Views" store:Schema="dbo">
  216. <DefiningQuery>SELECT
  217. [Active_tasks].[ID_task] AS [ID_task],
  218. [Active_tasks].[Name_tasks] AS [Name_tasks],
  219. [Active_tasks].[Description_task] AS [Description_task],
  220. [Active_tasks].[Date_start_job] AS [Date_start_job],
  221. [Active_tasks].[Date_finish_job] AS [Date_finish_job]
  222. FROM [dbo].[Active_tasks] AS [Active_tasks]</DefiningQuery>
  223. </EntitySet>
  224. <EntitySet Name="Complete_tasks" EntityType="Self.Complete_tasks" store:Type="Views" store:Schema="dbo">
  225. <DefiningQuery>SELECT
  226. [Complete_tasks].[ID_task] AS [ID_task],
  227. [Complete_tasks].[Name_tasks] AS [Name_tasks],
  228. [Complete_tasks].[Description_task] AS [Description_task],
  229. [Complete_tasks].[Date_start_job] AS [Date_start_job],
  230. [Complete_tasks].[Date_finish_job] AS [Date_finish_job]
  231. FROM [dbo].[Complete_tasks] AS [Complete_tasks]</DefiningQuery>
  232. </EntitySet>
  233. <AssociationSet Name="FK__Authoriza__ID_Us__47DBAE45" Association="Self.FK__Authoriza__ID_Us__47DBAE45">
  234. <End Role="Users" EntitySet="Users" />
  235. <End Role="Authorization_History" EntitySet="Authorization_History" />
  236. </AssociationSet>
  237. <AssociationSet Name="FK__Date_task__ID_st__412EB0B6" Association="Self.FK__Date_task__ID_st__412EB0B6">
  238. <End Role="Status" EntitySet="Status" />
  239. <End Role="Date_task" EntitySet="Date_task" />
  240. </AssociationSet>
  241. <AssociationSet Name="FK__Date_User__ID_ro__3C69FB99" Association="Self.FK__Date_User__ID_ro__3C69FB99">
  242. <End Role="Role" EntitySet="Role" />
  243. <End Role="Date_Users" EntitySet="Date_Users" />
  244. </AssociationSet>
  245. <AssociationSet Name="FK__Date_User__ID_us__3B75D760" Association="Self.FK__Date_User__ID_us__3B75D760">
  246. <End Role="Users" EntitySet="Users" />
  247. <End Role="Date_Users" EntitySet="Date_Users" />
  248. </AssociationSet>
  249. <AssociationSet Name="FK__Task__ID_task__440B1D61" Association="Self.FK__Task__ID_task__440B1D61">
  250. <End Role="Date_task" EntitySet="Date_task" />
  251. <End Role="Task" EntitySet="Task" />
  252. </AssociationSet>
  253. <AssociationSet Name="FK__Task__ID_user__44FF419A" Association="Self.FK__Task__ID_user__44FF419A">
  254. <End Role="Users" EntitySet="Users" />
  255. <End Role="Task" EntitySet="Task" />
  256. </AssociationSet>
  257. </EntityContainer>
  258. </Schema>
  259. </edmx:StorageModels>
  260. <!-- CSDL content -->
  261. <edmx:ConceptualModels>
  262. <Schema Namespace="TheBestV2Model" 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">
  263. <EntityType Name="Authorization_History">
  264. <Key>
  265. <PropertyRef Name="ID_Auth" />
  266. </Key>
  267. <Property Name="ID_Auth" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  268. <Property Name="ID_User" Type="Int32" Nullable="false" />
  269. <Property Name="Time_Auth" Type="DateTime" Nullable="false" Precision="3" />
  270. <NavigationProperty Name="Users" Relationship="Self.FK__Authoriza__ID_Us__47DBAE45" FromRole="Authorization_History" ToRole="Users" />
  271. </EntityType>
  272. <EntityType Name="Date_task">
  273. <Key>
  274. <PropertyRef Name="ID_task" />
  275. </Key>
  276. <Property Name="ID_task" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  277. <Property Name="Name_task" Type="String" MaxLength="255" FixedLength="false" Unicode="false" />
  278. <Property Name="Description_task" Type="String" MaxLength="255" FixedLength="false" Unicode="false" />
  279. <Property Name="Date_start_job" Type="DateTime" Precision="0" />
  280. <Property Name="Date_finish_job" Type="DateTime" Precision="0" />
  281. <Property Name="ID_status" Type="Int32" />
  282. <NavigationProperty Name="Status" Relationship="Self.FK__Date_task__ID_st__412EB0B6" FromRole="Date_task" ToRole="Status" />
  283. <NavigationProperty Name="Task" Relationship="Self.FK__Task__ID_task__440B1D61" FromRole="Date_task" ToRole="Task" />
  284. </EntityType>
  285. <EntityType Name="Date_Users">
  286. <Key>
  287. <PropertyRef Name="Login" />
  288. </Key>
  289. <Property Name="Login" Type="String" MaxLength="255" FixedLength="false" Unicode="false" Nullable="false" />
  290. <Property Name="Password" Type="String" MaxLength="255" FixedLength="false" Unicode="false" />
  291. <Property Name="ID_user" Type="Int32" />
  292. <Property Name="ID_role" Type="Int32" />
  293. <NavigationProperty Name="Role" Relationship="Self.FK__Date_User__ID_ro__3C69FB99" FromRole="Date_Users" ToRole="Role" />
  294. <NavigationProperty Name="Users" Relationship="Self.FK__Date_User__ID_us__3B75D760" FromRole="Date_Users" ToRole="Users" />
  295. </EntityType>
  296. <EntityType Name="Role">
  297. <Key>
  298. <PropertyRef Name="ID_role" />
  299. </Key>
  300. <Property Name="ID_role" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  301. <Property Name="Name_role" Type="String" MaxLength="255" FixedLength="false" Unicode="false" />
  302. <NavigationProperty Name="Date_Users" Relationship="Self.FK__Date_User__ID_ro__3C69FB99" FromRole="Role" ToRole="Date_Users" />
  303. </EntityType>
  304. <EntityType Name="Status">
  305. <Key>
  306. <PropertyRef Name="ID_status" />
  307. </Key>
  308. <Property Name="ID_status" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  309. <Property Name="Status1" Type="String" MaxLength="255" FixedLength="false" Unicode="false" />
  310. <NavigationProperty Name="Date_task" Relationship="Self.FK__Date_task__ID_st__412EB0B6" FromRole="Status" ToRole="Date_task" />
  311. </EntityType>
  312. <EntityType Name="sysdiagrams">
  313. <Key>
  314. <PropertyRef Name="diagram_id" />
  315. </Key>
  316. <Property Name="name" Type="String" MaxLength="128" FixedLength="false" Unicode="true" Nullable="false" />
  317. <Property Name="principal_id" Type="Int32" Nullable="false" />
  318. <Property Name="diagram_id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  319. <Property Name="version" Type="Int32" />
  320. <Property Name="definition" Type="Binary" MaxLength="Max" FixedLength="false" />
  321. </EntityType>
  322. <EntityType Name="Task">
  323. <Key>
  324. <PropertyRef Name="ID_Task_For_User" />
  325. </Key>
  326. <Property Name="ID_Task_For_User" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  327. <Property Name="ID_task" Type="Int32" />
  328. <Property Name="ID_user" Type="Int32" />
  329. <NavigationProperty Name="Date_task" Relationship="Self.FK__Task__ID_task__440B1D61" FromRole="Task" ToRole="Date_task" />
  330. <NavigationProperty Name="Users" Relationship="Self.FK__Task__ID_user__44FF419A" FromRole="Task" ToRole="Users" />
  331. </EntityType>
  332. <EntityType Name="Users">
  333. <Key>
  334. <PropertyRef Name="ID_user" />
  335. </Key>
  336. <Property Name="ID_user" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  337. <Property Name="Surname" Type="String" MaxLength="255" FixedLength="false" Unicode="false" />
  338. <Property Name="Name" Type="String" MaxLength="255" FixedLength="false" Unicode="false" />
  339. <Property Name="Patronymic" Type="String" MaxLength="255" FixedLength="false" Unicode="false" />
  340. <Property Name="Phone" Type="String" MaxLength="255" FixedLength="false" Unicode="false" />
  341. <Property Name="Email" Type="String" MaxLength="255" FixedLength="false" Unicode="false" />
  342. <NavigationProperty Name="Authorization_History" Relationship="Self.FK__Authoriza__ID_Us__47DBAE45" FromRole="Users" ToRole="Authorization_History" />
  343. <NavigationProperty Name="Date_Users" Relationship="Self.FK__Date_User__ID_us__3B75D760" FromRole="Users" ToRole="Date_Users" />
  344. <NavigationProperty Name="Task" Relationship="Self.FK__Task__ID_user__44FF419A" FromRole="Users" ToRole="Task" />
  345. </EntityType>
  346. <EntityType Name="Active_tasks">
  347. <Key>
  348. <PropertyRef Name="ID_task" />
  349. </Key>
  350. <Property Name="ID_task" Type="Int32" Nullable="false" />
  351. <Property Name="Name_tasks" Type="String" MaxLength="255" FixedLength="false" Unicode="false" />
  352. <Property Name="Description_task" Type="String" MaxLength="255" FixedLength="false" Unicode="false" />
  353. <Property Name="Date_start_job" Type="DateTime" Precision="0" />
  354. <Property Name="Date_finish_job" Type="DateTime" Precision="0" />
  355. </EntityType>
  356. <EntityType Name="Complete_tasks">
  357. <Key>
  358. <PropertyRef Name="ID_task" />
  359. </Key>
  360. <Property Name="ID_task" Type="Int32" Nullable="false" />
  361. <Property Name="Name_tasks" Type="String" MaxLength="255" FixedLength="false" Unicode="false" />
  362. <Property Name="Description_task" Type="String" MaxLength="255" FixedLength="false" Unicode="false" />
  363. <Property Name="Date_start_job" Type="DateTime" Precision="0" />
  364. <Property Name="Date_finish_job" Type="DateTime" Precision="0" />
  365. </EntityType>
  366. <Association Name="FK__Authoriza__ID_Us__47DBAE45">
  367. <End Role="Users" Type="Self.Users" Multiplicity="1" />
  368. <End Role="Authorization_History" Type="Self.Authorization_History" Multiplicity="*" />
  369. <ReferentialConstraint>
  370. <Principal Role="Users">
  371. <PropertyRef Name="ID_user" />
  372. </Principal>
  373. <Dependent Role="Authorization_History">
  374. <PropertyRef Name="ID_User" />
  375. </Dependent>
  376. </ReferentialConstraint>
  377. </Association>
  378. <Association Name="FK__Date_task__ID_st__412EB0B6">
  379. <End Role="Status" Type="Self.Status" Multiplicity="0..1" />
  380. <End Role="Date_task" Type="Self.Date_task" Multiplicity="*" />
  381. <ReferentialConstraint>
  382. <Principal Role="Status">
  383. <PropertyRef Name="ID_status" />
  384. </Principal>
  385. <Dependent Role="Date_task">
  386. <PropertyRef Name="ID_status" />
  387. </Dependent>
  388. </ReferentialConstraint>
  389. </Association>
  390. <Association Name="FK__Task__ID_task__440B1D61">
  391. <End Role="Date_task" Type="Self.Date_task" Multiplicity="0..1" />
  392. <End Role="Task" Type="Self.Task" Multiplicity="*" />
  393. <ReferentialConstraint>
  394. <Principal Role="Date_task">
  395. <PropertyRef Name="ID_task" />
  396. </Principal>
  397. <Dependent Role="Task">
  398. <PropertyRef Name="ID_task" />
  399. </Dependent>
  400. </ReferentialConstraint>
  401. </Association>
  402. <Association Name="FK__Date_User__ID_ro__3C69FB99">
  403. <End Role="Role" Type="Self.Role" Multiplicity="0..1" />
  404. <End Role="Date_Users" Type="Self.Date_Users" Multiplicity="*" />
  405. <ReferentialConstraint>
  406. <Principal Role="Role">
  407. <PropertyRef Name="ID_role" />
  408. </Principal>
  409. <Dependent Role="Date_Users">
  410. <PropertyRef Name="ID_role" />
  411. </Dependent>
  412. </ReferentialConstraint>
  413. </Association>
  414. <Association Name="FK__Date_User__ID_us__3B75D760">
  415. <End Role="Users" Type="Self.Users" Multiplicity="0..1" />
  416. <End Role="Date_Users" Type="Self.Date_Users" Multiplicity="*" />
  417. <ReferentialConstraint>
  418. <Principal Role="Users">
  419. <PropertyRef Name="ID_user" />
  420. </Principal>
  421. <Dependent Role="Date_Users">
  422. <PropertyRef Name="ID_user" />
  423. </Dependent>
  424. </ReferentialConstraint>
  425. </Association>
  426. <Association Name="FK__Task__ID_user__44FF419A">
  427. <End Role="Users" Type="Self.Users" Multiplicity="0..1" />
  428. <End Role="Task" Type="Self.Task" Multiplicity="*" />
  429. <ReferentialConstraint>
  430. <Principal Role="Users">
  431. <PropertyRef Name="ID_user" />
  432. </Principal>
  433. <Dependent Role="Task">
  434. <PropertyRef Name="ID_user" />
  435. </Dependent>
  436. </ReferentialConstraint>
  437. </Association>
  438. <EntityContainer Name="TheBestV2Entities" annotation:LazyLoadingEnabled="true">
  439. <EntitySet Name="Authorization_History" EntityType="Self.Authorization_History" />
  440. <EntitySet Name="Date_task" EntityType="Self.Date_task" />
  441. <EntitySet Name="Date_Users" EntityType="Self.Date_Users" />
  442. <EntitySet Name="Role" EntityType="Self.Role" />
  443. <EntitySet Name="Status" EntityType="Self.Status" />
  444. <EntitySet Name="sysdiagrams" EntityType="Self.sysdiagrams" />
  445. <EntitySet Name="Task" EntityType="Self.Task" />
  446. <EntitySet Name="Users" EntityType="Self.Users" />
  447. <EntitySet Name="Active_tasks" EntityType="Self.Active_tasks" />
  448. <EntitySet Name="Complete_tasks" EntityType="Self.Complete_tasks" />
  449. <AssociationSet Name="FK__Authoriza__ID_Us__47DBAE45" Association="Self.FK__Authoriza__ID_Us__47DBAE45">
  450. <End Role="Users" EntitySet="Users" />
  451. <End Role="Authorization_History" EntitySet="Authorization_History" />
  452. </AssociationSet>
  453. <AssociationSet Name="FK__Date_task__ID_st__412EB0B6" Association="Self.FK__Date_task__ID_st__412EB0B6">
  454. <End Role="Status" EntitySet="Status" />
  455. <End Role="Date_task" EntitySet="Date_task" />
  456. </AssociationSet>
  457. <AssociationSet Name="FK__Task__ID_task__440B1D61" Association="Self.FK__Task__ID_task__440B1D61">
  458. <End Role="Date_task" EntitySet="Date_task" />
  459. <End Role="Task" EntitySet="Task" />
  460. </AssociationSet>
  461. <AssociationSet Name="FK__Date_User__ID_ro__3C69FB99" Association="Self.FK__Date_User__ID_ro__3C69FB99">
  462. <End Role="Role" EntitySet="Role" />
  463. <End Role="Date_Users" EntitySet="Date_Users" />
  464. </AssociationSet>
  465. <AssociationSet Name="FK__Date_User__ID_us__3B75D760" Association="Self.FK__Date_User__ID_us__3B75D760">
  466. <End Role="Users" EntitySet="Users" />
  467. <End Role="Date_Users" EntitySet="Date_Users" />
  468. </AssociationSet>
  469. <AssociationSet Name="FK__Task__ID_user__44FF419A" Association="Self.FK__Task__ID_user__44FF419A">
  470. <End Role="Users" EntitySet="Users" />
  471. <End Role="Task" EntitySet="Task" />
  472. </AssociationSet>
  473. <FunctionImport Name="sp_alterdiagram">
  474. <Parameter Name="diagramname" Mode="In" Type="String" />
  475. <Parameter Name="owner_id" Mode="In" Type="Int32" />
  476. <Parameter Name="version" Mode="In" Type="Int32" />
  477. <Parameter Name="definition" Mode="In" Type="Binary" />
  478. </FunctionImport>
  479. <FunctionImport Name="sp_creatediagram">
  480. <Parameter Name="diagramname" Mode="In" Type="String" />
  481. <Parameter Name="owner_id" Mode="In" Type="Int32" />
  482. <Parameter Name="version" Mode="In" Type="Int32" />
  483. <Parameter Name="definition" Mode="In" Type="Binary" />
  484. </FunctionImport>
  485. <FunctionImport Name="sp_dropdiagram">
  486. <Parameter Name="diagramname" Mode="In" Type="String" />
  487. <Parameter Name="owner_id" Mode="In" Type="Int32" />
  488. </FunctionImport>
  489. <FunctionImport Name="sp_helpdiagramdefinition" ReturnType="Collection(TheBestV2Model.sp_helpdiagramdefinition_Result)">
  490. <Parameter Name="diagramname" Mode="In" Type="String" />
  491. <Parameter Name="owner_id" Mode="In" Type="Int32" />
  492. </FunctionImport>
  493. <FunctionImport Name="sp_helpdiagrams" ReturnType="Collection(TheBestV2Model.sp_helpdiagrams_Result)">
  494. <Parameter Name="diagramname" Mode="In" Type="String" />
  495. <Parameter Name="owner_id" Mode="In" Type="Int32" />
  496. </FunctionImport>
  497. <FunctionImport Name="sp_renamediagram">
  498. <Parameter Name="diagramname" Mode="In" Type="String" />
  499. <Parameter Name="owner_id" Mode="In" Type="Int32" />
  500. <Parameter Name="new_diagramname" Mode="In" Type="String" />
  501. </FunctionImport>
  502. <FunctionImport Name="sp_upgraddiagrams" />
  503. </EntityContainer>
  504. <ComplexType Name="sp_helpdiagramdefinition_Result">
  505. <Property Type="Int32" Name="version" Nullable="true" />
  506. <Property Type="Binary" Name="definition" Nullable="true" />
  507. </ComplexType>
  508. <ComplexType Name="sp_helpdiagrams_Result">
  509. <Property Type="String" Name="Database" Nullable="true" MaxLength="128" />
  510. <Property Type="String" Name="Name" Nullable="false" MaxLength="128" />
  511. <Property Type="Int32" Name="ID" Nullable="false" />
  512. <Property Type="String" Name="Owner" Nullable="true" MaxLength="128" />
  513. <Property Type="Int32" Name="OwnerID" Nullable="false" />
  514. </ComplexType>
  515. </Schema>
  516. </edmx:ConceptualModels>
  517. <!-- C-S mapping content -->
  518. <edmx:Mappings>
  519. <Mapping Space="C-S" xmlns="http://schemas.microsoft.com/ado/2009/11/mapping/cs">
  520. <EntityContainerMapping StorageEntityContainer="Хранилище TheBestV2ModelContainer" CdmEntityContainer="TheBestV2Entities">
  521. <EntitySetMapping Name="Authorization_History">
  522. <EntityTypeMapping TypeName="TheBestV2Model.Authorization_History">
  523. <MappingFragment StoreEntitySet="Authorization_History">
  524. <ScalarProperty Name="ID_Auth" ColumnName="ID_Auth" />
  525. <ScalarProperty Name="ID_User" ColumnName="ID_User" />
  526. <ScalarProperty Name="Time_Auth" ColumnName="Time_Auth" />
  527. </MappingFragment>
  528. </EntityTypeMapping>
  529. </EntitySetMapping>
  530. <EntitySetMapping Name="Date_task">
  531. <EntityTypeMapping TypeName="TheBestV2Model.Date_task">
  532. <MappingFragment StoreEntitySet="Date_task">
  533. <ScalarProperty Name="ID_task" ColumnName="ID_task" />
  534. <ScalarProperty Name="Name_task" ColumnName="Name_task" />
  535. <ScalarProperty Name="Description_task" ColumnName="Description_task" />
  536. <ScalarProperty Name="Date_start_job" ColumnName="Date_start_job" />
  537. <ScalarProperty Name="Date_finish_job" ColumnName="Date_finish_job" />
  538. <ScalarProperty Name="ID_status" ColumnName="ID_status" />
  539. </MappingFragment>
  540. </EntityTypeMapping>
  541. </EntitySetMapping>
  542. <EntitySetMapping Name="Date_Users">
  543. <EntityTypeMapping TypeName="TheBestV2Model.Date_Users">
  544. <MappingFragment StoreEntitySet="Date_Users">
  545. <ScalarProperty Name="Login" ColumnName="Login" />
  546. <ScalarProperty Name="Password" ColumnName="Password" />
  547. <ScalarProperty Name="ID_user" ColumnName="ID_user" />
  548. <ScalarProperty Name="ID_role" ColumnName="ID_role" />
  549. </MappingFragment>
  550. </EntityTypeMapping>
  551. </EntitySetMapping>
  552. <EntitySetMapping Name="Role">
  553. <EntityTypeMapping TypeName="TheBestV2Model.Role">
  554. <MappingFragment StoreEntitySet="Role">
  555. <ScalarProperty Name="ID_role" ColumnName="ID_role" />
  556. <ScalarProperty Name="Name_role" ColumnName="Name_role" />
  557. </MappingFragment>
  558. </EntityTypeMapping>
  559. </EntitySetMapping>
  560. <EntitySetMapping Name="Status">
  561. <EntityTypeMapping TypeName="TheBestV2Model.Status">
  562. <MappingFragment StoreEntitySet="Status">
  563. <ScalarProperty Name="ID_status" ColumnName="ID_status" />
  564. <ScalarProperty Name="Status1" ColumnName="Status" />
  565. </MappingFragment>
  566. </EntityTypeMapping>
  567. </EntitySetMapping>
  568. <EntitySetMapping Name="sysdiagrams">
  569. <EntityTypeMapping TypeName="TheBestV2Model.sysdiagrams">
  570. <MappingFragment StoreEntitySet="sysdiagrams">
  571. <ScalarProperty Name="name" ColumnName="name" />
  572. <ScalarProperty Name="principal_id" ColumnName="principal_id" />
  573. <ScalarProperty Name="diagram_id" ColumnName="diagram_id" />
  574. <ScalarProperty Name="version" ColumnName="version" />
  575. <ScalarProperty Name="definition" ColumnName="definition" />
  576. </MappingFragment>
  577. </EntityTypeMapping>
  578. </EntitySetMapping>
  579. <EntitySetMapping Name="Task">
  580. <EntityTypeMapping TypeName="TheBestV2Model.Task">
  581. <MappingFragment StoreEntitySet="Task">
  582. <ScalarProperty Name="ID_Task_For_User" ColumnName="ID_Task_For_User" />
  583. <ScalarProperty Name="ID_task" ColumnName="ID_task" />
  584. <ScalarProperty Name="ID_user" ColumnName="ID_user" />
  585. </MappingFragment>
  586. </EntityTypeMapping>
  587. </EntitySetMapping>
  588. <EntitySetMapping Name="Users">
  589. <EntityTypeMapping TypeName="TheBestV2Model.Users">
  590. <MappingFragment StoreEntitySet="Users">
  591. <ScalarProperty Name="ID_user" ColumnName="ID_user" />
  592. <ScalarProperty Name="Surname" ColumnName="Surname" />
  593. <ScalarProperty Name="Name" ColumnName="Name" />
  594. <ScalarProperty Name="Patronymic" ColumnName="Patronymic" />
  595. <ScalarProperty Name="Phone" ColumnName="Phone" />
  596. <ScalarProperty Name="Email" ColumnName="Email" />
  597. </MappingFragment>
  598. </EntityTypeMapping>
  599. </EntitySetMapping>
  600. <EntitySetMapping Name="Active_tasks">
  601. <EntityTypeMapping TypeName="TheBestV2Model.Active_tasks">
  602. <MappingFragment StoreEntitySet="Active_tasks">
  603. <ScalarProperty Name="ID_task" ColumnName="ID_task" />
  604. <ScalarProperty Name="Name_tasks" ColumnName="Name_tasks" />
  605. <ScalarProperty Name="Description_task" ColumnName="Description_task" />
  606. <ScalarProperty Name="Date_start_job" ColumnName="Date_start_job" />
  607. <ScalarProperty Name="Date_finish_job" ColumnName="Date_finish_job" />
  608. </MappingFragment>
  609. </EntityTypeMapping>
  610. </EntitySetMapping>
  611. <EntitySetMapping Name="Complete_tasks">
  612. <EntityTypeMapping TypeName="TheBestV2Model.Complete_tasks">
  613. <MappingFragment StoreEntitySet="Complete_tasks">
  614. <ScalarProperty Name="ID_task" ColumnName="ID_task" />
  615. <ScalarProperty Name="Name_tasks" ColumnName="Name_tasks" />
  616. <ScalarProperty Name="Description_task" ColumnName="Description_task" />
  617. <ScalarProperty Name="Date_start_job" ColumnName="Date_start_job" />
  618. <ScalarProperty Name="Date_finish_job" ColumnName="Date_finish_job" />
  619. </MappingFragment>
  620. </EntityTypeMapping>
  621. </EntitySetMapping>
  622. <FunctionImportMapping FunctionImportName="sp_alterdiagram" FunctionName="Хранилище TheBestV2Model.sp_alterdiagram" />
  623. <FunctionImportMapping FunctionImportName="sp_creatediagram" FunctionName="Хранилище TheBestV2Model.sp_creatediagram" />
  624. <FunctionImportMapping FunctionImportName="sp_dropdiagram" FunctionName="Хранилище TheBestV2Model.sp_dropdiagram" />
  625. <FunctionImportMapping FunctionImportName="sp_helpdiagramdefinition" FunctionName="Хранилище TheBestV2Model.sp_helpdiagramdefinition">
  626. <ResultMapping>
  627. <ComplexTypeMapping TypeName="TheBestV2Model.sp_helpdiagramdefinition_Result">
  628. <ScalarProperty Name="version" ColumnName="version" />
  629. <ScalarProperty Name="definition" ColumnName="definition" />
  630. </ComplexTypeMapping>
  631. </ResultMapping>
  632. </FunctionImportMapping>
  633. <FunctionImportMapping FunctionImportName="sp_helpdiagrams" FunctionName="Хранилище TheBestV2Model.sp_helpdiagrams">
  634. <ResultMapping>
  635. <ComplexTypeMapping TypeName="TheBestV2Model.sp_helpdiagrams_Result">
  636. <ScalarProperty Name="Database" ColumnName="Database" />
  637. <ScalarProperty Name="Name" ColumnName="Name" />
  638. <ScalarProperty Name="ID" ColumnName="ID" />
  639. <ScalarProperty Name="Owner" ColumnName="Owner" />
  640. <ScalarProperty Name="OwnerID" ColumnName="OwnerID" />
  641. </ComplexTypeMapping>
  642. </ResultMapping>
  643. </FunctionImportMapping>
  644. <FunctionImportMapping FunctionImportName="sp_renamediagram" FunctionName="Хранилище TheBestV2Model.sp_renamediagram" />
  645. <FunctionImportMapping FunctionImportName="sp_upgraddiagrams" FunctionName="Хранилище TheBestV2Model.sp_upgraddiagrams" />
  646. </EntityContainerMapping>
  647. </Mapping>
  648. </edmx:Mappings>
  649. </edmx:Runtime>
  650. <!-- EF Designer content (DO NOT EDIT MANUALLY BELOW HERE) -->
  651. <Designer xmlns="http://schemas.microsoft.com/ado/2009/11/edmx">
  652. <Connection>
  653. <DesignerInfoPropertySet>
  654. <DesignerProperty Name="MetadataArtifactProcessing" Value="EmbedInOutputAssembly" />
  655. </DesignerInfoPropertySet>
  656. </Connection>
  657. <Options>
  658. <DesignerInfoPropertySet>
  659. <DesignerProperty Name="ValidateOnBuild" Value="true" />
  660. <DesignerProperty Name="EnablePluralization" Value="false" />
  661. <DesignerProperty Name="IncludeForeignKeysInModel" Value="true" />
  662. <DesignerProperty Name="UseLegacyProvider" Value="false" />
  663. <DesignerProperty Name="CodeGenerationStrategy" Value="Нет" />
  664. </DesignerInfoPropertySet>
  665. </Options>
  666. <!-- Diagram content (shape and connector positions) -->
  667. <Diagrams></Diagrams>
  668. </Designer>
  669. </edmx:Edmx>