WebCMSEntities.cs 85 KB

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