WebCMSEntities.cs 92 KB

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