AppDbContextModelSnapshot.cs 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379
  1. // <auto-generated />
  2. using System;
  3. using Application.ATG_Classic_App;
  4. using Microsoft.EntityFrameworkCore;
  5. using Microsoft.EntityFrameworkCore.Infrastructure;
  6. using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
  7. namespace Application.ATG_Classic_App.Migrations
  8. {
  9. [DbContext(typeof(AppDbContext))]
  10. partial class AppDbContextModelSnapshot : ModelSnapshot
  11. {
  12. protected override void BuildModel(ModelBuilder modelBuilder)
  13. {
  14. #pragma warning disable 612, 618
  15. modelBuilder
  16. .HasAnnotation("ProductVersion", "3.1.4");
  17. modelBuilder.Entity("Application.ATG_Classic_App.Model.Alarm", b =>
  18. {
  19. b.Property<int>("Id")
  20. .ValueGeneratedOnAdd()
  21. .HasColumnType("INTEGER");
  22. b.Property<DateTime?>("ClearedTimeStamp")
  23. .HasColumnType("TEXT");
  24. b.Property<DateTime>("CreatedTimeStamp")
  25. .HasColumnType("TEXT");
  26. b.Property<string>("Description")
  27. .HasColumnType("TEXT");
  28. b.Property<int>("Priority")
  29. .HasColumnType("INTEGER");
  30. b.Property<byte>("TankNumber")
  31. .HasColumnType("INTEGER");
  32. b.Property<int>("Type")
  33. .HasColumnType("INTEGER");
  34. b.HasKey("Id");
  35. b.HasIndex("CreatedTimeStamp");
  36. b.HasIndex("TankNumber");
  37. b.HasIndex("TankNumber", "Type", "Priority", "ClearedTimeStamp")
  38. .IsUnique();
  39. b.HasIndex("TankNumber", "Type", "Priority", "CreatedTimeStamp")
  40. .IsUnique();
  41. b.ToTable("Alarms");
  42. });
  43. modelBuilder.Entity("Application.ATG_Classic_App.Model.Delivery", b =>
  44. {
  45. b.Property<int>("Id")
  46. .ValueGeneratedOnAdd()
  47. .HasColumnType("INTEGER");
  48. b.Property<string>("Description")
  49. .HasColumnType("TEXT");
  50. b.Property<DateTime?>("EndingDateTime")
  51. .HasColumnType("TEXT");
  52. b.Property<double?>("EndingFuelHeight")
  53. .HasColumnType("REAL");
  54. b.Property<double?>("EndingFuelTCVolume")
  55. .HasColumnType("REAL");
  56. b.Property<double?>("EndingFuelVolume")
  57. .HasColumnType("REAL");
  58. b.Property<double?>("EndingTemperture")
  59. .HasColumnType("REAL");
  60. b.Property<double?>("EndingWaterHeight")
  61. .HasColumnType("REAL");
  62. b.Property<double?>("EndingWaterVolume")
  63. .HasColumnType("REAL");
  64. b.Property<DateTime>("StartingDateTime")
  65. .HasColumnType("TEXT");
  66. b.Property<double>("StartingFuelHeight")
  67. .HasColumnType("REAL");
  68. b.Property<double>("StartingFuelTCVolume")
  69. .HasColumnType("REAL");
  70. b.Property<double>("StartingFuelVolume")
  71. .HasColumnType("REAL");
  72. b.Property<double>("StartingTemperture")
  73. .HasColumnType("REAL");
  74. b.Property<double>("StartingWaterHeight")
  75. .HasColumnType("REAL");
  76. b.Property<double>("StartingWaterVolume")
  77. .HasColumnType("REAL");
  78. b.Property<byte>("TankNumber")
  79. .HasColumnType("INTEGER");
  80. b.HasKey("Id");
  81. b.HasIndex("TankNumber", "StartingDateTime")
  82. .IsUnique();
  83. b.ToTable("Deliveries");
  84. });
  85. modelBuilder.Entity("Application.ATG_Classic_App.Model.Inventory", b =>
  86. {
  87. b.Property<int>("Id")
  88. .ValueGeneratedOnAdd()
  89. .HasColumnType("INTEGER");
  90. b.Property<string>("Description")
  91. .HasColumnType("TEXT");
  92. b.Property<double>("FuelHeight")
  93. .HasColumnType("REAL");
  94. b.Property<double>("FuelTCVolume")
  95. .HasColumnType("REAL");
  96. b.Property<double>("FuelVolume")
  97. .HasColumnType("REAL");
  98. b.Property<int>("TankNumber")
  99. .HasColumnType("INTEGER");
  100. b.Property<double>("Temperture")
  101. .HasColumnType("REAL");
  102. b.Property<DateTime>("TimeStamp")
  103. .HasColumnType("TEXT");
  104. b.Property<double>("WaterHeight")
  105. .HasColumnType("REAL");
  106. b.HasKey("Id");
  107. b.HasIndex("TankNumber", "TimeStamp")
  108. .IsUnique();
  109. b.ToTable("Inventories");
  110. });
  111. modelBuilder.Entity("Application.ATG_Classic_App.Model.ProbeConfig", b =>
  112. {
  113. b.Property<int>("Id")
  114. .ValueGeneratedOnAdd()
  115. .HasColumnType("INTEGER");
  116. b.Property<DateTime>("CreatedTimeStamp")
  117. .HasColumnType("TEXT");
  118. b.Property<int>("DeviceId")
  119. .HasColumnType("INTEGER");
  120. b.Property<DateTime?>("ModifiedTimeStamp")
  121. .HasColumnType("TEXT");
  122. b.Property<double>("ProbeOffset")
  123. .HasColumnType("REAL");
  124. b.Property<double>("WaterOffset")
  125. .HasColumnType("REAL");
  126. b.HasKey("Id");
  127. b.ToTable("ProbeConfigs");
  128. });
  129. modelBuilder.Entity("Application.ATG_Classic_App.Model.ProductConfig", b =>
  130. {
  131. b.Property<int>("Id")
  132. .ValueGeneratedOnAdd()
  133. .HasColumnType("INTEGER");
  134. b.Property<DateTime>("CreatedTimeStamp")
  135. .HasColumnType("TEXT");
  136. b.Property<DateTime?>("ModifiedTimeStamp")
  137. .HasColumnType("TEXT");
  138. b.Property<string>("ProductCode")
  139. .IsRequired()
  140. .HasColumnType("TEXT");
  141. b.Property<string>("ProductLabel")
  142. .HasColumnType("TEXT");
  143. b.HasKey("Id");
  144. b.ToTable("ProductConfigs");
  145. });
  146. modelBuilder.Entity("Application.ATG_Classic_App.Model.TankConfig", b =>
  147. {
  148. b.Property<int>("Id")
  149. .ValueGeneratedOnAdd()
  150. .HasColumnType("INTEGER");
  151. b.Property<DateTime>("CreatedTimeStamp")
  152. .HasColumnType("TEXT");
  153. b.Property<int>("DeliveryDelay")
  154. .HasColumnType("INTEGER");
  155. b.Property<double>("Diameter")
  156. .HasColumnType("REAL");
  157. b.Property<string>("Label")
  158. .HasColumnType("TEXT");
  159. b.Property<DateTime?>("ModifiedTimeStamp")
  160. .HasColumnType("TEXT");
  161. b.Property<int?>("ProbeConfigId")
  162. .HasColumnType("INTEGER");
  163. b.Property<int?>("ProductConfigId")
  164. .HasColumnType("INTEGER");
  165. b.Property<int?>("TankLimitConfigId")
  166. .HasColumnType("INTEGER");
  167. b.Property<byte>("TankNumber")
  168. .HasColumnType("INTEGER");
  169. b.Property<double>("ThermalCoefficient")
  170. .HasColumnType("REAL");
  171. b.HasKey("Id");
  172. b.HasIndex("ProbeConfigId");
  173. b.HasIndex("ProductConfigId");
  174. b.HasIndex("TankLimitConfigId");
  175. b.ToTable("TankConfigs");
  176. });
  177. modelBuilder.Entity("Application.ATG_Classic_App.Model.TankLimitConfig", b =>
  178. {
  179. b.Property<int>("Id")
  180. .ValueGeneratedOnAdd()
  181. .HasColumnType("INTEGER");
  182. b.Property<DateTime>("CreatedTimeStamp")
  183. .HasColumnType("TEXT");
  184. b.Property<double>("FuelTemperatureHighLimit")
  185. .HasColumnType("REAL");
  186. b.Property<double>("FuelTemperatureLowLimit")
  187. .HasColumnType("REAL");
  188. b.Property<double>("FullVolume")
  189. .HasColumnType("REAL");
  190. b.Property<double>("HighProduct")
  191. .HasColumnType("REAL");
  192. b.Property<double>("HighWaterAlarm")
  193. .HasColumnType("REAL");
  194. b.Property<double>("HighWaterWarning")
  195. .HasColumnType("REAL");
  196. b.Property<double>("LowProduct")
  197. .HasColumnType("REAL");
  198. b.Property<double>("MaxVolume")
  199. .HasColumnType("REAL");
  200. b.Property<DateTime?>("ModifiedTimeStamp")
  201. .HasColumnType("TEXT");
  202. b.HasKey("Id");
  203. b.ToTable("TankLimitConfigs");
  204. });
  205. modelBuilder.Entity("Application.ATG_Classic_App.Model.TankOverallConfig", b =>
  206. {
  207. b.Property<int>("Id")
  208. .ValueGeneratedOnAdd()
  209. .HasColumnType("INTEGER");
  210. b.Property<DateTime>("CreatedTimeStamp")
  211. .HasColumnType("TEXT");
  212. b.Property<int>("DeliveryMode")
  213. .HasColumnType("INTEGER");
  214. b.Property<int>("InventorySamplingInterval")
  215. .HasColumnType("INTEGER");
  216. b.Property<DateTime?>("ModifiedTimeStamp")
  217. .HasColumnType("TEXT");
  218. b.Property<double>("TcReference")
  219. .HasColumnType("REAL");
  220. b.HasKey("Id");
  221. b.ToTable("TankOverallConfigs");
  222. });
  223. modelBuilder.Entity("Application.ATG_Classic_App.Model.TankProfileData", b =>
  224. {
  225. b.Property<int>("Id")
  226. .ValueGeneratedOnAdd()
  227. .HasColumnType("INTEGER");
  228. b.Property<string>("BatchLabel")
  229. .HasColumnType("TEXT");
  230. b.Property<double>("Height")
  231. .HasColumnType("REAL");
  232. b.Property<int>("TankConfigId")
  233. .HasColumnType("INTEGER");
  234. b.Property<double>("Volume")
  235. .HasColumnType("REAL");
  236. b.Property<double?>("VolumeChange")
  237. .HasColumnType("REAL");
  238. b.HasKey("Id");
  239. b.HasIndex("TankConfigId");
  240. b.HasIndex("BatchLabel", "Height")
  241. .IsUnique();
  242. b.ToTable("TankProfileDatas");
  243. });
  244. modelBuilder.Entity("Application.ATG_Classic_App.Model.TankConfig", b =>
  245. {
  246. b.HasOne("Application.ATG_Classic_App.Model.ProbeConfig", "ProbeConfig")
  247. .WithMany()
  248. .HasForeignKey("ProbeConfigId");
  249. b.HasOne("Application.ATG_Classic_App.Model.ProductConfig", "ProductConfig")
  250. .WithMany()
  251. .HasForeignKey("ProductConfigId");
  252. b.HasOne("Application.ATG_Classic_App.Model.TankLimitConfig", "TankLimitConfig")
  253. .WithMany()
  254. .HasForeignKey("TankLimitConfigId");
  255. });
  256. modelBuilder.Entity("Application.ATG_Classic_App.Model.TankProfileData", b =>
  257. {
  258. b.HasOne("Application.ATG_Classic_App.Model.TankConfig", "TankConfig")
  259. .WithMany("TankProfileDatas")
  260. .HasForeignKey("TankConfigId")
  261. .OnDelete(DeleteBehavior.Cascade)
  262. .IsRequired();
  263. });
  264. #pragma warning restore 612, 618
  265. }
  266. }
  267. }