20210625080336_AddGenericAlarms.Designer.cs 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494
  1. // <auto-generated />
  2. using System;
  3. using Edge.Core.Database;
  4. using Microsoft.EntityFrameworkCore;
  5. using Microsoft.EntityFrameworkCore.Infrastructure;
  6. using Microsoft.EntityFrameworkCore.Migrations;
  7. using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
  8. namespace Edge.Core.Database.Migrations
  9. {
  10. [DbContext(typeof(SqliteDbContext))]
  11. [Migration("20210625080336_AddGenericAlarms")]
  12. partial class AddGenericAlarms
  13. {
  14. protected override void BuildTargetModel(ModelBuilder modelBuilder)
  15. {
  16. #pragma warning disable 612, 618
  17. modelBuilder
  18. .HasAnnotation("ProductVersion", "5.0.5");
  19. modelBuilder.Entity("Edge.Core.Database.Configuration.Models.ProcessorMetaConfigDbModel", b =>
  20. {
  21. b.Property<int>("Id")
  22. .ValueGeneratedOnAdd()
  23. .HasColumnType("INTEGER");
  24. b.Property<bool>("Activated")
  25. .HasColumnType("INTEGER");
  26. b.Property<string>("Description")
  27. .HasColumnType("TEXT");
  28. b.Property<string>("Name")
  29. .IsRequired()
  30. .HasColumnType("TEXT");
  31. b.Property<DateTime>("TimeStamp")
  32. .HasColumnType("TEXT");
  33. b.Property<int>("Type")
  34. .HasColumnType("INTEGER");
  35. b.HasKey("Id");
  36. b.HasIndex("Name")
  37. .IsUnique();
  38. b.HasIndex("TimeStamp");
  39. b.ToTable("ProcessorMetaConfigs");
  40. });
  41. modelBuilder.Entity("Edge.Core.Database.Configuration.Models.ProcessorMetaPartsMetaConfigDbModel", b =>
  42. {
  43. b.Property<int>("Id")
  44. .ValueGeneratedOnAdd()
  45. .HasColumnType("INTEGER");
  46. b.Property<string>("FullTypeString")
  47. .IsRequired()
  48. .HasColumnType("TEXT");
  49. b.Property<string>("ParametersJsonArrayStr")
  50. .HasColumnType("TEXT");
  51. b.Property<int>("ProcessorMetaConfigId")
  52. .HasColumnType("INTEGER");
  53. b.Property<int>("Type")
  54. .HasColumnType("INTEGER");
  55. b.HasKey("Id");
  56. b.HasIndex("ProcessorMetaConfigId", "Type")
  57. .IsUnique();
  58. b.ToTable("ProcessorMetaPartsMetaConfigs");
  59. });
  60. modelBuilder.Entity("Edge.Core.Database.Models.FuelPointReservation", b =>
  61. {
  62. b.Property<int>("Id")
  63. .ValueGeneratedOnAdd()
  64. .HasColumnType("INTEGER");
  65. b.Property<int>("FuelPointId")
  66. .HasColumnType("INTEGER");
  67. b.Property<int>("ReservedByFdcClientId")
  68. .HasColumnType("INTEGER");
  69. b.Property<DateTime>("ReservingTime")
  70. .HasColumnType("TEXT");
  71. b.HasKey("Id");
  72. b.ToTable("FuelPointReservationModels");
  73. });
  74. modelBuilder.Entity("Edge.Core.Database.Models.FuelPriceChange", b =>
  75. {
  76. b.Property<int>("Id")
  77. .ValueGeneratedOnAdd()
  78. .HasColumnType("INTEGER");
  79. b.Property<DateTime?>("FinishTime")
  80. .HasColumnType("TEXT");
  81. b.Property<int>("LogicalNozzleId")
  82. .HasColumnType("INTEGER");
  83. b.Property<int>("NewPriceWithoutDecimal")
  84. .HasColumnType("INTEGER");
  85. b.Property<int>("PumpId")
  86. .HasColumnType("INTEGER");
  87. b.Property<DateTime>("StartTime")
  88. .HasColumnType("TEXT");
  89. b.HasKey("Id");
  90. b.ToTable("FuelPriceChanges");
  91. });
  92. modelBuilder.Entity("Edge.Core.Database.Models.FuelSaleTransaction", b =>
  93. {
  94. b.Property<int>("ReleaseToken")
  95. .ValueGeneratedOnAdd()
  96. .HasColumnType("INTEGER");
  97. b.Property<int>("Amount")
  98. .HasColumnType("INTEGER");
  99. b.Property<int>("AmountTotalizer")
  100. .HasColumnType("INTEGER");
  101. b.Property<string>("AuthorizedByFdcClientId")
  102. .HasColumnType("TEXT");
  103. b.Property<DateTime?>("AuthorizedTime")
  104. .HasColumnType("TEXT");
  105. b.Property<string>("LockedByFdcClientId")
  106. .HasColumnType("TEXT");
  107. b.Property<DateTime?>("LockedTime")
  108. .HasColumnType("TEXT");
  109. b.Property<int>("LogicalNozzleId")
  110. .HasColumnType("INTEGER");
  111. b.Property<string>("PaidByFdcClientId")
  112. .HasColumnType("TEXT");
  113. b.Property<DateTime?>("PaidTime")
  114. .HasColumnType("TEXT");
  115. b.Property<string>("ProductBarcode")
  116. .HasColumnType("TEXT");
  117. b.Property<int>("PumpId")
  118. .HasColumnType("INTEGER");
  119. b.Property<DateTime?>("SaleEndTime")
  120. .HasColumnType("TEXT");
  121. b.Property<DateTime?>("SaleStartTime")
  122. .HasColumnType("TEXT");
  123. b.Property<int>("State")
  124. .HasColumnType("INTEGER");
  125. b.Property<string>("TransactionSeqNumberFromPhysicalPump")
  126. .HasColumnType("TEXT");
  127. b.Property<int>("UnitPrice")
  128. .HasColumnType("INTEGER");
  129. b.Property<int>("VolumeTotalizer")
  130. .HasColumnType("INTEGER");
  131. b.Property<int>("Volumn")
  132. .HasColumnType("INTEGER");
  133. b.HasKey("ReleaseToken");
  134. b.ToTable("PumpTransactionModels");
  135. });
  136. modelBuilder.Entity("Edge.Core.Database.Models.GenericAlarmDbModel", b =>
  137. {
  138. b.Property<int>("Id")
  139. .ValueGeneratedOnAdd()
  140. .HasColumnType("INTEGER");
  141. b.Property<string>("AckedReason")
  142. .HasColumnType("TEXT");
  143. b.Property<DateTime?>("AckedTimestamp")
  144. .HasColumnType("TEXT");
  145. b.Property<string>("Action")
  146. .HasColumnType("TEXT");
  147. b.Property<string>("Category")
  148. .HasColumnType("TEXT");
  149. b.Property<string>("ClosedReason")
  150. .HasColumnType("TEXT");
  151. b.Property<DateTime?>("ClosedTimestamp")
  152. .HasColumnType("TEXT");
  153. b.Property<string>("Detail")
  154. .HasColumnType("TEXT");
  155. b.Property<string>("HiddenData")
  156. .HasColumnType("TEXT");
  157. b.Property<DateTime>("OpeningTimestamp")
  158. .HasColumnType("TEXT");
  159. b.Property<string>("OriginatorDisplayName")
  160. .HasColumnType("TEXT");
  161. b.Property<string>("ProcessorEndpointFullTypeStr")
  162. .HasColumnType("TEXT");
  163. b.Property<int>("Severity")
  164. .HasColumnType("INTEGER");
  165. b.Property<string>("SubCategory")
  166. .HasColumnType("TEXT");
  167. b.Property<string>("Title")
  168. .HasColumnType("TEXT");
  169. b.HasKey("Id");
  170. b.HasIndex("ClosedTimestamp");
  171. b.HasIndex("HiddenData");
  172. b.HasIndex("OpeningTimestamp");
  173. b.HasIndex("ProcessorEndpointFullTypeStr");
  174. b.HasIndex("Severity");
  175. b.HasIndex("Category", "SubCategory");
  176. b.HasIndex("OriginatorDisplayName", "OpeningTimestamp", "ClosedTimestamp");
  177. b.ToTable("GenericAlarms");
  178. });
  179. modelBuilder.Entity("Edge.Core.Database.Models.GenericData", b =>
  180. {
  181. b.Property<int>("Id")
  182. .ValueGeneratedOnAdd()
  183. .HasColumnType("INTEGER");
  184. b.Property<string>("ComplexData")
  185. .HasColumnType("TEXT");
  186. b.Property<DateTime?>("CreatedTimeStamp")
  187. .HasColumnType("TEXT");
  188. b.Property<string>("Description")
  189. .HasColumnType("TEXT");
  190. b.Property<double?>("DoubleProperty0")
  191. .HasColumnType("REAL");
  192. b.Property<double?>("DoubleProperty1")
  193. .HasColumnType("REAL");
  194. b.Property<double?>("DoubleProperty2")
  195. .HasColumnType("REAL");
  196. b.Property<double?>("DoubleProperty3")
  197. .HasColumnType("REAL");
  198. b.Property<double?>("DoubleProperty4")
  199. .HasColumnType("REAL");
  200. b.Property<double?>("DoubleProperty5")
  201. .HasColumnType("REAL");
  202. b.Property<double?>("DoubleProperty6")
  203. .HasColumnType("REAL");
  204. b.Property<double?>("DoubleProperty7")
  205. .HasColumnType("REAL");
  206. b.Property<double?>("DoubleProperty8")
  207. .HasColumnType("REAL");
  208. b.Property<double?>("DoubleProperty9")
  209. .HasColumnType("REAL");
  210. b.Property<int?>("IntProperty0")
  211. .HasColumnType("INTEGER");
  212. b.Property<int?>("IntProperty1")
  213. .HasColumnType("INTEGER");
  214. b.Property<int?>("IntProperty2")
  215. .HasColumnType("INTEGER");
  216. b.Property<int?>("IntProperty3")
  217. .HasColumnType("INTEGER");
  218. b.Property<int?>("IntProperty4")
  219. .HasColumnType("INTEGER");
  220. b.Property<int?>("IntProperty5")
  221. .HasColumnType("INTEGER");
  222. b.Property<int?>("IntProperty6")
  223. .HasColumnType("INTEGER");
  224. b.Property<int?>("IntProperty7")
  225. .HasColumnType("INTEGER");
  226. b.Property<int?>("IntProperty8")
  227. .HasColumnType("INTEGER");
  228. b.Property<int?>("IntProperty9")
  229. .HasColumnType("INTEGER");
  230. b.Property<DateTime?>("ModifiedTimeStamp")
  231. .HasColumnType("TEXT");
  232. b.Property<string>("Owner")
  233. .IsRequired()
  234. .HasColumnType("TEXT");
  235. b.Property<string>("State")
  236. .HasColumnType("TEXT");
  237. b.Property<string>("StrProperty0")
  238. .HasColumnType("TEXT");
  239. b.Property<string>("StrProperty1")
  240. .HasColumnType("TEXT");
  241. b.Property<string>("StrProperty2")
  242. .HasColumnType("TEXT");
  243. b.Property<string>("StrProperty3")
  244. .HasColumnType("TEXT");
  245. b.Property<string>("StrProperty4")
  246. .HasColumnType("TEXT");
  247. b.Property<string>("StrProperty5")
  248. .HasColumnType("TEXT");
  249. b.Property<string>("StrProperty6")
  250. .HasColumnType("TEXT");
  251. b.Property<string>("StrProperty7")
  252. .HasColumnType("TEXT");
  253. b.Property<string>("StrProperty8")
  254. .HasColumnType("TEXT");
  255. b.Property<string>("StrProperty9")
  256. .HasColumnType("TEXT");
  257. b.Property<DateTime?>("TimeStampProperty0")
  258. .HasColumnType("TEXT");
  259. b.Property<DateTime?>("TimeStampProperty1")
  260. .HasColumnType("TEXT");
  261. b.Property<DateTime?>("TimeStampProperty2")
  262. .HasColumnType("TEXT");
  263. b.Property<DateTime?>("TimeStampProperty3")
  264. .HasColumnType("TEXT");
  265. b.Property<DateTime?>("TimeStampProperty4")
  266. .HasColumnType("TEXT");
  267. b.Property<string>("Type")
  268. .HasColumnType("TEXT");
  269. b.HasKey("Id");
  270. b.HasIndex("CreatedTimeStamp");
  271. b.HasIndex("DoubleProperty0");
  272. b.HasIndex("DoubleProperty1");
  273. b.HasIndex("DoubleProperty2");
  274. b.HasIndex("DoubleProperty3");
  275. b.HasIndex("DoubleProperty4");
  276. b.HasIndex("DoubleProperty5");
  277. b.HasIndex("DoubleProperty6");
  278. b.HasIndex("DoubleProperty7");
  279. b.HasIndex("DoubleProperty8");
  280. b.HasIndex("DoubleProperty9");
  281. b.HasIndex("IntProperty0");
  282. b.HasIndex("IntProperty1");
  283. b.HasIndex("IntProperty2");
  284. b.HasIndex("IntProperty3");
  285. b.HasIndex("IntProperty4");
  286. b.HasIndex("IntProperty5");
  287. b.HasIndex("IntProperty6");
  288. b.HasIndex("IntProperty7");
  289. b.HasIndex("IntProperty8");
  290. b.HasIndex("IntProperty9");
  291. b.HasIndex("ModifiedTimeStamp");
  292. b.HasIndex("Owner");
  293. b.HasIndex("State");
  294. b.HasIndex("StrProperty0");
  295. b.HasIndex("StrProperty1");
  296. b.HasIndex("StrProperty2");
  297. b.HasIndex("StrProperty3");
  298. b.HasIndex("StrProperty4");
  299. b.HasIndex("StrProperty5");
  300. b.HasIndex("StrProperty6");
  301. b.HasIndex("StrProperty7");
  302. b.HasIndex("StrProperty8");
  303. b.HasIndex("StrProperty9");
  304. b.HasIndex("TimeStampProperty0");
  305. b.HasIndex("TimeStampProperty1");
  306. b.HasIndex("TimeStampProperty2");
  307. b.HasIndex("TimeStampProperty3");
  308. b.HasIndex("TimeStampProperty4");
  309. b.HasIndex("Type");
  310. b.ToTable("GenericDatas");
  311. });
  312. modelBuilder.Entity("Edge.Core.Database.Configuration.Models.ProcessorMetaPartsMetaConfigDbModel", b =>
  313. {
  314. b.HasOne("Edge.Core.Database.Configuration.Models.ProcessorMetaConfigDbModel", "ProcessorMetaConfig")
  315. .WithMany("Parts")
  316. .HasForeignKey("ProcessorMetaConfigId")
  317. .OnDelete(DeleteBehavior.Cascade)
  318. .IsRequired();
  319. b.Navigation("ProcessorMetaConfig");
  320. });
  321. modelBuilder.Entity("Edge.Core.Database.Configuration.Models.ProcessorMetaConfigDbModel", b =>
  322. {
  323. b.Navigation("Parts");
  324. });
  325. #pragma warning restore 612, 618
  326. }
  327. }
  328. }