WebCMSEntities.cs 72 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910
  1. using System;
  2. using Microsoft.EntityFrameworkCore;
  3. using Microsoft.EntityFrameworkCore.Metadata;
  4. namespace MySystem.SpModels
  5. {
  6. public partial class WebCMSEntities : DbContext
  7. {
  8. public WebCMSEntities()
  9. {
  10. }
  11. public WebCMSEntities(DbContextOptions<WebCMSEntities> options)
  12. : base(options)
  13. {
  14. }
  15. public virtual DbSet<ActivateRecord> ActivateRecord { get; set; }
  16. public virtual DbSet<BindRecord> BindRecord { get; set; }
  17. public virtual DbSet<CustomerTableRecord> CustomerTableRecord { get; set; }
  18. public virtual DbSet<KqActivate> KqActivate { get; set; }
  19. public virtual DbSet<KqActivateCallBack> KqActivateCallBack { get; set; }
  20. public virtual DbSet<KqMerchant> KqMerchant { get; set; }
  21. public virtual DbSet<KqTrade> KqTrade { get; set; }
  22. public virtual DbSet<KqTradeCallBack> KqTradeCallBack { get; set; }
  23. public virtual DbSet<KqTradeFlux> KqTradeFlux { get; set; }
  24. public virtual DbSet<KssBind> KssBind { get; set; }
  25. public virtual DbSet<KssFreeDeposit> KssFreeDeposit { get; set; }
  26. public virtual DbSet<KssMerchant> KssMerchant { get; set; }
  27. public virtual DbSet<KssReturnDeposit> KssReturnDeposit { get; set; }
  28. public virtual DbSet<KssStageRwd> KssStageRwd { get; set; }
  29. public virtual DbSet<KssTradeFirst> KssTradeFirst { get; set; }
  30. public virtual DbSet<Merchants> Merchants { get; set; }
  31. public virtual DbSet<ProfitRecord> ProfitRecord { get; set; }
  32. public virtual DbSet<RightDic> RightDic { get; set; }
  33. public virtual DbSet<SysLog> SysLog { get; set; }
  34. public virtual DbSet<TradeFluxRecord> TradeFluxRecord { get; set; }
  35. public virtual DbSet<TradeRecord> TradeRecord { get; set; }
  36. protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
  37. {
  38. if (!optionsBuilder.IsConfigured)
  39. {
  40. optionsBuilder.UseMySql(Library.ConfigurationManager.AppSettings["SpSqlConnStr"].ToString(), x => x.ServerVersion("5.7.17-mysql"));
  41. }
  42. }
  43. protected override void OnModelCreating(ModelBuilder modelBuilder)
  44. {
  45. modelBuilder.Entity<ActivateRecord>(entity =>
  46. {
  47. entity.Property(e => e.Id).HasColumnType("int(11)");
  48. entity.Property(e => e.ActivateDate).HasColumnType("datetime");
  49. entity.Property(e => e.ActivateStatus)
  50. .HasColumnType("varchar(2)")
  51. .HasCharSet("utf8")
  52. .HasCollation("utf8_general_ci");
  53. entity.Property(e => e.AgentNo)
  54. .HasColumnType("varchar(32)")
  55. .HasCharSet("utf8")
  56. .HasCollation("utf8_general_ci");
  57. entity.Property(e => e.AssessMonth)
  58. .HasColumnType("varchar(8)")
  59. .HasCharSet("utf8")
  60. .HasCollation("utf8_general_ci");
  61. entity.Property(e => e.AssessMonthCount)
  62. .HasColumnType("varchar(8)")
  63. .HasCharSet("utf8")
  64. .HasCollation("utf8_general_ci");
  65. entity.Property(e => e.BizEnterName)
  66. .HasColumnType("varchar(32)")
  67. .HasCharSet("utf8")
  68. .HasCollation("utf8_general_ci");
  69. entity.Property(e => e.BizEnterNo)
  70. .HasColumnType("varchar(16)")
  71. .HasCharSet("utf8")
  72. .HasCollation("utf8_general_ci");
  73. entity.Property(e => e.ChannelSerial)
  74. .HasColumnType("varchar(50)")
  75. .HasCharSet("utf8")
  76. .HasCollation("utf8_general_ci");
  77. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  78. entity.Property(e => e.MerIdcardNo)
  79. .HasColumnType("varchar(18)")
  80. .HasCharSet("utf8")
  81. .HasCollation("utf8_general_ci");
  82. entity.Property(e => e.MerMobile)
  83. .HasColumnType("varchar(32)")
  84. .HasCharSet("utf8")
  85. .HasCollation("utf8_general_ci");
  86. entity.Property(e => e.MerName)
  87. .HasColumnType("varchar(32)")
  88. .HasCharSet("utf8")
  89. .HasCollation("utf8_general_ci");
  90. entity.Property(e => e.MerNo)
  91. .HasColumnType("varchar(32)")
  92. .HasCharSet("utf8")
  93. .HasCollation("utf8_general_ci");
  94. entity.Property(e => e.MerRealName)
  95. .HasColumnType("varchar(16)")
  96. .HasCharSet("utf8")
  97. .HasCollation("utf8_general_ci");
  98. entity.Property(e => e.MerRegDate).HasColumnType("datetime");
  99. entity.Property(e => e.ProductType)
  100. .HasColumnType("varchar(32)")
  101. .HasCharSet("utf8")
  102. .HasCollation("utf8_general_ci");
  103. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  104. entity.Property(e => e.Remark)
  105. .HasColumnType("varchar(64)")
  106. .HasCharSet("utf8")
  107. .HasCollation("utf8_general_ci");
  108. entity.Property(e => e.SeoDescription)
  109. .HasColumnType("mediumtext")
  110. .HasCharSet("utf8")
  111. .HasCollation("utf8_general_ci");
  112. entity.Property(e => e.SeoKeyword)
  113. .HasColumnType("varchar(200)")
  114. .HasCharSet("utf8")
  115. .HasCollation("utf8_general_ci");
  116. entity.Property(e => e.SeoTitle)
  117. .HasColumnType("varchar(100)")
  118. .HasCharSet("utf8")
  119. .HasCollation("utf8_general_ci");
  120. entity.Property(e => e.SnNo)
  121. .HasColumnType("varchar(32)")
  122. .HasCharSet("utf8")
  123. .HasCollation("utf8_general_ci");
  124. entity.Property(e => e.Sort).HasColumnType("int(11)");
  125. entity.Property(e => e.Status).HasColumnType("int(11)");
  126. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  127. });
  128. modelBuilder.Entity<BindRecord>(entity =>
  129. {
  130. entity.Property(e => e.Id).HasColumnType("int(11)");
  131. entity.Property(e => e.AgentName)
  132. .HasColumnType("varchar(64)")
  133. .HasCharSet("utf8")
  134. .HasCollation("utf8_general_ci");
  135. entity.Property(e => e.ChannelSerial)
  136. .HasColumnType("varchar(50)")
  137. .HasCharSet("utf8")
  138. .HasCollation("utf8_general_ci");
  139. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  140. entity.Property(e => e.CreateTime).HasColumnType("datetime");
  141. entity.Property(e => e.MerName)
  142. .HasColumnType("varchar(32)")
  143. .HasCharSet("utf8")
  144. .HasCollation("utf8_general_ci");
  145. entity.Property(e => e.MerNewSnNo)
  146. .HasColumnType("varchar(32)")
  147. .HasCharSet("utf8")
  148. .HasCollation("utf8_general_ci");
  149. entity.Property(e => e.MerNo)
  150. .HasColumnType("varchar(32)")
  151. .HasCharSet("utf8")
  152. .HasCollation("utf8_general_ci");
  153. entity.Property(e => e.MerOperateDate).HasColumnType("datetime");
  154. entity.Property(e => e.MerOperateType)
  155. .HasColumnType("varchar(16)")
  156. .HasCharSet("utf8")
  157. .HasCollation("utf8_general_ci");
  158. entity.Property(e => e.MerSnNo)
  159. .HasColumnType("varchar(32)")
  160. .HasCharSet("utf8")
  161. .HasCollation("utf8_general_ci");
  162. entity.Property(e => e.MerStatus)
  163. .HasColumnType("varchar(16)")
  164. .HasCharSet("utf8")
  165. .HasCollation("utf8_general_ci");
  166. entity.Property(e => e.ProductType)
  167. .HasColumnType("varchar(32)")
  168. .HasCharSet("utf8")
  169. .HasCollation("utf8_general_ci");
  170. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  171. entity.Property(e => e.Remark)
  172. .HasColumnType("varchar(64)")
  173. .HasCharSet("utf8")
  174. .HasCollation("utf8_general_ci");
  175. entity.Property(e => e.SeoDescription)
  176. .HasColumnType("mediumtext")
  177. .HasCharSet("utf8")
  178. .HasCollation("utf8_general_ci");
  179. entity.Property(e => e.SeoKeyword)
  180. .HasColumnType("varchar(200)")
  181. .HasCharSet("utf8")
  182. .HasCollation("utf8_general_ci");
  183. entity.Property(e => e.SeoTitle)
  184. .HasColumnType("varchar(100)")
  185. .HasCharSet("utf8")
  186. .HasCollation("utf8_general_ci");
  187. entity.Property(e => e.Sort).HasColumnType("int(11)");
  188. entity.Property(e => e.Status).HasColumnType("int(11)");
  189. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  190. entity.Property(e => e.UpdateTime).HasColumnType("datetime");
  191. });
  192. modelBuilder.Entity<CustomerTableRecord>(entity =>
  193. {
  194. entity.HasKey(e => e.TableEnName)
  195. .HasName("PRIMARY");
  196. entity.Property(e => e.TableEnName)
  197. .HasColumnType("varchar(30)")
  198. .HasCharSet("utf8")
  199. .HasCollation("utf8_general_ci");
  200. entity.Property(e => e.AddTableDate).HasColumnType("datetime");
  201. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  202. });
  203. modelBuilder.Entity<KqActivate>(entity =>
  204. {
  205. entity.HasKey(e => e.MerNo)
  206. .HasName("PRIMARY");
  207. entity.Property(e => e.MerNo)
  208. .HasColumnType("varchar(32)")
  209. .HasCharSet("utf8")
  210. .HasCollation("utf8_general_ci");
  211. entity.Property(e => e.ActName)
  212. .HasColumnType("varchar(32)")
  213. .HasCharSet("utf8")
  214. .HasCollation("utf8_general_ci");
  215. entity.Property(e => e.ActNo)
  216. .HasColumnType("varchar(32)")
  217. .HasCharSet("utf8")
  218. .HasCollation("utf8_general_ci");
  219. entity.Property(e => e.ActVerifyFlag)
  220. .HasColumnType("varchar(2)")
  221. .HasCharSet("utf8")
  222. .HasCollation("utf8_general_ci");
  223. entity.Property(e => e.ActivateDate).HasColumnType("datetime");
  224. entity.Property(e => e.ActivateStatus)
  225. .HasColumnType("varchar(2)")
  226. .HasCharSet("utf8")
  227. .HasCollation("utf8_general_ci");
  228. entity.Property(e => e.AssessMonth)
  229. .HasColumnType("varchar(8)")
  230. .HasCharSet("utf8")
  231. .HasCollation("utf8_general_ci");
  232. entity.Property(e => e.AssessMonthCount)
  233. .HasColumnType("varchar(8)")
  234. .HasCharSet("utf8")
  235. .HasCollation("utf8_general_ci");
  236. entity.Property(e => e.BizEnterName)
  237. .HasColumnType("varchar(32)")
  238. .HasCharSet("utf8")
  239. .HasCollation("utf8_general_ci");
  240. entity.Property(e => e.BizEnterNo)
  241. .HasColumnType("varchar(16)")
  242. .HasCharSet("utf8")
  243. .HasCollation("utf8_general_ci");
  244. entity.Property(e => e.CreateTime).HasColumnType("datetime");
  245. entity.Property(e => e.MerIdcardNo)
  246. .HasColumnType("varchar(18)")
  247. .HasCharSet("utf8")
  248. .HasCollation("utf8_general_ci");
  249. entity.Property(e => e.MerMobile)
  250. .HasColumnType("varchar(32)")
  251. .HasCharSet("utf8")
  252. .HasCollation("utf8_general_ci");
  253. entity.Property(e => e.MerName)
  254. .HasColumnType("varchar(32)")
  255. .HasCharSet("utf8")
  256. .HasCollation("utf8_general_ci");
  257. entity.Property(e => e.MerRealName)
  258. .HasColumnType("varchar(16)")
  259. .HasCharSet("utf8")
  260. .HasCollation("utf8_general_ci");
  261. entity.Property(e => e.MerRegDate).HasColumnType("datetime");
  262. entity.Property(e => e.MerSnNo)
  263. .HasColumnType("varchar(32)")
  264. .HasCharSet("utf8")
  265. .HasCollation("utf8_general_ci");
  266. entity.Property(e => e.ProductType)
  267. .HasColumnType("varchar(32)")
  268. .HasCharSet("utf8")
  269. .HasCollation("utf8_general_ci");
  270. entity.Property(e => e.Remark)
  271. .HasColumnType("varchar(64)")
  272. .HasCharSet("utf8")
  273. .HasCollation("utf8_general_ci");
  274. entity.Property(e => e.SourceType)
  275. .HasColumnType("varchar(16)")
  276. .HasCharSet("utf8")
  277. .HasCollation("utf8_general_ci");
  278. entity.Property(e => e.UpdateTime).HasColumnType("datetime");
  279. });
  280. modelBuilder.Entity<KqActivateCallBack>(entity =>
  281. {
  282. entity.HasKey(e => e.MerNo)
  283. .HasName("PRIMARY");
  284. entity.Property(e => e.MerNo)
  285. .HasColumnType("varchar(32)")
  286. .HasCharSet("utf8")
  287. .HasCollation("utf8_general_ci");
  288. entity.Property(e => e.ActVerifyFlag)
  289. .HasColumnType("varchar(2)")
  290. .HasCharSet("utf8")
  291. .HasCollation("utf8_general_ci");
  292. entity.Property(e => e.ActivateDate).HasColumnType("datetime");
  293. entity.Property(e => e.ActivateStatus)
  294. .HasColumnType("varchar(2)")
  295. .HasCharSet("utf8")
  296. .HasCollation("utf8_general_ci");
  297. entity.Property(e => e.AssessMonth)
  298. .HasColumnType("varchar(8)")
  299. .HasCharSet("utf8")
  300. .HasCollation("utf8_general_ci");
  301. entity.Property(e => e.AssessMonthCount)
  302. .HasColumnType("varchar(8)")
  303. .HasCharSet("utf8")
  304. .HasCollation("utf8_general_ci");
  305. entity.Property(e => e.BizEnterName)
  306. .HasColumnType("varchar(32)")
  307. .HasCharSet("utf8")
  308. .HasCollation("utf8_general_ci");
  309. entity.Property(e => e.BizEnterNo)
  310. .HasColumnType("varchar(16)")
  311. .HasCharSet("utf8")
  312. .HasCollation("utf8_general_ci");
  313. entity.Property(e => e.CreateTime).HasColumnType("datetime");
  314. entity.Property(e => e.MerIdcardNo)
  315. .HasColumnType("varchar(18)")
  316. .HasCharSet("utf8")
  317. .HasCollation("utf8_general_ci");
  318. entity.Property(e => e.MerMobile)
  319. .HasColumnType("varchar(32)")
  320. .HasCharSet("utf8")
  321. .HasCollation("utf8_general_ci");
  322. entity.Property(e => e.MerName)
  323. .HasColumnType("varchar(32)")
  324. .HasCharSet("utf8")
  325. .HasCollation("utf8_general_ci");
  326. entity.Property(e => e.MerRealName)
  327. .HasColumnType("varchar(16)")
  328. .HasCharSet("utf8")
  329. .HasCollation("utf8_general_ci");
  330. entity.Property(e => e.MerRegDate).HasColumnType("datetime");
  331. entity.Property(e => e.MerSnNo)
  332. .HasColumnType("varchar(32)")
  333. .HasCharSet("utf8")
  334. .HasCollation("utf8_general_ci");
  335. entity.Property(e => e.ProductType)
  336. .HasColumnType("varchar(32)")
  337. .HasCharSet("utf8")
  338. .HasCollation("utf8_general_ci");
  339. entity.Property(e => e.Remark)
  340. .HasColumnType("varchar(64)")
  341. .HasCharSet("utf8")
  342. .HasCollation("utf8_general_ci");
  343. entity.Property(e => e.UpdateTime).HasColumnType("datetime");
  344. });
  345. modelBuilder.Entity<KqMerchant>(entity =>
  346. {
  347. entity.HasKey(e => e.MerNo)
  348. .HasName("PRIMARY");
  349. entity.Property(e => e.MerNo)
  350. .HasColumnType("varchar(32)")
  351. .HasCharSet("utf8")
  352. .HasCollation("utf8_general_ci");
  353. entity.Property(e => e.BizEnterName)
  354. .HasColumnType("varchar(32)")
  355. .HasCharSet("utf8")
  356. .HasCollation("utf8_general_ci");
  357. entity.Property(e => e.BizEnterNo)
  358. .HasColumnType("varchar(16)")
  359. .HasCharSet("utf8")
  360. .HasCollation("utf8_general_ci");
  361. entity.Property(e => e.City)
  362. .HasColumnType("varchar(32)")
  363. .HasCharSet("utf8")
  364. .HasCollation("utf8_general_ci");
  365. entity.Property(e => e.CreateTime).HasColumnType("datetime");
  366. entity.Property(e => e.MerBindDate).HasColumnType("datetime");
  367. entity.Property(e => e.MerIdcardNo)
  368. .HasColumnType("varchar(18)")
  369. .HasCharSet("utf8")
  370. .HasCollation("utf8_general_ci");
  371. entity.Property(e => e.MerMobile)
  372. .HasColumnType("varchar(32)")
  373. .HasCharSet("utf8")
  374. .HasCollation("utf8_general_ci");
  375. entity.Property(e => e.MerName)
  376. .HasColumnType("varchar(32)")
  377. .HasCharSet("utf8")
  378. .HasCollation("utf8_general_ci");
  379. entity.Property(e => e.MerRealName)
  380. .HasColumnType("varchar(16)")
  381. .HasCharSet("utf8")
  382. .HasCollation("utf8_general_ci");
  383. entity.Property(e => e.MerRegDate).HasColumnType("datetime");
  384. entity.Property(e => e.MerSnNo)
  385. .HasColumnType("varchar(32)")
  386. .HasCharSet("utf8")
  387. .HasCollation("utf8_general_ci");
  388. entity.Property(e => e.ProductType)
  389. .HasColumnType("varchar(32)")
  390. .HasCharSet("utf8")
  391. .HasCollation("utf8_general_ci");
  392. entity.Property(e => e.Province)
  393. .HasColumnType("varchar(32)")
  394. .HasCharSet("utf8")
  395. .HasCollation("utf8_general_ci");
  396. entity.Property(e => e.Remark)
  397. .HasColumnType("varchar(64)")
  398. .HasCharSet("utf8")
  399. .HasCollation("utf8_general_ci");
  400. entity.Property(e => e.SourceType)
  401. .HasColumnType("varchar(16)")
  402. .HasCharSet("utf8")
  403. .HasCollation("utf8_general_ci");
  404. entity.Property(e => e.UpdateTime).HasColumnType("datetime");
  405. });
  406. modelBuilder.Entity<KqTrade>(entity =>
  407. {
  408. entity.HasKey(e => e.MerNo)
  409. .HasName("PRIMARY");
  410. entity.Property(e => e.MerNo)
  411. .HasColumnType("varchar(32)")
  412. .HasCharSet("utf8")
  413. .HasCollation("utf8_general_ci");
  414. entity.Property(e => e.BankCardNo)
  415. .HasColumnType("varchar(32)")
  416. .HasCharSet("utf8")
  417. .HasCollation("utf8_general_ci");
  418. entity.Property(e => e.BankCardType)
  419. .HasColumnType("varchar(16)")
  420. .HasCharSet("utf8")
  421. .HasCollation("utf8_general_ci");
  422. entity.Property(e => e.BillType)
  423. .HasColumnType("varchar(32)")
  424. .HasCharSet("utf8")
  425. .HasCollation("utf8_general_ci");
  426. entity.Property(e => e.BizEnterName)
  427. .HasColumnType("varchar(64)")
  428. .HasCharSet("utf8")
  429. .HasCollation("utf8_general_ci");
  430. entity.Property(e => e.BizEnterNo)
  431. .HasColumnType("varchar(32)")
  432. .HasCharSet("utf8")
  433. .HasCollation("utf8_general_ci");
  434. entity.Property(e => e.CreateTime).HasColumnType("datetime");
  435. entity.Property(e => e.DigAmt).HasColumnType("decimal(18,2)");
  436. entity.Property(e => e.DigAmtFlag)
  437. .HasColumnType("varchar(4)")
  438. .HasCharSet("utf8")
  439. .HasCollation("utf8_general_ci");
  440. entity.Property(e => e.DigStatus)
  441. .HasColumnType("varchar(16)")
  442. .HasCharSet("utf8")
  443. .HasCollation("utf8_general_ci");
  444. entity.Property(e => e.FeeAmount).HasColumnType("decimal(18,2)");
  445. entity.Property(e => e.InputModel)
  446. .HasColumnType("varchar(32)")
  447. .HasCharSet("utf8")
  448. .HasCollation("utf8_general_ci");
  449. entity.Property(e => e.KqTradeSeq)
  450. .HasColumnType("varchar(32)")
  451. .HasCharSet("utf8")
  452. .HasCollation("utf8_general_ci");
  453. entity.Property(e => e.MerName)
  454. .HasColumnType("varchar(32)")
  455. .HasCharSet("utf8")
  456. .HasCollation("utf8_general_ci");
  457. entity.Property(e => e.ProductType)
  458. .HasColumnType("varchar(32)")
  459. .HasCharSet("utf8")
  460. .HasCollation("utf8_general_ci");
  461. entity.Property(e => e.Remark)
  462. .HasColumnType("varchar(64)")
  463. .HasCharSet("utf8")
  464. .HasCollation("utf8_general_ci");
  465. entity.Property(e => e.S0settleStatus)
  466. .HasColumnName("S0SettleStatus")
  467. .HasColumnType("varchar(16)")
  468. .HasCharSet("utf8")
  469. .HasCollation("utf8_general_ci");
  470. entity.Property(e => e.SettleCostAmt).HasColumnType("decimal(18,2)");
  471. entity.Property(e => e.SettleFee).HasColumnType("decimal(18,2)");
  472. entity.Property(e => e.SettleFeeCostAmt).HasColumnType("decimal(18,2)");
  473. entity.Property(e => e.SettleFeeRebateAmt).HasColumnType("decimal(18,2)");
  474. entity.Property(e => e.SettleMethod)
  475. .HasColumnType("varchar(16)")
  476. .HasCharSet("utf8")
  477. .HasCollation("utf8_general_ci");
  478. entity.Property(e => e.SettleRebateAmt).HasColumnType("decimal(18,2)");
  479. entity.Property(e => e.SettleTotalFee).HasColumnType("decimal(18,2)");
  480. entity.Property(e => e.SmallDouble)
  481. .HasColumnType("varchar(4)")
  482. .HasCharSet("utf8")
  483. .HasCollation("utf8_general_ci");
  484. entity.Property(e => e.SourceType)
  485. .HasColumnType("varchar(16)")
  486. .HasCharSet("utf8")
  487. .HasCollation("utf8_general_ci");
  488. entity.Property(e => e.TotalCostAmt).HasColumnType("decimal(18,2)");
  489. entity.Property(e => e.TotalRebateAmt).HasColumnType("decimal(18,2)");
  490. entity.Property(e => e.TradeAmount).HasColumnType("decimal(18,2)");
  491. entity.Property(e => e.TradeDate)
  492. .HasColumnType("varchar(8)")
  493. .HasCharSet("utf8")
  494. .HasCollation("utf8_general_ci");
  495. entity.Property(e => e.TradeSnNo)
  496. .HasColumnType("varchar(32)")
  497. .HasCharSet("utf8")
  498. .HasCollation("utf8_general_ci");
  499. entity.Property(e => e.TradeStatus)
  500. .HasColumnType("varchar(16)")
  501. .HasCharSet("utf8")
  502. .HasCollation("utf8_general_ci");
  503. entity.Property(e => e.TradeTime)
  504. .HasColumnType("varchar(8)")
  505. .HasCharSet("utf8")
  506. .HasCollation("utf8_general_ci");
  507. entity.Property(e => e.UpdateTime).HasColumnType("datetime");
  508. });
  509. modelBuilder.Entity<KqTradeCallBack>(entity =>
  510. {
  511. entity.HasKey(e => e.MerNo)
  512. .HasName("PRIMARY");
  513. entity.Property(e => e.MerNo)
  514. .HasColumnType("varchar(32)")
  515. .HasCharSet("utf8")
  516. .HasCollation("utf8_general_ci");
  517. entity.Property(e => e.BankAuthCode)
  518. .HasColumnType("varchar(32)")
  519. .HasCharSet("utf8")
  520. .HasCollation("utf8_general_ci");
  521. entity.Property(e => e.BankCardType)
  522. .HasColumnType("varchar(16)")
  523. .HasCharSet("utf8")
  524. .HasCollation("utf8_general_ci");
  525. entity.Property(e => e.CreateTime).HasColumnType("datetime");
  526. entity.Property(e => e.DeviceType)
  527. .HasColumnType("varchar(16)")
  528. .HasCharSet("utf8")
  529. .HasCollation("utf8_general_ci");
  530. entity.Property(e => e.DigAmt).HasColumnType("decimal(18,2)");
  531. entity.Property(e => e.DigAmtFlag)
  532. .HasColumnType("varchar(4)")
  533. .HasCharSet("utf8")
  534. .HasCollation("utf8_general_ci");
  535. entity.Property(e => e.DiscountRateFlag)
  536. .HasColumnType("varchar(16)")
  537. .HasCharSet("utf8")
  538. .HasCollation("utf8_general_ci");
  539. entity.Property(e => e.ErrorCode)
  540. .HasColumnType("varchar(16)")
  541. .HasCharSet("utf8")
  542. .HasCollation("utf8_general_ci");
  543. entity.Property(e => e.ErrorMsg)
  544. .HasColumnType("varchar(32)")
  545. .HasCharSet("utf8")
  546. .HasCollation("utf8_general_ci");
  547. entity.Property(e => e.IsStoreCashier)
  548. .HasColumnType("varchar(16)")
  549. .HasCharSet("utf8")
  550. .HasCollation("utf8_general_ci");
  551. entity.Property(e => e.MerMobile)
  552. .HasColumnType("varchar(11)")
  553. .HasCharSet("utf8")
  554. .HasCollation("utf8_general_ci");
  555. entity.Property(e => e.MerName)
  556. .HasColumnType("varchar(32)")
  557. .HasCharSet("utf8")
  558. .HasCollation("utf8_general_ci");
  559. entity.Property(e => e.ProductType)
  560. .HasColumnType("varchar(32)")
  561. .HasCharSet("utf8")
  562. .HasCollation("utf8_general_ci");
  563. entity.Property(e => e.ReceiptType)
  564. .HasColumnType("varchar(16)")
  565. .HasCharSet("utf8")
  566. .HasCollation("utf8_general_ci");
  567. entity.Property(e => e.Remark)
  568. .HasColumnType("varchar(64)")
  569. .HasCharSet("utf8")
  570. .HasCollation("utf8_general_ci");
  571. entity.Property(e => e.SerEntryMode)
  572. .HasColumnType("varchar(32)")
  573. .HasCharSet("utf8")
  574. .HasCollation("utf8_general_ci");
  575. entity.Property(e => e.TradeAmount).HasColumnType("decimal(18,2)");
  576. entity.Property(e => e.TradeDate)
  577. .HasColumnType("varchar(8)")
  578. .HasCharSet("utf8")
  579. .HasCollation("utf8_general_ci");
  580. entity.Property(e => e.TradeReferNo)
  581. .HasColumnType("varchar(32)")
  582. .HasCharSet("utf8")
  583. .HasCollation("utf8_general_ci");
  584. entity.Property(e => e.TradeSnNo)
  585. .HasColumnType("varchar(32)")
  586. .HasCharSet("utf8")
  587. .HasCollation("utf8_general_ci");
  588. entity.Property(e => e.TradeStatus)
  589. .HasColumnName("Trade_status")
  590. .HasColumnType("varchar(16)")
  591. .HasCharSet("utf8")
  592. .HasCollation("utf8_general_ci");
  593. entity.Property(e => e.TradeTime)
  594. .HasColumnType("varchar(8)")
  595. .HasCharSet("utf8")
  596. .HasCollation("utf8_general_ci");
  597. entity.Property(e => e.TradeType)
  598. .HasColumnType("varchar(32)")
  599. .HasCharSet("utf8")
  600. .HasCollation("utf8_general_ci");
  601. entity.Property(e => e.UpdateTime).HasColumnType("datetime");
  602. });
  603. modelBuilder.Entity<KqTradeFlux>(entity =>
  604. {
  605. entity.HasKey(e => e.MerNo)
  606. .HasName("PRIMARY");
  607. entity.Property(e => e.MerNo)
  608. .HasColumnType("varchar(32)")
  609. .HasCharSet("utf8")
  610. .HasCollation("utf8_general_ci");
  611. entity.Property(e => e.BankCardNo)
  612. .HasColumnType("varchar(32)")
  613. .HasCharSet("utf8")
  614. .HasCollation("utf8_general_ci");
  615. entity.Property(e => e.BankCardType)
  616. .HasColumnType("varchar(16)")
  617. .HasCharSet("utf8")
  618. .HasCollation("utf8_general_ci");
  619. entity.Property(e => e.BillType)
  620. .HasColumnType("varchar(32)")
  621. .HasCharSet("utf8")
  622. .HasCollation("utf8_general_ci");
  623. entity.Property(e => e.BizEnterName)
  624. .HasColumnType("varchar(64)")
  625. .HasCharSet("utf8")
  626. .HasCollation("utf8_general_ci");
  627. entity.Property(e => e.BizEnterNo)
  628. .HasColumnType("varchar(32)")
  629. .HasCharSet("utf8")
  630. .HasCollation("utf8_general_ci");
  631. entity.Property(e => e.CreateTime).HasColumnType("datetime");
  632. entity.Property(e => e.DeviceNetwork)
  633. .HasColumnType("varchar(32)")
  634. .HasCharSet("utf8")
  635. .HasCollation("utf8_general_ci");
  636. entity.Property(e => e.DigAmt).HasColumnType("decimal(18,2)");
  637. entity.Property(e => e.DigAmtFlag)
  638. .HasColumnType("varchar(4)")
  639. .HasCharSet("utf8")
  640. .HasCollation("utf8_general_ci");
  641. entity.Property(e => e.FeeAmount).HasColumnType("decimal(18,2)");
  642. entity.Property(e => e.InputModel)
  643. .HasColumnType("varchar(32)")
  644. .HasCharSet("utf8")
  645. .HasCollation("utf8_general_ci");
  646. entity.Property(e => e.KqTradeSeq)
  647. .HasColumnType("varchar(32)")
  648. .HasCharSet("utf8")
  649. .HasCollation("utf8_general_ci");
  650. entity.Property(e => e.MerName)
  651. .HasColumnType("varchar(32)")
  652. .HasCharSet("utf8")
  653. .HasCollation("utf8_general_ci");
  654. entity.Property(e => e.ProductType)
  655. .HasColumnType("varchar(32)")
  656. .HasCharSet("utf8")
  657. .HasCollation("utf8_general_ci");
  658. entity.Property(e => e.Remark)
  659. .HasColumnType("varchar(64)")
  660. .HasCharSet("utf8")
  661. .HasCollation("utf8_general_ci");
  662. entity.Property(e => e.SettleFee).HasColumnType("decimal(18,2)");
  663. entity.Property(e => e.SettleMethod)
  664. .HasColumnType("varchar(16)")
  665. .HasCharSet("utf8")
  666. .HasCollation("utf8_general_ci");
  667. entity.Property(e => e.SmallDouble)
  668. .HasColumnType("varchar(4)")
  669. .HasCharSet("utf8")
  670. .HasCollation("utf8_general_ci");
  671. entity.Property(e => e.SourceType)
  672. .HasColumnType("varchar(16)")
  673. .HasCharSet("utf8")
  674. .HasCollation("utf8_general_ci");
  675. entity.Property(e => e.TerminalNo)
  676. .HasColumnType("varchar(32)")
  677. .HasCharSet("utf8")
  678. .HasCollation("utf8_general_ci");
  679. entity.Property(e => e.TradeAmount).HasColumnType("decimal(18,2)");
  680. entity.Property(e => e.TradeDate)
  681. .HasColumnType("varchar(8)")
  682. .HasCharSet("utf8")
  683. .HasCollation("utf8_general_ci");
  684. entity.Property(e => e.TradeSnNo)
  685. .HasColumnType("varchar(32)")
  686. .HasCharSet("utf8")
  687. .HasCollation("utf8_general_ci");
  688. entity.Property(e => e.TradeStatus)
  689. .HasColumnType("varchar(16)")
  690. .HasCharSet("utf8")
  691. .HasCollation("utf8_general_ci");
  692. entity.Property(e => e.TradeTime)
  693. .HasColumnType("varchar(8)")
  694. .HasCharSet("utf8")
  695. .HasCollation("utf8_general_ci");
  696. entity.Property(e => e.UpdateTime).HasColumnType("datetime");
  697. });
  698. modelBuilder.Entity<KssBind>(entity =>
  699. {
  700. entity.HasKey(e => e.MerNo)
  701. .HasName("PRIMARY");
  702. entity.Property(e => e.MerNo)
  703. .HasColumnType("varchar(32)")
  704. .HasCharSet("utf8")
  705. .HasCollation("utf8_general_ci");
  706. entity.Property(e => e.AgentName)
  707. .HasColumnType("varchar(64)")
  708. .HasCharSet("utf8")
  709. .HasCollation("utf8_general_ci");
  710. entity.Property(e => e.CreateTime).HasColumnType("datetime");
  711. entity.Property(e => e.MerName)
  712. .HasColumnType("varchar(32)")
  713. .HasCharSet("utf8")
  714. .HasCollation("utf8_general_ci");
  715. entity.Property(e => e.MerNewSnNo)
  716. .HasColumnType("varchar(32)")
  717. .HasCharSet("utf8")
  718. .HasCollation("utf8_general_ci");
  719. entity.Property(e => e.MerOperateDate).HasColumnType("datetime");
  720. entity.Property(e => e.MerOperateType)
  721. .HasColumnType("varchar(16)")
  722. .HasCharSet("utf8")
  723. .HasCollation("utf8_general_ci");
  724. entity.Property(e => e.MerSnNo)
  725. .HasColumnType("varchar(32)")
  726. .HasCharSet("utf8")
  727. .HasCollation("utf8_general_ci");
  728. entity.Property(e => e.MerStatus)
  729. .HasColumnType("varchar(16)")
  730. .HasCharSet("utf8")
  731. .HasCollation("utf8_general_ci");
  732. entity.Property(e => e.ProductType)
  733. .HasColumnType("varchar(32)")
  734. .HasCharSet("utf8")
  735. .HasCollation("utf8_general_ci");
  736. entity.Property(e => e.Remark)
  737. .HasColumnType("varchar(64)")
  738. .HasCharSet("utf8")
  739. .HasCollation("utf8_general_ci");
  740. entity.Property(e => e.UpdateTime).HasColumnType("datetime");
  741. });
  742. modelBuilder.Entity<KssFreeDeposit>(entity =>
  743. {
  744. entity.HasKey(e => e.MerNo)
  745. .HasName("PRIMARY");
  746. entity.Property(e => e.MerNo)
  747. .HasColumnType("varchar(32)")
  748. .HasCharSet("utf8")
  749. .HasCollation("utf8_general_ci");
  750. entity.Property(e => e.ActName)
  751. .HasColumnType("varchar(32)")
  752. .HasCharSet("utf8")
  753. .HasCollation("utf8_general_ci");
  754. entity.Property(e => e.ActNo)
  755. .HasColumnType("varchar(32)")
  756. .HasCharSet("utf8")
  757. .HasCollation("utf8_general_ci");
  758. entity.Property(e => e.AgentName)
  759. .HasColumnType("varchar(64)")
  760. .HasCharSet("utf8")
  761. .HasCollation("utf8_general_ci");
  762. entity.Property(e => e.CreateTime).HasColumnType("datetime");
  763. entity.Property(e => e.MerBindDate).HasColumnType("datetime");
  764. entity.Property(e => e.MerName)
  765. .HasColumnType("varchar(32)")
  766. .HasCharSet("utf8")
  767. .HasCollation("utf8_general_ci");
  768. entity.Property(e => e.MerSnNo)
  769. .HasColumnType("varchar(32)")
  770. .HasCharSet("utf8")
  771. .HasCollation("utf8_general_ci");
  772. entity.Property(e => e.NewFlag)
  773. .HasColumnType("varchar(4)")
  774. .HasCharSet("utf8")
  775. .HasCollation("utf8_general_ci");
  776. entity.Property(e => e.ProductType)
  777. .HasColumnType("varchar(32)")
  778. .HasCharSet("utf8")
  779. .HasCollation("utf8_general_ci");
  780. entity.Property(e => e.Remark)
  781. .HasColumnType("varchar(64)")
  782. .HasCharSet("utf8")
  783. .HasCollation("utf8_general_ci");
  784. entity.Property(e => e.UpdateTime).HasColumnType("datetime");
  785. });
  786. modelBuilder.Entity<KssMerchant>(entity =>
  787. {
  788. entity.HasKey(e => e.MerNo)
  789. .HasName("PRIMARY");
  790. entity.Property(e => e.MerNo)
  791. .HasColumnType("varchar(32)")
  792. .HasCharSet("utf8")
  793. .HasCollation("utf8_general_ci");
  794. entity.Property(e => e.AgentName)
  795. .HasColumnType("varchar(64)")
  796. .HasCharSet("utf8")
  797. .HasCollation("utf8_general_ci");
  798. entity.Property(e => e.City)
  799. .HasColumnType("varchar(32)")
  800. .HasCharSet("utf8")
  801. .HasCollation("utf8_general_ci");
  802. entity.Property(e => e.CreateTime).HasColumnType("datetime");
  803. entity.Property(e => e.MerAuditDate).HasColumnType("datetime");
  804. entity.Property(e => e.MerIdcardNo)
  805. .HasColumnType("varchar(18)")
  806. .HasCharSet("utf8")
  807. .HasCollation("utf8_general_ci");
  808. entity.Property(e => e.MerMobile)
  809. .HasColumnType("varchar(11)")
  810. .HasCharSet("utf8")
  811. .HasCollation("utf8_general_ci");
  812. entity.Property(e => e.MerName)
  813. .HasColumnType("varchar(32)")
  814. .HasCharSet("utf8")
  815. .HasCollation("utf8_general_ci");
  816. entity.Property(e => e.MerRealName)
  817. .HasColumnType("varchar(16)")
  818. .HasCharSet("utf8")
  819. .HasCollation("utf8_general_ci");
  820. entity.Property(e => e.MerRegDate).HasColumnType("datetime");
  821. entity.Property(e => e.MerStatus)
  822. .HasColumnType("varchar(16)")
  823. .HasCharSet("utf8")
  824. .HasCollation("utf8_general_ci");
  825. entity.Property(e => e.ProductType)
  826. .HasColumnType("varchar(32)")
  827. .HasCharSet("utf8")
  828. .HasCollation("utf8_general_ci");
  829. entity.Property(e => e.Province)
  830. .HasColumnType("varchar(32)")
  831. .HasCharSet("utf8")
  832. .HasCollation("utf8_general_ci");
  833. entity.Property(e => e.Remark)
  834. .HasColumnType("varchar(64)")
  835. .HasCharSet("utf8")
  836. .HasCollation("utf8_general_ci");
  837. entity.Property(e => e.UpdateTime).HasColumnType("datetime");
  838. });
  839. modelBuilder.Entity<KssReturnDeposit>(entity =>
  840. {
  841. entity.HasKey(e => e.MerNo)
  842. .HasName("PRIMARY");
  843. entity.Property(e => e.MerNo)
  844. .HasColumnType("varchar(32)")
  845. .HasCharSet("utf8")
  846. .HasCollation("utf8_general_ci");
  847. entity.Property(e => e.ActName)
  848. .HasColumnType("varchar(32)")
  849. .HasCharSet("utf8")
  850. .HasCollation("utf8_general_ci");
  851. entity.Property(e => e.ActNo)
  852. .HasColumnType("varchar(32)")
  853. .HasCharSet("utf8")
  854. .HasCollation("utf8_general_ci");
  855. entity.Property(e => e.AgentName)
  856. .HasColumnType("varchar(64)")
  857. .HasCharSet("utf8")
  858. .HasCollation("utf8_general_ci");
  859. entity.Property(e => e.CreateTime).HasColumnType("datetime");
  860. entity.Property(e => e.IntervalDay).HasColumnType("int(11)");
  861. entity.Property(e => e.MerDisposeDate).HasColumnType("datetime");
  862. entity.Property(e => e.MerName)
  863. .HasColumnType("varchar(32)")
  864. .HasCharSet("utf8")
  865. .HasCollation("utf8_general_ci");
  866. entity.Property(e => e.MerSnNo)
  867. .HasColumnType("varchar(32)")
  868. .HasCharSet("utf8")
  869. .HasCollation("utf8_general_ci");
  870. entity.Property(e => e.MerStdDate).HasColumnType("datetime");
  871. entity.Property(e => e.ProductType)
  872. .HasColumnType("varchar(32)")
  873. .HasCharSet("utf8")
  874. .HasCollation("utf8_general_ci");
  875. entity.Property(e => e.Remark)
  876. .HasColumnType("varchar(64)")
  877. .HasCharSet("utf8")
  878. .HasCollation("utf8_general_ci");
  879. entity.Property(e => e.RetAmount).HasColumnType("decimal(18,2)");
  880. entity.Property(e => e.RetFlag)
  881. .HasColumnType("varchar(4)")
  882. .HasCharSet("utf8")
  883. .HasCollation("utf8_general_ci");
  884. entity.Property(e => e.RetOrderNo)
  885. .HasColumnType("varchar(32)")
  886. .HasCharSet("utf8")
  887. .HasCollation("utf8_general_ci");
  888. entity.Property(e => e.UpdateTime).HasColumnType("datetime");
  889. });
  890. modelBuilder.Entity<KssStageRwd>(entity =>
  891. {
  892. entity.HasKey(e => e.MerNo)
  893. .HasName("PRIMARY");
  894. entity.Property(e => e.MerNo)
  895. .HasColumnType("varchar(32)")
  896. .HasCharSet("utf8")
  897. .HasCollation("utf8_general_ci");
  898. entity.Property(e => e.ActName)
  899. .HasColumnType("varchar(32)")
  900. .HasCharSet("utf8")
  901. .HasCollation("utf8_general_ci");
  902. entity.Property(e => e.ActNo)
  903. .HasColumnType("varchar(32)")
  904. .HasCharSet("utf8")
  905. .HasCollation("utf8_general_ci");
  906. entity.Property(e => e.AgentName)
  907. .HasColumnType("varchar(64)")
  908. .HasCharSet("utf8")
  909. .HasCollation("utf8_general_ci");
  910. entity.Property(e => e.CreateTime).HasColumnType("datetime");
  911. entity.Property(e => e.MerBindDate).HasColumnType("datetime");
  912. entity.Property(e => e.MerName)
  913. .HasColumnType("varchar(32)")
  914. .HasCharSet("utf8")
  915. .HasCollation("utf8_general_ci");
  916. entity.Property(e => e.MerSnNo)
  917. .HasColumnType("varchar(32)")
  918. .HasCharSet("utf8")
  919. .HasCollation("utf8_general_ci");
  920. entity.Property(e => e.MerStdDate).HasColumnType("datetime");
  921. entity.Property(e => e.MerStdStage)
  922. .HasColumnType("varchar(16)")
  923. .HasCharSet("utf8")
  924. .HasCollation("utf8_general_ci");
  925. entity.Property(e => e.MerStdStatus)
  926. .HasColumnType("varchar(4)")
  927. .HasCharSet("utf8")
  928. .HasCollation("utf8_general_ci");
  929. entity.Property(e => e.NewFlag)
  930. .HasColumnType("varchar(4)")
  931. .HasCharSet("utf8")
  932. .HasCollation("utf8_general_ci");
  933. entity.Property(e => e.ProductType)
  934. .HasColumnType("varchar(32)")
  935. .HasCharSet("utf8")
  936. .HasCollation("utf8_general_ci");
  937. entity.Property(e => e.Remark)
  938. .HasColumnType("varchar(64)")
  939. .HasCharSet("utf8")
  940. .HasCollation("utf8_general_ci");
  941. entity.Property(e => e.UpdateTime).HasColumnType("datetime");
  942. });
  943. modelBuilder.Entity<KssTradeFirst>(entity =>
  944. {
  945. entity.HasKey(e => e.MerNo)
  946. .HasName("PRIMARY");
  947. entity.Property(e => e.MerNo)
  948. .HasColumnType("varchar(32)")
  949. .HasCharSet("utf8")
  950. .HasCollation("utf8_general_ci");
  951. entity.Property(e => e.ActName)
  952. .HasColumnType("varchar(32)")
  953. .HasCharSet("utf8")
  954. .HasCollation("utf8_general_ci");
  955. entity.Property(e => e.ActNo)
  956. .HasColumnType("varchar(32)")
  957. .HasCharSet("utf8")
  958. .HasCollation("utf8_general_ci");
  959. entity.Property(e => e.AgentName)
  960. .HasColumnType("varchar(64)")
  961. .HasCharSet("utf8")
  962. .HasCollation("utf8_general_ci");
  963. entity.Property(e => e.CreateTime).HasColumnType("datetime");
  964. entity.Property(e => e.MerBindDate).HasColumnType("datetime");
  965. entity.Property(e => e.MerName)
  966. .HasColumnType("varchar(32)")
  967. .HasCharSet("utf8")
  968. .HasCollation("utf8_general_ci");
  969. entity.Property(e => e.MerSnNo)
  970. .HasColumnType("varchar(32)")
  971. .HasCharSet("utf8")
  972. .HasCollation("utf8_general_ci");
  973. entity.Property(e => e.MerStdDate).HasColumnType("datetime");
  974. entity.Property(e => e.MerStdStatus)
  975. .HasColumnType("varchar(4)")
  976. .HasCharSet("utf8")
  977. .HasCollation("utf8_general_ci");
  978. entity.Property(e => e.NewFlag)
  979. .HasColumnType("varchar(4)")
  980. .HasCharSet("utf8")
  981. .HasCollation("utf8_general_ci");
  982. entity.Property(e => e.ProductType)
  983. .HasColumnType("varchar(32)")
  984. .HasCharSet("utf8")
  985. .HasCollation("utf8_general_ci");
  986. entity.Property(e => e.Remark)
  987. .HasColumnType("varchar(64)")
  988. .HasCharSet("utf8")
  989. .HasCollation("utf8_general_ci");
  990. entity.Property(e => e.UpdateTime).HasColumnType("datetime");
  991. });
  992. modelBuilder.Entity<Merchants>(entity =>
  993. {
  994. entity.Property(e => e.Id).HasColumnType("int(11)");
  995. entity.Property(e => e.AgentName)
  996. .HasColumnType("varchar(64)")
  997. .HasCharSet("utf8")
  998. .HasCollation("utf8_general_ci");
  999. entity.Property(e => e.AgentNo)
  1000. .HasColumnType("varchar(32)")
  1001. .HasCharSet("utf8")
  1002. .HasCollation("utf8_general_ci");
  1003. entity.Property(e => e.City)
  1004. .HasColumnType("varchar(32)")
  1005. .HasCharSet("utf8")
  1006. .HasCollation("utf8_general_ci");
  1007. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1008. entity.Property(e => e.CreateTime).HasColumnType("datetime");
  1009. entity.Property(e => e.MerAuditDate).HasColumnType("datetime");
  1010. entity.Property(e => e.MerIdcardNo)
  1011. .HasColumnType("varchar(18)")
  1012. .HasCharSet("utf8")
  1013. .HasCollation("utf8_general_ci");
  1014. entity.Property(e => e.MerMobile)
  1015. .HasColumnType("varchar(11)")
  1016. .HasCharSet("utf8")
  1017. .HasCollation("utf8_general_ci");
  1018. entity.Property(e => e.MerName)
  1019. .HasColumnType("varchar(32)")
  1020. .HasCharSet("utf8")
  1021. .HasCollation("utf8_general_ci");
  1022. entity.Property(e => e.MerNo)
  1023. .HasColumnType("varchar(32)")
  1024. .HasCharSet("utf8")
  1025. .HasCollation("utf8_general_ci");
  1026. entity.Property(e => e.MerRealName)
  1027. .HasColumnType("varchar(16)")
  1028. .HasCharSet("utf8")
  1029. .HasCollation("utf8_general_ci");
  1030. entity.Property(e => e.MerRegDate).HasColumnType("datetime");
  1031. entity.Property(e => e.MerStatus)
  1032. .HasColumnType("varchar(16)")
  1033. .HasCharSet("utf8")
  1034. .HasCollation("utf8_general_ci");
  1035. entity.Property(e => e.ProductType)
  1036. .HasColumnType("varchar(32)")
  1037. .HasCharSet("utf8")
  1038. .HasCollation("utf8_general_ci");
  1039. entity.Property(e => e.Province)
  1040. .HasColumnType("varchar(32)")
  1041. .HasCharSet("utf8")
  1042. .HasCollation("utf8_general_ci");
  1043. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1044. entity.Property(e => e.Remark)
  1045. .HasColumnType("varchar(64)")
  1046. .HasCharSet("utf8")
  1047. .HasCollation("utf8_general_ci");
  1048. entity.Property(e => e.SeoDescription)
  1049. .HasColumnType("varchar(500)")
  1050. .HasCharSet("utf8")
  1051. .HasCollation("utf8_general_ci");
  1052. entity.Property(e => e.SeoKeyword)
  1053. .HasColumnType("varchar(200)")
  1054. .HasCharSet("utf8")
  1055. .HasCollation("utf8_general_ci");
  1056. entity.Property(e => e.SeoTitle)
  1057. .HasColumnType("varchar(100)")
  1058. .HasCharSet("utf8")
  1059. .HasCollation("utf8_general_ci");
  1060. entity.Property(e => e.SnNo)
  1061. .HasColumnType("varchar(32)")
  1062. .HasCharSet("utf8")
  1063. .HasCollation("utf8_general_ci");
  1064. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1065. entity.Property(e => e.Status).HasColumnType("int(11)");
  1066. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1067. entity.Property(e => e.UpdateTime).HasColumnType("datetime");
  1068. });
  1069. modelBuilder.Entity<ProfitRecord>(entity =>
  1070. {
  1071. entity.Property(e => e.Id).HasColumnType("int(11)");
  1072. entity.Property(e => e.ActualCouponAmt)
  1073. .HasColumnName("actualCouponAmt")
  1074. .HasColumnType("varchar(10)")
  1075. .HasCharSet("utf8")
  1076. .HasCollation("utf8_general_ci");
  1077. entity.Property(e => e.ActualIncomeAmt)
  1078. .HasColumnName("actualIncomeAmt")
  1079. .HasColumnType("varchar(20)")
  1080. .HasCharSet("utf8")
  1081. .HasCollation("utf8_general_ci");
  1082. entity.Property(e => e.Amount)
  1083. .HasColumnName("amount")
  1084. .HasColumnType("varchar(50)")
  1085. .HasCharSet("utf8")
  1086. .HasCollation("utf8_general_ci");
  1087. entity.Property(e => e.ApplyDay)
  1088. .HasColumnName("applyDay")
  1089. .HasColumnType("varchar(20)")
  1090. .HasCharSet("utf8")
  1091. .HasCollation("utf8_general_ci");
  1092. entity.Property(e => e.BalanceDirection)
  1093. .HasColumnName("balanceDirection")
  1094. .HasColumnType("varchar(10)")
  1095. .HasCharSet("utf8")
  1096. .HasCollation("utf8_general_ci");
  1097. entity.Property(e => e.CouponAmt)
  1098. .HasColumnName("couponAmt")
  1099. .HasColumnType("varchar(10)")
  1100. .HasCharSet("utf8")
  1101. .HasCollation("utf8_general_ci");
  1102. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1103. entity.Property(e => e.CreateTime)
  1104. .HasColumnName("createTime")
  1105. .HasColumnType("varchar(20)")
  1106. .HasCharSet("utf8")
  1107. .HasCollation("utf8_general_ci");
  1108. entity.Property(e => e.IncomeScale)
  1109. .HasColumnName("incomeScale")
  1110. .HasColumnType("varchar(10)")
  1111. .HasCharSet("utf8")
  1112. .HasCollation("utf8_general_ci");
  1113. entity.Property(e => e.OrderNo)
  1114. .HasColumnName("orderNo")
  1115. .HasColumnType("varchar(20)")
  1116. .HasCharSet("utf8")
  1117. .HasCollation("utf8_general_ci");
  1118. entity.Property(e => e.OrganizationName)
  1119. .HasColumnName("organizationName")
  1120. .HasColumnType("varchar(20)")
  1121. .HasCharSet("utf8")
  1122. .HasCollation("utf8_general_ci");
  1123. entity.Property(e => e.OrganizationNumber)
  1124. .HasColumnName("organizationNumber")
  1125. .HasColumnType("varchar(20)")
  1126. .HasCharSet("utf8")
  1127. .HasCollation("utf8_general_ci");
  1128. entity.Property(e => e.OriginalFee)
  1129. .HasColumnName("originalFee")
  1130. .HasColumnType("varchar(10)")
  1131. .HasCharSet("utf8")
  1132. .HasCollation("utf8_general_ci");
  1133. entity.Property(e => e.OriginalRate)
  1134. .HasColumnName("originalRate")
  1135. .HasColumnType("varchar(10)")
  1136. .HasCharSet("utf8")
  1137. .HasCollation("utf8_general_ci");
  1138. entity.Property(e => e.ProfitCost)
  1139. .HasColumnName("profitCost")
  1140. .HasColumnType("varchar(20)")
  1141. .HasCharSet("utf8")
  1142. .HasCollation("utf8_general_ci");
  1143. entity.Property(e => e.ProfitRate)
  1144. .HasColumnName("profitRate")
  1145. .HasColumnType("varchar(10)")
  1146. .HasCharSet("utf8")
  1147. .HasCollation("utf8_general_ci");
  1148. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1149. entity.Property(e => e.RateFee)
  1150. .HasColumnName("rateFee")
  1151. .HasColumnType("varchar(20)")
  1152. .HasCharSet("utf8")
  1153. .HasCollation("utf8_general_ci");
  1154. entity.Property(e => e.RequestId)
  1155. .HasColumnName("requestId")
  1156. .HasColumnType("varchar(50)")
  1157. .HasCharSet("utf8")
  1158. .HasCollation("utf8_general_ci");
  1159. entity.Property(e => e.SeoDescription)
  1160. .HasColumnType("varchar(500)")
  1161. .HasCharSet("utf8")
  1162. .HasCollation("utf8_general_ci");
  1163. entity.Property(e => e.SeoKeyword)
  1164. .HasColumnType("varchar(200)")
  1165. .HasCharSet("utf8")
  1166. .HasCollation("utf8_general_ci");
  1167. entity.Property(e => e.SeoTitle)
  1168. .HasColumnType("varchar(100)")
  1169. .HasCharSet("utf8")
  1170. .HasCollation("utf8_general_ci");
  1171. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1172. entity.Property(e => e.Status).HasColumnType("int(11)");
  1173. entity.Property(e => e.TopOrgNo)
  1174. .HasColumnName("topOrgNo")
  1175. .HasColumnType("varchar(20)")
  1176. .HasCharSet("utf8")
  1177. .HasCollation("utf8_general_ci");
  1178. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1179. entity.Property(e => e.ValueType)
  1180. .HasColumnName("valueType")
  1181. .HasColumnType("varchar(50)")
  1182. .HasCharSet("utf8")
  1183. .HasCollation("utf8_general_ci");
  1184. });
  1185. modelBuilder.Entity<RightDic>(entity =>
  1186. {
  1187. entity.Property(e => e.Id)
  1188. .HasColumnName("ID")
  1189. .HasColumnType("varchar(50)")
  1190. .HasCharSet("utf8")
  1191. .HasCollation("utf8_general_ci");
  1192. entity.Property(e => e.Icon)
  1193. .HasColumnType("varchar(50)")
  1194. .HasCharSet("utf8")
  1195. .HasCollation("utf8_general_ci");
  1196. entity.Property(e => e.MainDataList)
  1197. .HasColumnType("bit(1)")
  1198. .HasDefaultValueSql("b'0'");
  1199. entity.Property(e => e.MainMenu)
  1200. .HasColumnType("bit(1)")
  1201. .HasDefaultValueSql("b'0'");
  1202. entity.Property(e => e.MainStat)
  1203. .HasColumnType("bit(1)")
  1204. .HasDefaultValueSql("b'0'");
  1205. entity.Property(e => e.Name)
  1206. .HasColumnType("varchar(50)")
  1207. .HasCharSet("utf8")
  1208. .HasCollation("utf8_general_ci");
  1209. entity.Property(e => e.RightLevel).HasColumnType("int(11)");
  1210. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1211. entity.Property(e => e.Url)
  1212. .HasColumnType("varchar(200)")
  1213. .HasCharSet("utf8")
  1214. .HasCollation("utf8_general_ci");
  1215. });
  1216. modelBuilder.Entity<SysLog>(entity =>
  1217. {
  1218. entity.Property(e => e.Id).HasColumnType("int(11)");
  1219. entity.Property(e => e.Contents)
  1220. .HasColumnType("varchar(200)")
  1221. .HasCharSet("utf8")
  1222. .HasCollation("utf8_general_ci");
  1223. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1224. entity.Property(e => e.CreateMan)
  1225. .HasColumnType("varchar(50)")
  1226. .HasCharSet("utf8")
  1227. .HasCollation("utf8_general_ci");
  1228. });
  1229. modelBuilder.Entity<TradeFluxRecord>(entity =>
  1230. {
  1231. entity.Property(e => e.Id).HasColumnType("int(11)");
  1232. entity.Property(e => e.AgentNo)
  1233. .HasColumnType("varchar(32)")
  1234. .HasCharSet("utf8")
  1235. .HasCollation("utf8_general_ci");
  1236. entity.Property(e => e.BankCardNo)
  1237. .HasColumnType("varchar(32)")
  1238. .HasCharSet("utf8")
  1239. .HasCollation("utf8_general_ci");
  1240. entity.Property(e => e.BankCardType)
  1241. .HasColumnType("varchar(16)")
  1242. .HasCharSet("utf8")
  1243. .HasCollation("utf8_general_ci");
  1244. entity.Property(e => e.BillType)
  1245. .HasColumnType("varchar(32)")
  1246. .HasCharSet("utf8")
  1247. .HasCollation("utf8_general_ci");
  1248. entity.Property(e => e.BizEnterName)
  1249. .HasColumnType("varchar(64)")
  1250. .HasCharSet("utf8")
  1251. .HasCollation("utf8_general_ci");
  1252. entity.Property(e => e.BizEnterNo)
  1253. .HasColumnType("varchar(32)")
  1254. .HasCharSet("utf8")
  1255. .HasCollation("utf8_general_ci");
  1256. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1257. entity.Property(e => e.DeviceNetwork)
  1258. .HasColumnType("varchar(32)")
  1259. .HasCharSet("utf8")
  1260. .HasCollation("utf8_general_ci");
  1261. entity.Property(e => e.DigAmt).HasColumnType("decimal(18,2)");
  1262. entity.Property(e => e.DigAmtFlag)
  1263. .HasColumnType("varchar(4)")
  1264. .HasCharSet("utf8")
  1265. .HasCollation("utf8_general_ci");
  1266. entity.Property(e => e.FeeAmount).HasColumnType("decimal(18,2)");
  1267. entity.Property(e => e.InputModel)
  1268. .HasColumnType("varchar(32)")
  1269. .HasCharSet("utf8")
  1270. .HasCollation("utf8_general_ci");
  1271. entity.Property(e => e.KqTradeSeq)
  1272. .HasColumnType("varchar(32)")
  1273. .HasCharSet("utf8")
  1274. .HasCollation("utf8_general_ci");
  1275. entity.Property(e => e.MerName)
  1276. .HasColumnType("varchar(32)")
  1277. .HasCharSet("utf8")
  1278. .HasCollation("utf8_general_ci");
  1279. entity.Property(e => e.MerNo)
  1280. .HasColumnType("varchar(32)")
  1281. .HasCharSet("utf8")
  1282. .HasCollation("utf8_general_ci");
  1283. entity.Property(e => e.ProductType)
  1284. .HasColumnType("varchar(32)")
  1285. .HasCharSet("utf8")
  1286. .HasCollation("utf8_general_ci");
  1287. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1288. entity.Property(e => e.SeoDescription)
  1289. .HasColumnType("varchar(500)")
  1290. .HasCharSet("utf8")
  1291. .HasCollation("utf8_general_ci");
  1292. entity.Property(e => e.SeoKeyword)
  1293. .HasColumnType("varchar(200)")
  1294. .HasCharSet("utf8")
  1295. .HasCollation("utf8_general_ci");
  1296. entity.Property(e => e.SeoTitle)
  1297. .HasColumnType("varchar(100)")
  1298. .HasCharSet("utf8")
  1299. .HasCollation("utf8_general_ci");
  1300. entity.Property(e => e.SettleFee).HasColumnType("decimal(18,2)");
  1301. entity.Property(e => e.SettleMethod)
  1302. .HasColumnType("varchar(16)")
  1303. .HasCharSet("utf8")
  1304. .HasCollation("utf8_general_ci");
  1305. entity.Property(e => e.SmallDouble)
  1306. .HasColumnType("varchar(4)")
  1307. .HasCharSet("utf8")
  1308. .HasCollation("utf8_general_ci");
  1309. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1310. entity.Property(e => e.SourceType)
  1311. .HasColumnType("varchar(16)")
  1312. .HasCharSet("utf8")
  1313. .HasCollation("utf8_general_ci");
  1314. entity.Property(e => e.Status).HasColumnType("int(11)");
  1315. entity.Property(e => e.TerminalNo)
  1316. .HasColumnType("varchar(32)")
  1317. .HasCharSet("utf8")
  1318. .HasCollation("utf8_general_ci");
  1319. entity.Property(e => e.TradeAmount).HasColumnType("decimal(18,2)");
  1320. entity.Property(e => e.TradeDate)
  1321. .HasColumnType("varchar(8)")
  1322. .HasCharSet("utf8")
  1323. .HasCollation("utf8_general_ci");
  1324. entity.Property(e => e.TradeSerialNo)
  1325. .HasColumnType("varchar(32)")
  1326. .HasCharSet("utf8")
  1327. .HasCollation("utf8_general_ci");
  1328. entity.Property(e => e.TradeSnNo)
  1329. .HasColumnType("varchar(32)")
  1330. .HasCharSet("utf8")
  1331. .HasCollation("utf8_general_ci");
  1332. entity.Property(e => e.TradeStatus)
  1333. .HasColumnType("varchar(16)")
  1334. .HasCharSet("utf8")
  1335. .HasCollation("utf8_general_ci");
  1336. entity.Property(e => e.TradeTime)
  1337. .HasColumnType("varchar(8)")
  1338. .HasCharSet("utf8")
  1339. .HasCollation("utf8_general_ci");
  1340. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1341. });
  1342. modelBuilder.Entity<TradeRecord>(entity =>
  1343. {
  1344. entity.Property(e => e.Id).HasColumnType("int(11)");
  1345. entity.Property(e => e.AgentNo)
  1346. .HasColumnType("varchar(32)")
  1347. .HasCharSet("utf8")
  1348. .HasCollation("utf8_general_ci");
  1349. entity.Property(e => e.BankAuthCode)
  1350. .HasColumnType("varchar(32)")
  1351. .HasCharSet("utf8")
  1352. .HasCollation("utf8_general_ci");
  1353. entity.Property(e => e.BankCardNo)
  1354. .HasColumnType("varchar(32)")
  1355. .HasCharSet("utf8")
  1356. .HasCollation("utf8_general_ci");
  1357. entity.Property(e => e.BankCardType)
  1358. .HasColumnType("varchar(16)")
  1359. .HasCharSet("utf8")
  1360. .HasCollation("utf8_general_ci");
  1361. entity.Property(e => e.ChannelSerial)
  1362. .HasColumnType("varchar(50)")
  1363. .HasCharSet("utf8")
  1364. .HasCollation("utf8_general_ci");
  1365. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1366. entity.Property(e => e.DeviceType)
  1367. .HasColumnType("varchar(16)")
  1368. .HasCharSet("utf8")
  1369. .HasCollation("utf8_general_ci");
  1370. entity.Property(e => e.DigAmt).HasColumnType("decimal(18,2)");
  1371. entity.Property(e => e.DigAmtFlag)
  1372. .HasColumnType("varchar(4)")
  1373. .HasCharSet("utf8")
  1374. .HasCollation("utf8_general_ci");
  1375. entity.Property(e => e.DiscountRateFlag)
  1376. .HasColumnType("varchar(16)")
  1377. .HasCharSet("utf8")
  1378. .HasCollation("utf8_general_ci");
  1379. entity.Property(e => e.ErrorCode)
  1380. .HasColumnType("varchar(16)")
  1381. .HasCharSet("utf8")
  1382. .HasCollation("utf8_general_ci");
  1383. entity.Property(e => e.ErrorMsg)
  1384. .HasColumnType("varchar(32)")
  1385. .HasCharSet("utf8")
  1386. .HasCollation("utf8_general_ci");
  1387. entity.Property(e => e.IsStoreCashier)
  1388. .HasColumnType("varchar(16)")
  1389. .HasCharSet("utf8")
  1390. .HasCollation("utf8_general_ci");
  1391. entity.Property(e => e.MerMobile)
  1392. .HasColumnType("varchar(11)")
  1393. .HasCharSet("utf8")
  1394. .HasCollation("utf8_general_ci");
  1395. entity.Property(e => e.MerName)
  1396. .HasColumnType("varchar(50)")
  1397. .HasCharSet("utf8")
  1398. .HasCollation("utf8_general_ci");
  1399. entity.Property(e => e.MerNo)
  1400. .HasColumnType("varchar(50)")
  1401. .HasCharSet("utf8")
  1402. .HasCollation("utf8_general_ci");
  1403. entity.Property(e => e.ProductType)
  1404. .HasColumnType("varchar(32)")
  1405. .HasCharSet("utf8")
  1406. .HasCollation("utf8_general_ci");
  1407. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1408. entity.Property(e => e.ReceiptType)
  1409. .HasColumnType("varchar(16)")
  1410. .HasCharSet("utf8")
  1411. .HasCollation("utf8_general_ci");
  1412. entity.Property(e => e.Remark)
  1413. .HasColumnType("varchar(64)")
  1414. .HasCharSet("utf8")
  1415. .HasCollation("utf8_general_ci");
  1416. entity.Property(e => e.SeoDescription)
  1417. .HasColumnType("mediumtext")
  1418. .HasCharSet("utf8")
  1419. .HasCollation("utf8_general_ci");
  1420. entity.Property(e => e.SeoKeyword)
  1421. .HasColumnType("varchar(200)")
  1422. .HasCharSet("utf8")
  1423. .HasCollation("utf8_general_ci");
  1424. entity.Property(e => e.SeoTitle)
  1425. .HasColumnType("varchar(100)")
  1426. .HasCharSet("utf8")
  1427. .HasCollation("utf8_general_ci");
  1428. entity.Property(e => e.SerEntryMode)
  1429. .HasColumnType("varchar(32)")
  1430. .HasCharSet("utf8")
  1431. .HasCollation("utf8_general_ci");
  1432. entity.Property(e => e.SettleFee).HasColumnType("decimal(18,2)");
  1433. entity.Property(e => e.SettleMethod)
  1434. .HasColumnType("varchar(16)")
  1435. .HasCharSet("utf8")
  1436. .HasCollation("utf8_general_ci");
  1437. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1438. entity.Property(e => e.Status).HasColumnType("int(11)");
  1439. entity.Property(e => e.TradeAmount).HasColumnType("decimal(18,2)");
  1440. entity.Property(e => e.TradeDate)
  1441. .HasColumnType("varchar(8)")
  1442. .HasCharSet("utf8")
  1443. .HasCollation("utf8_general_ci");
  1444. entity.Property(e => e.TradeReferNo)
  1445. .HasColumnType("varchar(32)")
  1446. .HasCharSet("utf8")
  1447. .HasCollation("utf8_general_ci");
  1448. entity.Property(e => e.TradeSerialNo)
  1449. .HasColumnType("varchar(100)")
  1450. .HasCharSet("utf8")
  1451. .HasCollation("utf8_general_ci");
  1452. entity.Property(e => e.TradeSnNo)
  1453. .HasColumnType("varchar(50)")
  1454. .HasCharSet("utf8")
  1455. .HasCollation("utf8_general_ci");
  1456. entity.Property(e => e.TradeStatus)
  1457. .HasColumnType("varchar(16)")
  1458. .HasCharSet("utf8")
  1459. .HasCollation("utf8_general_ci");
  1460. entity.Property(e => e.TradeTime)
  1461. .HasColumnType("varchar(8)")
  1462. .HasCharSet("utf8")
  1463. .HasCollation("utf8_general_ci");
  1464. entity.Property(e => e.TradeType)
  1465. .HasColumnType("varchar(32)")
  1466. .HasCharSet("utf8")
  1467. .HasCollation("utf8_general_ci");
  1468. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1469. });
  1470. OnModelCreatingPartial(modelBuilder);
  1471. }
  1472. partial void OnModelCreatingPartial(ModelBuilder modelBuilder);
  1473. }
  1474. }