GasStationModel.csdl 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <Schema Namespace="gr672_pgvModel" 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">
  3. <EntityContainer Name="gr672_pgvEntities" annotation:LazyLoadingEnabled="true">
  4. <EntitySet Name="Car" EntityType="gr672_pgvModel.Car" />
  5. <EntitySet Name="Card" EntityType="gr672_pgvModel.Card" />
  6. <EntitySet Name="CardIssuer" EntityType="gr672_pgvModel.CardIssuer" />
  7. <EntitySet Name="CardType" EntityType="gr672_pgvModel.CardType" />
  8. <EntitySet Name="Client" EntityType="gr672_pgvModel.Client" />
  9. <EntitySet Name="DataOfCamera" EntityType="gr672_pgvModel.DataOfCamera" />
  10. <EntitySet Name="FuelType" EntityType="gr672_pgvModel.FuelType" />
  11. <EntitySet Name="FuelTypeOnGasStation" EntityType="gr672_pgvModel.FuelTypeOnGasStation" />
  12. <EntitySet Name="GasStation" EntityType="gr672_pgvModel.GasStation" />
  13. <EntitySet Name="Payment" EntityType="gr672_pgvModel.Payment" />
  14. <EntitySet Name="Refueling" EntityType="gr672_pgvModel.Refueling" />
  15. <EntitySet Name="RefuelingColumn" EntityType="gr672_pgvModel.RefuelingColumn" />
  16. <EntitySet Name="RefuelingGun" EntityType="gr672_pgvModel.RefuelingGun" />
  17. <AssociationSet Name="FK_Car_Client" Association="gr672_pgvModel.FK_Car_Client">
  18. <End Role="Client" EntitySet="Client" />
  19. <End Role="Car" EntitySet="Car" />
  20. </AssociationSet>
  21. <AssociationSet Name="FK_Refueling_Car" Association="gr672_pgvModel.FK_Refueling_Car">
  22. <End Role="Car" EntitySet="Car" />
  23. <End Role="Refueling" EntitySet="Refueling" />
  24. </AssociationSet>
  25. <AssociationSet Name="FK_Card_CardIssuer" Association="gr672_pgvModel.FK_Card_CardIssuer">
  26. <End Role="CardIssuer" EntitySet="CardIssuer" />
  27. <End Role="Card" EntitySet="Card" />
  28. </AssociationSet>
  29. <AssociationSet Name="FK_Card_CardType" Association="gr672_pgvModel.FK_Card_CardType">
  30. <End Role="CardType" EntitySet="CardType" />
  31. <End Role="Card" EntitySet="Card" />
  32. </AssociationSet>
  33. <AssociationSet Name="FK_Card_Client" Association="gr672_pgvModel.FK_Card_Client">
  34. <End Role="Client" EntitySet="Client" />
  35. <End Role="Card" EntitySet="Card" />
  36. </AssociationSet>
  37. <AssociationSet Name="FK_Payment_Card" Association="gr672_pgvModel.FK_Payment_Card">
  38. <End Role="Card" EntitySet="Card" />
  39. <End Role="Payment" EntitySet="Payment" />
  40. </AssociationSet>
  41. <AssociationSet Name="FK_Refueling_DataOfCamera" Association="gr672_pgvModel.FK_Refueling_DataOfCamera">
  42. <End Role="DataOfCamera" EntitySet="DataOfCamera" />
  43. <End Role="Refueling" EntitySet="Refueling" />
  44. </AssociationSet>
  45. <AssociationSet Name="FK_FuelInGasStation_TypeOfFuel" Association="gr672_pgvModel.FK_FuelInGasStation_TypeOfFuel">
  46. <End Role="FuelType" EntitySet="FuelType" />
  47. <End Role="FuelTypeOnGasStation" EntitySet="FuelTypeOnGasStation" />
  48. </AssociationSet>
  49. <AssociationSet Name="FK_RefuelingGun_FuelType" Association="gr672_pgvModel.FK_RefuelingGun_FuelType">
  50. <End Role="FuelType" EntitySet="FuelType" />
  51. <End Role="RefuelingGun" EntitySet="RefuelingGun" />
  52. </AssociationSet>
  53. <AssociationSet Name="FK_FuelInGasStation_GasStation" Association="gr672_pgvModel.FK_FuelInGasStation_GasStation">
  54. <End Role="GasStation" EntitySet="GasStation" />
  55. <End Role="FuelTypeOnGasStation" EntitySet="FuelTypeOnGasStation" />
  56. </AssociationSet>
  57. <AssociationSet Name="FK_RefuelingColumn_GasStation" Association="gr672_pgvModel.FK_RefuelingColumn_GasStation">
  58. <End Role="GasStation" EntitySet="GasStation" />
  59. <End Role="RefuelingColumn" EntitySet="RefuelingColumn" />
  60. </AssociationSet>
  61. <AssociationSet Name="FK_Payment_Refueling" Association="gr672_pgvModel.FK_Payment_Refueling">
  62. <End Role="Refueling" EntitySet="Refueling" />
  63. <End Role="Payment" EntitySet="Payment" />
  64. </AssociationSet>
  65. <AssociationSet Name="FK_Refueling_RefuelingGun" Association="gr672_pgvModel.FK_Refueling_RefuelingGun">
  66. <End Role="RefuelingGun" EntitySet="RefuelingGun" />
  67. <End Role="Refueling" EntitySet="Refueling" />
  68. </AssociationSet>
  69. <AssociationSet Name="FK_RefuelingGun_RefuelingColumn" Association="gr672_pgvModel.FK_RefuelingGun_RefuelingColumn">
  70. <End Role="RefuelingColumn" EntitySet="RefuelingColumn" />
  71. <End Role="RefuelingGun" EntitySet="RefuelingGun" />
  72. </AssociationSet>
  73. </EntityContainer>
  74. <EntityType Name="Car">
  75. <Key>
  76. <PropertyRef Name="CarID" />
  77. </Key>
  78. <Property Name="CarID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  79. <Property Name="CarNumber" Type="String" Nullable="false" MaxLength="9" FixedLength="false" Unicode="true" />
  80. <Property Name="VolumeTank" Type="Int32" />
  81. <Property Name="IDClient" Type="Int32" />
  82. <NavigationProperty Name="Client" Relationship="gr672_pgvModel.FK_Car_Client" FromRole="Car" ToRole="Client" />
  83. <NavigationProperty Name="Refueling" Relationship="gr672_pgvModel.FK_Refueling_Car" FromRole="Car" ToRole="Refueling" />
  84. </EntityType>
  85. <EntityType Name="Card">
  86. <Key>
  87. <PropertyRef Name="CardID" />
  88. </Key>
  89. <Property Name="CardID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  90. <Property Name="NumberCard" Type="String" Nullable="false" MaxLength="20" FixedLength="false" Unicode="true" />
  91. <Property Name="CardExpDate" Type="String" Nullable="false" MaxLength="10" FixedLength="false" Unicode="true" />
  92. <Property Name="Balance" Type="Decimal" Nullable="false" Precision="19" Scale="4" />
  93. <Property Name="IDCardType" Type="Int32" Nullable="false" />
  94. <Property Name="IDCardIssuer" Type="Int32" />
  95. <Property Name="IDHolder" Type="Int32" Nullable="false" />
  96. <NavigationProperty Name="CardIssuer" Relationship="gr672_pgvModel.FK_Card_CardIssuer" FromRole="Card" ToRole="CardIssuer" />
  97. <NavigationProperty Name="CardType" Relationship="gr672_pgvModel.FK_Card_CardType" FromRole="Card" ToRole="CardType" />
  98. <NavigationProperty Name="Client" Relationship="gr672_pgvModel.FK_Card_Client" FromRole="Card" ToRole="Client" />
  99. <NavigationProperty Name="Payment" Relationship="gr672_pgvModel.FK_Payment_Card" FromRole="Card" ToRole="Payment" />
  100. </EntityType>
  101. <EntityType Name="CardIssuer">
  102. <Key>
  103. <PropertyRef Name="CardIssuerID" />
  104. </Key>
  105. <Property Name="CardIssuerID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  106. <Property Name="NameCardIssuer" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
  107. <NavigationProperty Name="Card" Relationship="gr672_pgvModel.FK_Card_CardIssuer" FromRole="CardIssuer" ToRole="Card" />
  108. </EntityType>
  109. <EntityType Name="CardType">
  110. <Key>
  111. <PropertyRef Name="CardTypeID" />
  112. </Key>
  113. <Property Name="CardTypeID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  114. <Property Name="NameType" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
  115. <NavigationProperty Name="Card" Relationship="gr672_pgvModel.FK_Card_CardType" FromRole="CardType" ToRole="Card" />
  116. </EntityType>
  117. <EntityType Name="Client">
  118. <Key>
  119. <PropertyRef Name="ClientID" />
  120. </Key>
  121. <Property Name="ClientID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  122. <Property Name="LastName" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
  123. <Property Name="Name" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
  124. <NavigationProperty Name="Car" Relationship="gr672_pgvModel.FK_Car_Client" FromRole="Client" ToRole="Car" />
  125. <NavigationProperty Name="Card" Relationship="gr672_pgvModel.FK_Card_Client" FromRole="Client" ToRole="Card" />
  126. </EntityType>
  127. <EntityType Name="DataOfCamera">
  128. <Key>
  129. <PropertyRef Name="DataOfCameraID" />
  130. </Key>
  131. <Property Name="DataOfCameraID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  132. <Property Name="Date" Type="DateTime" Nullable="false" Precision="3" />
  133. <Property Name="Status" Type="Boolean" Nullable="false" />
  134. <Property Name="CarNumber" Type="String" MaxLength="9" FixedLength="false" Unicode="true" />
  135. <Property Name="NameImage" Type="String" Nullable="false" MaxLength="Max" FixedLength="false" Unicode="true" />
  136. <NavigationProperty Name="Refueling" Relationship="gr672_pgvModel.FK_Refueling_DataOfCamera" FromRole="DataOfCamera" ToRole="Refueling" />
  137. </EntityType>
  138. <EntityType Name="FuelType">
  139. <Key>
  140. <PropertyRef Name="FuelTypeID" />
  141. </Key>
  142. <Property Name="FuelTypeID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  143. <Property Name="NameFuelType" Type="String" Nullable="false" MaxLength="2" FixedLength="false" Unicode="true" />
  144. <NavigationProperty Name="FuelTypeOnGasStation" Relationship="gr672_pgvModel.FK_FuelInGasStation_TypeOfFuel" FromRole="FuelType" ToRole="FuelTypeOnGasStation" />
  145. <NavigationProperty Name="RefuelingGun" Relationship="gr672_pgvModel.FK_RefuelingGun_FuelType" FromRole="FuelType" ToRole="RefuelingGun" />
  146. </EntityType>
  147. <EntityType Name="FuelTypeOnGasStation">
  148. <Key>
  149. <PropertyRef Name="IDGasStation" />
  150. <PropertyRef Name="IDFuelType" />
  151. </Key>
  152. <Property Name="IDGasStation" Type="Int32" Nullable="false" />
  153. <Property Name="IDFuelType" Type="Int32" Nullable="false" />
  154. <Property Name="Price" Type="Double" Nullable="false" />
  155. <Property Name="AmountOfFuel" Type="Int32" Nullable="false" />
  156. <NavigationProperty Name="FuelType" Relationship="gr672_pgvModel.FK_FuelInGasStation_TypeOfFuel" FromRole="FuelTypeOnGasStation" ToRole="FuelType" />
  157. <NavigationProperty Name="GasStation" Relationship="gr672_pgvModel.FK_FuelInGasStation_GasStation" FromRole="FuelTypeOnGasStation" ToRole="GasStation" />
  158. </EntityType>
  159. <EntityType Name="GasStation">
  160. <Key>
  161. <PropertyRef Name="GasStationID" />
  162. </Key>
  163. <Property Name="GasStationID" Type="Int32" Nullable="false" />
  164. <Property Name="Address" Type="String" Nullable="false" MaxLength="Max" FixedLength="false" Unicode="true" />
  165. <NavigationProperty Name="FuelTypeOnGasStation" Relationship="gr672_pgvModel.FK_FuelInGasStation_GasStation" FromRole="GasStation" ToRole="FuelTypeOnGasStation" />
  166. <NavigationProperty Name="RefuelingColumn" Relationship="gr672_pgvModel.FK_RefuelingColumn_GasStation" FromRole="GasStation" ToRole="RefuelingColumn" />
  167. </EntityType>
  168. <EntityType Name="Payment">
  169. <Key>
  170. <PropertyRef Name="PaymentID" />
  171. </Key>
  172. <Property Name="PaymentID" Type="Int32" Nullable="false" />
  173. <Property Name="IDRefueling" Type="Int32" Nullable="false" />
  174. <Property Name="PriceRefueling" Type="Decimal" Nullable="false" Precision="19" Scale="4" />
  175. <Property Name="Status" Type="Boolean" Nullable="false" />
  176. <Property Name="TransactionCode" Type="String" Nullable="false" MaxLength="17" FixedLength="false" Unicode="true" />
  177. <Property Name="IDCard" Type="Int32" Nullable="false" />
  178. <NavigationProperty Name="Card" Relationship="gr672_pgvModel.FK_Payment_Card" FromRole="Payment" ToRole="Card" />
  179. <NavigationProperty Name="Refueling" Relationship="gr672_pgvModel.FK_Payment_Refueling" FromRole="Payment" ToRole="Refueling" />
  180. </EntityType>
  181. <EntityType Name="Refueling">
  182. <Key>
  183. <PropertyRef Name="RefuelingID" />
  184. </Key>
  185. <Property Name="RefuelingID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  186. <Property Name="IDCar" Type="Int32" />
  187. <Property Name="VolumeFuel" Type="Int32" Nullable="false" />
  188. <Property Name="IDDataOfCamera" Type="Int32" />
  189. <Property Name="KeySession" Type="String" Nullable="false" MaxLength="12" FixedLength="false" Unicode="true" />
  190. <Property Name="IDRefulingGun" Type="Int32" Nullable="false" />
  191. <NavigationProperty Name="Car" Relationship="gr672_pgvModel.FK_Refueling_Car" FromRole="Refueling" ToRole="Car" />
  192. <NavigationProperty Name="DataOfCamera" Relationship="gr672_pgvModel.FK_Refueling_DataOfCamera" FromRole="Refueling" ToRole="DataOfCamera" />
  193. <NavigationProperty Name="Payment" Relationship="gr672_pgvModel.FK_Payment_Refueling" FromRole="Refueling" ToRole="Payment" />
  194. <NavigationProperty Name="RefuelingGun" Relationship="gr672_pgvModel.FK_Refueling_RefuelingGun" FromRole="Refueling" ToRole="RefuelingGun" />
  195. </EntityType>
  196. <EntityType Name="RefuelingColumn">
  197. <Key>
  198. <PropertyRef Name="RefuelingColumnID" />
  199. </Key>
  200. <Property Name="RefuelingColumnID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  201. <Property Name="IDGasStation" Type="Int32" Nullable="false" />
  202. <NavigationProperty Name="GasStation" Relationship="gr672_pgvModel.FK_RefuelingColumn_GasStation" FromRole="RefuelingColumn" ToRole="GasStation" />
  203. <NavigationProperty Name="RefuelingGun" Relationship="gr672_pgvModel.FK_RefuelingGun_RefuelingColumn" FromRole="RefuelingColumn" ToRole="RefuelingGun" />
  204. </EntityType>
  205. <EntityType Name="RefuelingGun">
  206. <Key>
  207. <PropertyRef Name="RefuelingGunID" />
  208. </Key>
  209. <Property Name="RefuelingGunID" Type="Int32" Nullable="false" />
  210. <Property Name="IDRefuelingColumn" Type="Int32" Nullable="false" />
  211. <Property Name="IDFuelType" Type="Int32" Nullable="false" />
  212. <NavigationProperty Name="FuelType" Relationship="gr672_pgvModel.FK_RefuelingGun_FuelType" FromRole="RefuelingGun" ToRole="FuelType" />
  213. <NavigationProperty Name="Refueling" Relationship="gr672_pgvModel.FK_Refueling_RefuelingGun" FromRole="RefuelingGun" ToRole="Refueling" />
  214. <NavigationProperty Name="RefuelingColumn" Relationship="gr672_pgvModel.FK_RefuelingGun_RefuelingColumn" FromRole="RefuelingGun" ToRole="RefuelingColumn" />
  215. </EntityType>
  216. <Association Name="FK_Car_Client">
  217. <End Type="gr672_pgvModel.Client" Role="Client" Multiplicity="0..1" />
  218. <End Type="gr672_pgvModel.Car" Role="Car" Multiplicity="*" />
  219. <ReferentialConstraint>
  220. <Principal Role="Client">
  221. <PropertyRef Name="ClientID" />
  222. </Principal>
  223. <Dependent Role="Car">
  224. <PropertyRef Name="IDClient" />
  225. </Dependent>
  226. </ReferentialConstraint>
  227. </Association>
  228. <Association Name="FK_Refueling_Car">
  229. <End Type="gr672_pgvModel.Car" Role="Car" Multiplicity="0..1" />
  230. <End Type="gr672_pgvModel.Refueling" Role="Refueling" Multiplicity="*" />
  231. <ReferentialConstraint>
  232. <Principal Role="Car">
  233. <PropertyRef Name="CarID" />
  234. </Principal>
  235. <Dependent Role="Refueling">
  236. <PropertyRef Name="IDCar" />
  237. </Dependent>
  238. </ReferentialConstraint>
  239. </Association>
  240. <Association Name="FK_Card_CardIssuer">
  241. <End Type="gr672_pgvModel.CardIssuer" Role="CardIssuer" Multiplicity="0..1" />
  242. <End Type="gr672_pgvModel.Card" Role="Card" Multiplicity="*" />
  243. <ReferentialConstraint>
  244. <Principal Role="CardIssuer">
  245. <PropertyRef Name="CardIssuerID" />
  246. </Principal>
  247. <Dependent Role="Card">
  248. <PropertyRef Name="IDCardIssuer" />
  249. </Dependent>
  250. </ReferentialConstraint>
  251. </Association>
  252. <Association Name="FK_Card_CardType">
  253. <End Type="gr672_pgvModel.CardType" Role="CardType" Multiplicity="1" />
  254. <End Type="gr672_pgvModel.Card" Role="Card" Multiplicity="*" />
  255. <ReferentialConstraint>
  256. <Principal Role="CardType">
  257. <PropertyRef Name="CardTypeID" />
  258. </Principal>
  259. <Dependent Role="Card">
  260. <PropertyRef Name="IDCardType" />
  261. </Dependent>
  262. </ReferentialConstraint>
  263. </Association>
  264. <Association Name="FK_Card_Client">
  265. <End Type="gr672_pgvModel.Client" Role="Client" Multiplicity="1" />
  266. <End Type="gr672_pgvModel.Card" Role="Card" Multiplicity="*" />
  267. <ReferentialConstraint>
  268. <Principal Role="Client">
  269. <PropertyRef Name="ClientID" />
  270. </Principal>
  271. <Dependent Role="Card">
  272. <PropertyRef Name="IDHolder" />
  273. </Dependent>
  274. </ReferentialConstraint>
  275. </Association>
  276. <Association Name="FK_Payment_Card">
  277. <End Type="gr672_pgvModel.Card" Role="Card" Multiplicity="1" />
  278. <End Type="gr672_pgvModel.Payment" Role="Payment" Multiplicity="*" />
  279. <ReferentialConstraint>
  280. <Principal Role="Card">
  281. <PropertyRef Name="CardID" />
  282. </Principal>
  283. <Dependent Role="Payment">
  284. <PropertyRef Name="IDCard" />
  285. </Dependent>
  286. </ReferentialConstraint>
  287. </Association>
  288. <Association Name="FK_Refueling_DataOfCamera">
  289. <End Type="gr672_pgvModel.DataOfCamera" Role="DataOfCamera" Multiplicity="0..1" />
  290. <End Type="gr672_pgvModel.Refueling" Role="Refueling" Multiplicity="*" />
  291. <ReferentialConstraint>
  292. <Principal Role="DataOfCamera">
  293. <PropertyRef Name="DataOfCameraID" />
  294. </Principal>
  295. <Dependent Role="Refueling">
  296. <PropertyRef Name="IDDataOfCamera" />
  297. </Dependent>
  298. </ReferentialConstraint>
  299. </Association>
  300. <Association Name="FK_FuelInGasStation_TypeOfFuel">
  301. <End Type="gr672_pgvModel.FuelType" Role="FuelType" Multiplicity="1" />
  302. <End Type="gr672_pgvModel.FuelTypeOnGasStation" Role="FuelTypeOnGasStation" Multiplicity="*" />
  303. <ReferentialConstraint>
  304. <Principal Role="FuelType">
  305. <PropertyRef Name="FuelTypeID" />
  306. </Principal>
  307. <Dependent Role="FuelTypeOnGasStation">
  308. <PropertyRef Name="IDFuelType" />
  309. </Dependent>
  310. </ReferentialConstraint>
  311. </Association>
  312. <Association Name="FK_RefuelingGun_FuelType">
  313. <End Type="gr672_pgvModel.FuelType" Role="FuelType" Multiplicity="1" />
  314. <End Type="gr672_pgvModel.RefuelingGun" Role="RefuelingGun" Multiplicity="*" />
  315. <ReferentialConstraint>
  316. <Principal Role="FuelType">
  317. <PropertyRef Name="FuelTypeID" />
  318. </Principal>
  319. <Dependent Role="RefuelingGun">
  320. <PropertyRef Name="IDFuelType" />
  321. </Dependent>
  322. </ReferentialConstraint>
  323. </Association>
  324. <Association Name="FK_FuelInGasStation_GasStation">
  325. <End Type="gr672_pgvModel.GasStation" Role="GasStation" Multiplicity="1" />
  326. <End Type="gr672_pgvModel.FuelTypeOnGasStation" Role="FuelTypeOnGasStation" Multiplicity="*" />
  327. <ReferentialConstraint>
  328. <Principal Role="GasStation">
  329. <PropertyRef Name="GasStationID" />
  330. </Principal>
  331. <Dependent Role="FuelTypeOnGasStation">
  332. <PropertyRef Name="IDGasStation" />
  333. </Dependent>
  334. </ReferentialConstraint>
  335. </Association>
  336. <Association Name="FK_RefuelingColumn_GasStation">
  337. <End Type="gr672_pgvModel.GasStation" Role="GasStation" Multiplicity="1" />
  338. <End Type="gr672_pgvModel.RefuelingColumn" Role="RefuelingColumn" Multiplicity="*" />
  339. <ReferentialConstraint>
  340. <Principal Role="GasStation">
  341. <PropertyRef Name="GasStationID" />
  342. </Principal>
  343. <Dependent Role="RefuelingColumn">
  344. <PropertyRef Name="IDGasStation" />
  345. </Dependent>
  346. </ReferentialConstraint>
  347. </Association>
  348. <Association Name="FK_Payment_Refueling">
  349. <End Type="gr672_pgvModel.Refueling" Role="Refueling" Multiplicity="1" />
  350. <End Type="gr672_pgvModel.Payment" Role="Payment" Multiplicity="*" />
  351. <ReferentialConstraint>
  352. <Principal Role="Refueling">
  353. <PropertyRef Name="RefuelingID" />
  354. </Principal>
  355. <Dependent Role="Payment">
  356. <PropertyRef Name="IDRefueling" />
  357. </Dependent>
  358. </ReferentialConstraint>
  359. </Association>
  360. <Association Name="FK_Refueling_RefuelingGun">
  361. <End Type="gr672_pgvModel.RefuelingGun" Role="RefuelingGun" Multiplicity="1" />
  362. <End Type="gr672_pgvModel.Refueling" Role="Refueling" Multiplicity="*" />
  363. <ReferentialConstraint>
  364. <Principal Role="RefuelingGun">
  365. <PropertyRef Name="RefuelingGunID" />
  366. </Principal>
  367. <Dependent Role="Refueling">
  368. <PropertyRef Name="IDRefulingGun" />
  369. </Dependent>
  370. </ReferentialConstraint>
  371. </Association>
  372. <Association Name="FK_RefuelingGun_RefuelingColumn">
  373. <End Type="gr672_pgvModel.RefuelingColumn" Role="RefuelingColumn" Multiplicity="1" />
  374. <End Type="gr672_pgvModel.RefuelingGun" Role="RefuelingGun" Multiplicity="*" />
  375. <ReferentialConstraint>
  376. <Principal Role="RefuelingColumn">
  377. <PropertyRef Name="RefuelingColumnID" />
  378. </Principal>
  379. <Dependent Role="RefuelingGun">
  380. <PropertyRef Name="IDRefuelingColumn" />
  381. </Dependent>
  382. </ReferentialConstraint>
  383. </Association>
  384. </Schema>