Model1.edmx 36 KB

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