20200629051222_ProcessorMetaConfigDbModel.Designer.cs 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420
  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("20200629051222_ProcessorMetaConfigDbModel")]
  12. partial class ProcessorMetaConfigDbModel
  13. {
  14. protected override void BuildTargetModel(ModelBuilder modelBuilder)
  15. {
  16. #pragma warning disable 612, 618
  17. modelBuilder
  18. .HasAnnotation("ProductVersion", "3.1.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.ProcessorMetaPartsConfigDbModel", 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("ProcessorPartsMetaConfigs");
  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.GenericData", b =>
  137. {
  138. b.Property<int>("Id")
  139. .ValueGeneratedOnAdd()
  140. .HasColumnType("INTEGER");
  141. b.Property<string>("ComplexData")
  142. .HasColumnType("TEXT");
  143. b.Property<DateTime?>("CreatedTimeStamp")
  144. .HasColumnType("TEXT");
  145. b.Property<string>("Description")
  146. .HasColumnType("TEXT");
  147. b.Property<double?>("DoubleProperty0")
  148. .HasColumnType("REAL");
  149. b.Property<double?>("DoubleProperty1")
  150. .HasColumnType("REAL");
  151. b.Property<double?>("DoubleProperty2")
  152. .HasColumnType("REAL");
  153. b.Property<double?>("DoubleProperty3")
  154. .HasColumnType("REAL");
  155. b.Property<double?>("DoubleProperty4")
  156. .HasColumnType("REAL");
  157. b.Property<double?>("DoubleProperty5")
  158. .HasColumnType("REAL");
  159. b.Property<double?>("DoubleProperty6")
  160. .HasColumnType("REAL");
  161. b.Property<double?>("DoubleProperty7")
  162. .HasColumnType("REAL");
  163. b.Property<double?>("DoubleProperty8")
  164. .HasColumnType("REAL");
  165. b.Property<double?>("DoubleProperty9")
  166. .HasColumnType("REAL");
  167. b.Property<int?>("IntProperty0")
  168. .HasColumnType("INTEGER");
  169. b.Property<int?>("IntProperty1")
  170. .HasColumnType("INTEGER");
  171. b.Property<int?>("IntProperty2")
  172. .HasColumnType("INTEGER");
  173. b.Property<int?>("IntProperty3")
  174. .HasColumnType("INTEGER");
  175. b.Property<int?>("IntProperty4")
  176. .HasColumnType("INTEGER");
  177. b.Property<int?>("IntProperty5")
  178. .HasColumnType("INTEGER");
  179. b.Property<int?>("IntProperty6")
  180. .HasColumnType("INTEGER");
  181. b.Property<int?>("IntProperty7")
  182. .HasColumnType("INTEGER");
  183. b.Property<int?>("IntProperty8")
  184. .HasColumnType("INTEGER");
  185. b.Property<int?>("IntProperty9")
  186. .HasColumnType("INTEGER");
  187. b.Property<DateTime?>("ModifiedTimeStamp")
  188. .HasColumnType("TEXT");
  189. b.Property<string>("Owner")
  190. .IsRequired()
  191. .HasColumnType("TEXT");
  192. b.Property<string>("State")
  193. .HasColumnType("TEXT");
  194. b.Property<string>("StrProperty0")
  195. .HasColumnType("TEXT");
  196. b.Property<string>("StrProperty1")
  197. .HasColumnType("TEXT");
  198. b.Property<string>("StrProperty2")
  199. .HasColumnType("TEXT");
  200. b.Property<string>("StrProperty3")
  201. .HasColumnType("TEXT");
  202. b.Property<string>("StrProperty4")
  203. .HasColumnType("TEXT");
  204. b.Property<string>("StrProperty5")
  205. .HasColumnType("TEXT");
  206. b.Property<string>("StrProperty6")
  207. .HasColumnType("TEXT");
  208. b.Property<string>("StrProperty7")
  209. .HasColumnType("TEXT");
  210. b.Property<string>("StrProperty8")
  211. .HasColumnType("TEXT");
  212. b.Property<string>("StrProperty9")
  213. .HasColumnType("TEXT");
  214. b.Property<DateTime?>("TimeStampProperty0")
  215. .HasColumnType("TEXT");
  216. b.Property<DateTime?>("TimeStampProperty1")
  217. .HasColumnType("TEXT");
  218. b.Property<DateTime?>("TimeStampProperty2")
  219. .HasColumnType("TEXT");
  220. b.Property<DateTime?>("TimeStampProperty3")
  221. .HasColumnType("TEXT");
  222. b.Property<DateTime?>("TimeStampProperty4")
  223. .HasColumnType("TEXT");
  224. b.Property<string>("Type")
  225. .HasColumnType("TEXT");
  226. b.HasKey("Id");
  227. b.HasIndex("CreatedTimeStamp");
  228. b.HasIndex("DoubleProperty0");
  229. b.HasIndex("DoubleProperty1");
  230. b.HasIndex("DoubleProperty2");
  231. b.HasIndex("DoubleProperty3");
  232. b.HasIndex("DoubleProperty4");
  233. b.HasIndex("DoubleProperty5");
  234. b.HasIndex("DoubleProperty6");
  235. b.HasIndex("DoubleProperty7");
  236. b.HasIndex("DoubleProperty8");
  237. b.HasIndex("DoubleProperty9");
  238. b.HasIndex("IntProperty0");
  239. b.HasIndex("IntProperty1");
  240. b.HasIndex("IntProperty2");
  241. b.HasIndex("IntProperty3");
  242. b.HasIndex("IntProperty4");
  243. b.HasIndex("IntProperty5");
  244. b.HasIndex("IntProperty6");
  245. b.HasIndex("IntProperty7");
  246. b.HasIndex("IntProperty8");
  247. b.HasIndex("IntProperty9");
  248. b.HasIndex("ModifiedTimeStamp");
  249. b.HasIndex("Owner");
  250. b.HasIndex("State");
  251. b.HasIndex("StrProperty0");
  252. b.HasIndex("StrProperty1");
  253. b.HasIndex("StrProperty2");
  254. b.HasIndex("StrProperty3");
  255. b.HasIndex("StrProperty4");
  256. b.HasIndex("StrProperty5");
  257. b.HasIndex("StrProperty6");
  258. b.HasIndex("StrProperty7");
  259. b.HasIndex("StrProperty8");
  260. b.HasIndex("StrProperty9");
  261. b.HasIndex("TimeStampProperty0");
  262. b.HasIndex("TimeStampProperty1");
  263. b.HasIndex("TimeStampProperty2");
  264. b.HasIndex("TimeStampProperty3");
  265. b.HasIndex("TimeStampProperty4");
  266. b.HasIndex("Type");
  267. b.ToTable("GenericDatas");
  268. });
  269. modelBuilder.Entity("Edge.Core.Database.Configuration.Models.ProcessorMetaPartsConfigDbModel", b =>
  270. {
  271. b.HasOne("Edge.Core.Database.Configuration.Models.ProcessorMetaConfigDbModel", "ProcessorMetaConfig")
  272. .WithMany("Parts")
  273. .HasForeignKey("ProcessorMetaConfigId")
  274. .OnDelete(DeleteBehavior.Cascade)
  275. .IsRequired();
  276. });
  277. #pragma warning restore 612, 618
  278. }
  279. }
  280. }