WebCMSEntities.cs 115 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041
  1. using System;
  2. using Microsoft.EntityFrameworkCore;
  3. using Microsoft.EntityFrameworkCore.Metadata;
  4. namespace MySystem.OpModels
  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<ActMerDaySummary> ActMerDaySummary { get; set; }
  16. public virtual DbSet<ActMerMonthSummary> ActMerMonthSummary { get; set; }
  17. public virtual DbSet<Advertisment> Advertisment { get; set; }
  18. public virtual DbSet<AmountChangeRecord> AmountChangeRecord { get; set; }
  19. public virtual DbSet<AmountRecord> AmountRecord { get; set; }
  20. public virtual DbSet<Col> Col { get; set; }
  21. public virtual DbSet<MachineApplyOpRecord> MachineApplyOpRecord { get; set; }
  22. public virtual DbSet<MenuRight> MenuRight { get; set; }
  23. public virtual DbSet<MsgBlackList> MsgBlackList { get; set; }
  24. public virtual DbSet<MsgPersonal> MsgPersonal { get; set; }
  25. public virtual DbSet<MsgPlacard> MsgPlacard { get; set; }
  26. public virtual DbSet<MsgPlacardRead> MsgPlacardRead { get; set; }
  27. public virtual DbSet<MsgPush> MsgPush { get; set; }
  28. public virtual DbSet<MsgSms> MsgSms { get; set; }
  29. public virtual DbSet<MsgSmsSet> MsgSmsSet { get; set; }
  30. public virtual DbSet<MsgTemplate> MsgTemplate { get; set; }
  31. public virtual DbSet<OperateForCode> OperateForCode { get; set; }
  32. public virtual DbSet<OperateLog> OperateLog { get; set; }
  33. public virtual DbSet<OperateRightList> OperateRightList { get; set; }
  34. public virtual DbSet<PageInfo> PageInfo { get; set; }
  35. public virtual DbSet<PosCouponDaySummary> PosCouponDaySummary { get; set; }
  36. public virtual DbSet<PosCouponForOp> PosCouponForOp { get; set; }
  37. public virtual DbSet<PosCouponMonthSummary> PosCouponMonthSummary { get; set; }
  38. public virtual DbSet<PosCouponOrders> PosCouponOrders { get; set; }
  39. public virtual DbSet<PosCouponRecord> PosCouponRecord { get; set; }
  40. public virtual DbSet<PosCoupons> PosCoupons { get; set; }
  41. public virtual DbSet<PosMachines> PosMachines { get; set; }
  42. public virtual DbSet<PublicAccountSet> PublicAccountSet { get; set; }
  43. public virtual DbSet<RightDic> RightDic { get; set; }
  44. public virtual DbSet<SendDaySummary> SendDaySummary { get; set; }
  45. public virtual DbSet<SendMonthSummary> SendMonthSummary { get; set; }
  46. public virtual DbSet<StoreActMerDaySummary> StoreActMerDaySummary { get; set; }
  47. public virtual DbSet<StoreActMerMonthSummary> StoreActMerMonthSummary { get; set; }
  48. public virtual DbSet<StoreForOperate> StoreForOperate { get; set; }
  49. public virtual DbSet<StoreMachineApply> StoreMachineApply { get; set; }
  50. public virtual DbSet<StoreSendDaySummary> StoreSendDaySummary { get; set; }
  51. public virtual DbSet<StoreSendMonthSummary> StoreSendMonthSummary { get; set; }
  52. public virtual DbSet<SysAdmin> SysAdmin { get; set; }
  53. public virtual DbSet<SysAdminRole> SysAdminRole { get; set; }
  54. public virtual DbSet<SysLog> SysLog { get; set; }
  55. public virtual DbSet<SystemSet> SystemSet { get; set; }
  56. public virtual DbSet<UploadParams> UploadParams { get; set; }
  57. public virtual DbSet<UserAccount> UserAccount { get; set; }
  58. public virtual DbSet<UserAccountRecord> UserAccountRecord { get; set; }
  59. public virtual DbSet<UserCashRecord> UserCashRecord { get; set; }
  60. protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
  61. {
  62. if (!optionsBuilder.IsConfigured)
  63. {
  64. optionsBuilder.UseMySql(Library.ConfigurationManager.AppSettings["OpSqlConnStr"].ToString(), x => x.ServerVersion("5.7.17-mysql"));
  65. }
  66. }
  67. protected override void OnModelCreating(ModelBuilder modelBuilder)
  68. {
  69. modelBuilder.Entity<ActMerDaySummary>(entity =>
  70. {
  71. entity.Property(e => e.Id).HasColumnType("int(11)");
  72. entity.Property(e => e.ActCount).HasColumnType("int(11)");
  73. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  74. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  75. entity.Property(e => e.CreateMan)
  76. .HasColumnType("varchar(50)")
  77. .HasCharSet("utf8")
  78. .HasCollation("utf8_general_ci");
  79. entity.Property(e => e.OpId).HasColumnType("int(11)");
  80. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  81. entity.Property(e => e.SeoDescription)
  82. .HasColumnType("varchar(500)")
  83. .HasCharSet("utf8")
  84. .HasCollation("utf8_general_ci");
  85. entity.Property(e => e.SeoKeyword)
  86. .HasColumnType("varchar(200)")
  87. .HasCharSet("utf8")
  88. .HasCollation("utf8_general_ci");
  89. entity.Property(e => e.SeoTitle)
  90. .HasColumnType("varchar(100)")
  91. .HasCharSet("utf8")
  92. .HasCollation("utf8_general_ci");
  93. entity.Property(e => e.Sort).HasColumnType("int(11)");
  94. entity.Property(e => e.Status).HasColumnType("int(11)");
  95. entity.Property(e => e.TradeDate)
  96. .HasColumnType("varchar(8)")
  97. .HasCharSet("utf8")
  98. .HasCollation("utf8_general_ci");
  99. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  100. entity.Property(e => e.UpdateMan)
  101. .HasColumnType("varchar(50)")
  102. .HasCharSet("utf8")
  103. .HasCollation("utf8_general_ci");
  104. entity.Property(e => e.Version).HasColumnType("int(11)");
  105. });
  106. modelBuilder.Entity<ActMerMonthSummary>(entity =>
  107. {
  108. entity.Property(e => e.Id).HasColumnType("int(11)");
  109. entity.Property(e => e.ActCount).HasColumnType("int(11)");
  110. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  111. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  112. entity.Property(e => e.CreateMan)
  113. .HasColumnType("varchar(50)")
  114. .HasCharSet("utf8")
  115. .HasCollation("utf8_general_ci");
  116. entity.Property(e => e.OpId).HasColumnType("int(11)");
  117. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  118. entity.Property(e => e.SeoDescription)
  119. .HasColumnType("varchar(500)")
  120. .HasCharSet("utf8")
  121. .HasCollation("utf8_general_ci");
  122. entity.Property(e => e.SeoKeyword)
  123. .HasColumnType("varchar(200)")
  124. .HasCharSet("utf8")
  125. .HasCollation("utf8_general_ci");
  126. entity.Property(e => e.SeoTitle)
  127. .HasColumnType("varchar(100)")
  128. .HasCharSet("utf8")
  129. .HasCollation("utf8_general_ci");
  130. entity.Property(e => e.Sort).HasColumnType("int(11)");
  131. entity.Property(e => e.Status).HasColumnType("int(11)");
  132. entity.Property(e => e.TradeMonth)
  133. .HasColumnType("varchar(6)")
  134. .HasCharSet("utf8")
  135. .HasCollation("utf8_general_ci");
  136. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  137. entity.Property(e => e.UpdateMan)
  138. .HasColumnType("varchar(50)")
  139. .HasCharSet("utf8")
  140. .HasCollation("utf8_general_ci");
  141. entity.Property(e => e.Version).HasColumnType("int(11)");
  142. });
  143. modelBuilder.Entity<Advertisment>(entity =>
  144. {
  145. entity.Property(e => e.Id).HasColumnType("int(11)");
  146. entity.Property(e => e.ColId)
  147. .HasColumnType("varchar(30)")
  148. .HasCharSet("utf8")
  149. .HasCollation("utf8_general_ci");
  150. entity.Property(e => e.Contents)
  151. .HasColumnType("longtext")
  152. .HasCharSet("utf8")
  153. .HasCollation("utf8_general_ci");
  154. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  155. entity.Property(e => e.CreateMan)
  156. .HasColumnType("varchar(50)")
  157. .HasCharSet("utf8")
  158. .HasCollation("utf8_general_ci");
  159. entity.Property(e => e.PicPath)
  160. .HasColumnType("varchar(200)")
  161. .HasCharSet("utf8")
  162. .HasCollation("utf8_general_ci");
  163. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  164. entity.Property(e => e.SeoDescription)
  165. .HasColumnType("varchar(500)")
  166. .HasCharSet("utf8")
  167. .HasCollation("utf8_general_ci");
  168. entity.Property(e => e.SeoKeyword)
  169. .HasColumnType("varchar(200)")
  170. .HasCharSet("utf8")
  171. .HasCollation("utf8_general_ci");
  172. entity.Property(e => e.SeoTitle)
  173. .HasColumnType("varchar(100)")
  174. .HasCharSet("utf8")
  175. .HasCollation("utf8_general_ci");
  176. entity.Property(e => e.Sort).HasColumnType("int(11)");
  177. entity.Property(e => e.Status).HasColumnType("int(11)");
  178. entity.Property(e => e.Title)
  179. .HasColumnType("varchar(50)")
  180. .HasCharSet("utf8")
  181. .HasCollation("utf8_general_ci");
  182. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  183. entity.Property(e => e.UpdateMan)
  184. .HasColumnType("varchar(50)")
  185. .HasCharSet("utf8")
  186. .HasCollation("utf8_general_ci");
  187. entity.Property(e => e.Url)
  188. .HasColumnType("longtext")
  189. .HasCharSet("utf8")
  190. .HasCollation("utf8_general_ci");
  191. entity.Property(e => e.Version).HasColumnType("int(11)");
  192. });
  193. modelBuilder.Entity<AmountChangeRecord>(entity =>
  194. {
  195. entity.HasComment("合伙人额度变动记录表");
  196. entity.Property(e => e.Id).HasColumnType("int(11)");
  197. entity.Property(e => e.AfterAmount)
  198. .HasColumnType("decimal(18,2)")
  199. .HasComment("变更后金额");
  200. entity.Property(e => e.AmountType)
  201. .HasColumnType("int(11)")
  202. .HasComment("额度类型");
  203. entity.Property(e => e.BeforeAmount)
  204. .HasColumnType("decimal(18,2)")
  205. .HasComment("变更前金额");
  206. entity.Property(e => e.ChangeAmount)
  207. .HasColumnType("decimal(18,2)")
  208. .HasComment("变更金额");
  209. entity.Property(e => e.CreateDate)
  210. .HasColumnType("datetime")
  211. .HasComment("创建时间");
  212. entity.Property(e => e.OperateType)
  213. .HasColumnType("int(11)")
  214. .HasComment("变动类型");
  215. entity.Property(e => e.Remark)
  216. .HasColumnType("varchar(100)")
  217. .HasComment("备注")
  218. .HasCharSet("utf8")
  219. .HasCollation("utf8_general_ci");
  220. entity.Property(e => e.Sort)
  221. .HasColumnType("int(11)")
  222. .HasComment("排序序号");
  223. entity.Property(e => e.Status)
  224. .HasColumnType("int(11)")
  225. .HasComment("状态");
  226. entity.Property(e => e.Title)
  227. .HasColumnType("varchar(50)")
  228. .HasComment("变动分类标题")
  229. .HasCharSet("utf8")
  230. .HasCollation("utf8_general_ci");
  231. entity.Property(e => e.UpdateDate)
  232. .HasColumnType("datetime")
  233. .HasComment("修改时间");
  234. entity.Property(e => e.Version)
  235. .HasColumnType("int(11)")
  236. .HasComment("版本号");
  237. });
  238. modelBuilder.Entity<AmountRecord>(entity =>
  239. {
  240. entity.Property(e => e.Id).HasColumnType("int(11)");
  241. entity.Property(e => e.AfterAmount).HasColumnType("decimal(18,2)");
  242. entity.Property(e => e.AfterTotalAmt)
  243. .HasColumnType("decimal(18,2)")
  244. .HasComment("使用后未使用额度");
  245. entity.Property(e => e.AfterValidAmount)
  246. .HasColumnType("decimal(18,2)")
  247. .HasComment("使用后关联分仓额度");
  248. entity.Property(e => e.AfterValidForGetAmount)
  249. .HasColumnType("decimal(18,2)")
  250. .HasComment("使用后可提现额度");
  251. entity.Property(e => e.ApplyId).HasColumnType("int(11)");
  252. entity.Property(e => e.BeforeAmount).HasColumnType("decimal(18,2)");
  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.OperateType).HasColumnType("int(11)");
  259. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  260. entity.Property(e => e.SeoDescription)
  261. .HasColumnType("varchar(500)")
  262. .HasCharSet("utf8")
  263. .HasCollation("utf8_general_ci");
  264. entity.Property(e => e.SeoKeyword)
  265. .HasColumnType("varchar(200)")
  266. .HasCharSet("utf8")
  267. .HasCollation("utf8_general_ci");
  268. entity.Property(e => e.SeoTitle)
  269. .HasColumnType("varchar(100)")
  270. .HasCharSet("utf8")
  271. .HasCollation("utf8_general_ci");
  272. entity.Property(e => e.Sort).HasColumnType("int(11)");
  273. entity.Property(e => e.Status).HasColumnType("int(11)");
  274. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  275. entity.Property(e => e.UpdateMan)
  276. .HasColumnType("varchar(50)")
  277. .HasCharSet("utf8")
  278. .HasCollation("utf8_general_ci");
  279. entity.Property(e => e.UseAmount).HasColumnType("decimal(18,2)");
  280. entity.Property(e => e.UserId).HasColumnType("int(11)");
  281. entity.Property(e => e.Version).HasColumnType("int(11)");
  282. });
  283. modelBuilder.Entity<Col>(entity =>
  284. {
  285. entity.Property(e => e.Id).HasColumnType("int(11)");
  286. entity.Property(e => e.ColDetail)
  287. .HasColumnType("varchar(50)")
  288. .HasCharSet("utf8")
  289. .HasCollation("utf8_general_ci");
  290. entity.Property(e => e.ColEnName)
  291. .HasColumnType("varchar(50)")
  292. .HasCharSet("utf8")
  293. .HasCollation("utf8_general_ci");
  294. entity.Property(e => e.ColId)
  295. .HasColumnType("varchar(30)")
  296. .HasCharSet("utf8")
  297. .HasCollation("utf8_general_ci");
  298. entity.Property(e => e.ColName)
  299. .HasColumnType("varchar(50)")
  300. .HasCharSet("utf8")
  301. .HasCollation("utf8_general_ci");
  302. entity.Property(e => e.ColPicPath)
  303. .HasColumnType("varchar(200)")
  304. .HasCharSet("utf8")
  305. .HasCollation("utf8_general_ci");
  306. entity.Property(e => e.Contents)
  307. .HasColumnType("longtext")
  308. .HasCharSet("utf8")
  309. .HasCollation("utf8_general_ci");
  310. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  311. entity.Property(e => e.CreateMan)
  312. .HasColumnType("varchar(50)")
  313. .HasCharSet("utf8")
  314. .HasCollation("utf8_general_ci");
  315. entity.Property(e => e.ParentId).HasColumnType("int(11)");
  316. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  317. entity.Property(e => e.Recommend)
  318. .HasColumnType("bit(1)")
  319. .HasDefaultValueSql("b'0'");
  320. entity.Property(e => e.SeoDescription)
  321. .HasColumnType("varchar(500)")
  322. .HasCharSet("utf8")
  323. .HasCollation("utf8_general_ci");
  324. entity.Property(e => e.SeoKeyword)
  325. .HasColumnType("varchar(200)")
  326. .HasCharSet("utf8")
  327. .HasCollation("utf8_general_ci");
  328. entity.Property(e => e.SeoTitle)
  329. .HasColumnType("varchar(100)")
  330. .HasCharSet("utf8")
  331. .HasCollation("utf8_general_ci");
  332. entity.Property(e => e.Sort).HasColumnType("int(11)");
  333. entity.Property(e => e.Status).HasColumnType("int(11)");
  334. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  335. entity.Property(e => e.UpdateMan)
  336. .HasColumnType("varchar(50)")
  337. .HasCharSet("utf8")
  338. .HasCollation("utf8_general_ci");
  339. entity.Property(e => e.Url)
  340. .HasColumnType("longtext")
  341. .HasCharSet("utf8")
  342. .HasCollation("utf8_general_ci");
  343. entity.Property(e => e.Version).HasColumnType("int(11)");
  344. });
  345. modelBuilder.Entity<MachineApplyOpRecord>(entity =>
  346. {
  347. entity.Property(e => e.Id).HasColumnType("int(11)");
  348. entity.Property(e => e.ApplyId).HasColumnType("int(11)");
  349. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  350. entity.Property(e => e.CreateMan)
  351. .HasColumnType("varchar(50)")
  352. .HasCharSet("utf8")
  353. .HasCollation("utf8_general_ci");
  354. entity.Property(e => e.OpId).HasColumnType("int(11)");
  355. entity.Property(e => e.OpType).HasColumnType("int(11)");
  356. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  357. entity.Property(e => e.SeoDescription)
  358. .HasColumnType("varchar(500)")
  359. .HasCharSet("utf8")
  360. .HasCollation("utf8_general_ci");
  361. entity.Property(e => e.SeoKeyword)
  362. .HasColumnType("varchar(200)")
  363. .HasCharSet("utf8")
  364. .HasCollation("utf8_general_ci");
  365. entity.Property(e => e.SeoTitle)
  366. .HasColumnType("varchar(100)")
  367. .HasCharSet("utf8")
  368. .HasCollation("utf8_general_ci");
  369. entity.Property(e => e.Sort).HasColumnType("int(11)");
  370. entity.Property(e => e.SourceSn)
  371. .HasColumnType("varchar(500)")
  372. .HasCharSet("utf8")
  373. .HasCollation("utf8_general_ci");
  374. entity.Property(e => e.Status).HasColumnType("int(11)");
  375. entity.Property(e => e.TargetSn)
  376. .HasColumnType("varchar(500)")
  377. .HasCharSet("utf8")
  378. .HasCollation("utf8_general_ci");
  379. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  380. entity.Property(e => e.UpdateMan)
  381. .HasColumnType("varchar(50)")
  382. .HasCharSet("utf8")
  383. .HasCollation("utf8_general_ci");
  384. entity.Property(e => e.Version).HasColumnType("int(11)");
  385. });
  386. modelBuilder.Entity<MenuRight>(entity =>
  387. {
  388. entity.HasKey(e => e.MenuId)
  389. .HasName("PRIMARY");
  390. entity.Property(e => e.MenuId)
  391. .HasColumnType("varchar(50)")
  392. .HasCharSet("utf8")
  393. .HasCollation("utf8_general_ci");
  394. entity.Property(e => e.Name)
  395. .HasColumnType("varchar(50)")
  396. .HasCharSet("utf8")
  397. .HasCollation("utf8_general_ci");
  398. });
  399. modelBuilder.Entity<MsgBlackList>(entity =>
  400. {
  401. entity.Property(e => e.Id).HasColumnType("int(11)");
  402. entity.Property(e => e.ColId)
  403. .HasColumnType("varchar(30)")
  404. .HasCharSet("utf8")
  405. .HasCollation("utf8_general_ci");
  406. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  407. entity.Property(e => e.CreateMan)
  408. .HasColumnType("varchar(50)")
  409. .HasCharSet("utf8")
  410. .HasCollation("utf8_general_ci");
  411. entity.Property(e => e.Extend)
  412. .HasColumnType("varchar(2000)")
  413. .HasCharSet("utf8")
  414. .HasCollation("utf8_general_ci");
  415. entity.Property(e => e.Ip)
  416. .HasColumnType("varchar(64)")
  417. .HasCharSet("utf8")
  418. .HasCollation("utf8_general_ci");
  419. entity.Property(e => e.Mobile)
  420. .HasColumnType("varchar(11)")
  421. .HasCharSet("utf8")
  422. .HasCollation("utf8_general_ci");
  423. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  424. entity.Property(e => e.Reason)
  425. .HasColumnType("varchar(512)")
  426. .HasCharSet("utf8")
  427. .HasCollation("utf8_general_ci");
  428. entity.Property(e => e.Remark)
  429. .HasColumnType("varchar(64)")
  430. .HasCharSet("utf8")
  431. .HasCollation("utf8_general_ci");
  432. entity.Property(e => e.SeoDescription)
  433. .HasColumnType("varchar(500)")
  434. .HasCharSet("utf8")
  435. .HasCollation("utf8_general_ci");
  436. entity.Property(e => e.SeoKeyword)
  437. .HasColumnType("varchar(200)")
  438. .HasCharSet("utf8")
  439. .HasCollation("utf8_general_ci");
  440. entity.Property(e => e.SeoTitle)
  441. .HasColumnType("varchar(100)")
  442. .HasCharSet("utf8")
  443. .HasCollation("utf8_general_ci");
  444. entity.Property(e => e.Sort).HasColumnType("int(11)");
  445. entity.Property(e => e.Status).HasColumnType("int(11)");
  446. entity.Property(e => e.TemplateId).HasColumnType("int(11)");
  447. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  448. entity.Property(e => e.UpdateMan)
  449. .HasColumnType("varchar(50)")
  450. .HasCharSet("utf8")
  451. .HasCollation("utf8_general_ci");
  452. entity.Property(e => e.Version).HasColumnType("int(11)");
  453. });
  454. modelBuilder.Entity<MsgPersonal>(entity =>
  455. {
  456. entity.Property(e => e.Id).HasColumnType("int(11)");
  457. entity.Property(e => e.BgPic)
  458. .HasColumnType("varchar(200)")
  459. .HasCharSet("utf8")
  460. .HasCollation("utf8_general_ci");
  461. entity.Property(e => e.Content)
  462. .HasColumnType("longtext")
  463. .HasCharSet("utf8")
  464. .HasCollation("utf8_general_ci");
  465. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  466. entity.Property(e => e.CreateMan)
  467. .HasColumnType("varchar(50)")
  468. .HasCharSet("utf8")
  469. .HasCollation("utf8_general_ci");
  470. entity.Property(e => e.ExtendColumn)
  471. .HasColumnType("mediumtext")
  472. .HasCharSet("utf8")
  473. .HasCollation("utf8_general_ci");
  474. entity.Property(e => e.MsgType).HasColumnType("int(11)");
  475. entity.Property(e => e.PushFlag).HasColumnType("int(11)");
  476. entity.Property(e => e.PushParam)
  477. .HasColumnType("varchar(255)")
  478. .HasCharSet("utf8")
  479. .HasCollation("utf8_general_ci");
  480. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  481. entity.Property(e => e.ReadFlag)
  482. .HasColumnType("bit(1)")
  483. .HasDefaultValueSql("b'0'");
  484. entity.Property(e => e.Remark)
  485. .HasColumnType("varchar(255)")
  486. .HasCharSet("utf8")
  487. .HasCollation("utf8_general_ci");
  488. entity.Property(e => e.SeoDescription)
  489. .HasColumnType("varchar(500)")
  490. .HasCharSet("utf8")
  491. .HasCollation("utf8_general_ci");
  492. entity.Property(e => e.SeoKeyword)
  493. .HasColumnType("varchar(200)")
  494. .HasCharSet("utf8")
  495. .HasCollation("utf8_general_ci");
  496. entity.Property(e => e.SeoTitle)
  497. .HasColumnType("varchar(100)")
  498. .HasCharSet("utf8")
  499. .HasCollation("utf8_general_ci");
  500. entity.Property(e => e.Sort).HasColumnType("int(11)");
  501. entity.Property(e => e.Status).HasColumnType("int(11)");
  502. entity.Property(e => e.Summary)
  503. .HasColumnType("varchar(500)")
  504. .HasCharSet("utf8")
  505. .HasCollation("utf8_general_ci");
  506. entity.Property(e => e.TemplateId).HasColumnType("int(11)");
  507. entity.Property(e => e.Title)
  508. .HasColumnType("varchar(50)")
  509. .HasCharSet("utf8")
  510. .HasCollation("utf8_general_ci");
  511. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  512. entity.Property(e => e.UpdateMan)
  513. .HasColumnType("varchar(50)")
  514. .HasCharSet("utf8")
  515. .HasCollation("utf8_general_ci");
  516. entity.Property(e => e.Url)
  517. .HasColumnType("varchar(500)")
  518. .HasCharSet("utf8")
  519. .HasCollation("utf8_general_ci");
  520. entity.Property(e => e.UserId).HasColumnType("int(11)");
  521. entity.Property(e => e.Version).HasColumnType("int(11)");
  522. });
  523. modelBuilder.Entity<MsgPlacard>(entity =>
  524. {
  525. entity.Property(e => e.Id).HasColumnType("int(11)");
  526. entity.Property(e => e.BgPic)
  527. .HasColumnType("varchar(200)")
  528. .HasCharSet("utf8")
  529. .HasCollation("utf8_general_ci");
  530. entity.Property(e => e.Content)
  531. .HasColumnType("longtext")
  532. .HasCharSet("utf8")
  533. .HasCollation("utf8_general_ci");
  534. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  535. entity.Property(e => e.CreateMan)
  536. .HasColumnType("varchar(50)")
  537. .HasCharSet("utf8")
  538. .HasCollation("utf8_general_ci");
  539. entity.Property(e => e.EffectEndDate).HasColumnType("datetime");
  540. entity.Property(e => e.EffectStartDate).HasColumnType("datetime");
  541. entity.Property(e => e.ExtendColumn)
  542. .HasColumnType("mediumtext")
  543. .HasCharSet("utf8")
  544. .HasCollation("utf8_general_ci");
  545. entity.Property(e => e.IsTop)
  546. .HasColumnType("bit(1)")
  547. .HasDefaultValueSql("b'0'");
  548. entity.Property(e => e.MsgType).HasColumnType("int(11)");
  549. entity.Property(e => e.PushFlag).HasColumnType("int(11)");
  550. entity.Property(e => e.PushParam)
  551. .HasColumnType("varchar(255)")
  552. .HasCharSet("utf8")
  553. .HasCollation("utf8_general_ci");
  554. entity.Property(e => e.PushTime).HasColumnType("datetime");
  555. entity.Property(e => e.PushType).HasColumnType("int(11)");
  556. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  557. entity.Property(e => e.Remark)
  558. .HasColumnType("varchar(255)")
  559. .HasCharSet("utf8")
  560. .HasCollation("utf8_general_ci");
  561. entity.Property(e => e.SeoDescription)
  562. .HasColumnType("varchar(500)")
  563. .HasCharSet("utf8")
  564. .HasCollation("utf8_general_ci");
  565. entity.Property(e => e.SeoKeyword)
  566. .HasColumnType("varchar(200)")
  567. .HasCharSet("utf8")
  568. .HasCollation("utf8_general_ci");
  569. entity.Property(e => e.SeoTitle)
  570. .HasColumnType("varchar(100)")
  571. .HasCharSet("utf8")
  572. .HasCollation("utf8_general_ci");
  573. entity.Property(e => e.ShowType).HasColumnType("int(11)");
  574. entity.Property(e => e.Sort).HasColumnType("int(11)");
  575. entity.Property(e => e.Status).HasColumnType("int(11)");
  576. entity.Property(e => e.Summary)
  577. .HasColumnType("varchar(500)")
  578. .HasCharSet("utf8")
  579. .HasCollation("utf8_general_ci");
  580. entity.Property(e => e.Title)
  581. .HasColumnType("varchar(50)")
  582. .HasCharSet("utf8")
  583. .HasCollation("utf8_general_ci");
  584. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  585. entity.Property(e => e.UpdateMan)
  586. .HasColumnType("varchar(50)")
  587. .HasCharSet("utf8")
  588. .HasCollation("utf8_general_ci");
  589. entity.Property(e => e.Url)
  590. .HasColumnType("varchar(500)")
  591. .HasCharSet("utf8")
  592. .HasCollation("utf8_general_ci");
  593. entity.Property(e => e.Version).HasColumnType("int(11)");
  594. });
  595. modelBuilder.Entity<MsgPlacardRead>(entity =>
  596. {
  597. entity.Property(e => e.Id).HasColumnType("int(11)");
  598. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  599. entity.Property(e => e.CreateMan)
  600. .HasColumnType("varchar(50)")
  601. .HasCharSet("utf8")
  602. .HasCollation("utf8_general_ci");
  603. entity.Property(e => e.PlacardId).HasColumnType("int(11)");
  604. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  605. entity.Property(e => e.ReadFlag)
  606. .HasColumnType("bit(1)")
  607. .HasDefaultValueSql("b'0'");
  608. entity.Property(e => e.Remark)
  609. .HasColumnType("varchar(255)")
  610. .HasCharSet("utf8")
  611. .HasCollation("utf8_general_ci");
  612. entity.Property(e => e.SeoDescription)
  613. .HasColumnType("varchar(500)")
  614. .HasCharSet("utf8")
  615. .HasCollation("utf8_general_ci");
  616. entity.Property(e => e.SeoKeyword)
  617. .HasColumnType("varchar(200)")
  618. .HasCharSet("utf8")
  619. .HasCollation("utf8_general_ci");
  620. entity.Property(e => e.SeoTitle)
  621. .HasColumnType("varchar(100)")
  622. .HasCharSet("utf8")
  623. .HasCollation("utf8_general_ci");
  624. entity.Property(e => e.Sort).HasColumnType("int(11)");
  625. entity.Property(e => e.Status).HasColumnType("int(11)");
  626. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  627. entity.Property(e => e.UpdateMan)
  628. .HasColumnType("varchar(50)")
  629. .HasCharSet("utf8")
  630. .HasCollation("utf8_general_ci");
  631. entity.Property(e => e.UserId)
  632. .HasColumnType("varchar(64)")
  633. .HasCharSet("utf8")
  634. .HasCollation("utf8_general_ci");
  635. entity.Property(e => e.Version).HasColumnType("int(11)");
  636. });
  637. modelBuilder.Entity<MsgPush>(entity =>
  638. {
  639. entity.Property(e => e.Id).HasColumnType("int(11)");
  640. entity.Property(e => e.AutoPushDate).HasColumnType("datetime");
  641. entity.Property(e => e.ClientType)
  642. .HasColumnType("varchar(20)")
  643. .HasCharSet("utf8")
  644. .HasCollation("utf8_general_ci");
  645. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  646. entity.Property(e => e.CreateMan)
  647. .HasColumnType("varchar(50)")
  648. .HasCharSet("utf8")
  649. .HasCollation("utf8_general_ci");
  650. entity.Property(e => e.Details)
  651. .HasColumnType("varchar(200)")
  652. .HasCharSet("utf8")
  653. .HasCollation("utf8_general_ci");
  654. entity.Property(e => e.Devices)
  655. .HasColumnType("mediumtext")
  656. .HasCharSet("utf8")
  657. .HasCollation("utf8_general_ci");
  658. entity.Property(e => e.IsSilent)
  659. .HasColumnType("bit(1)")
  660. .HasDefaultValueSql("b'0'");
  661. entity.Property(e => e.MessageId)
  662. .HasColumnType("varchar(50)")
  663. .HasCharSet("utf8")
  664. .HasCollation("utf8_general_ci");
  665. entity.Property(e => e.Mobiles)
  666. .HasColumnType("mediumtext")
  667. .HasCharSet("utf8")
  668. .HasCollation("utf8_general_ci");
  669. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  670. entity.Property(e => e.SeoDescription)
  671. .HasColumnType("varchar(500)")
  672. .HasCharSet("utf8")
  673. .HasCollation("utf8_general_ci");
  674. entity.Property(e => e.SeoKeyword)
  675. .HasColumnType("varchar(200)")
  676. .HasCharSet("utf8")
  677. .HasCollation("utf8_general_ci");
  678. entity.Property(e => e.SeoTitle)
  679. .HasColumnType("varchar(100)")
  680. .HasCharSet("utf8")
  681. .HasCollation("utf8_general_ci");
  682. entity.Property(e => e.Sort).HasColumnType("int(11)");
  683. entity.Property(e => e.Status).HasColumnType("int(11)");
  684. entity.Property(e => e.TemplateId).HasColumnType("int(11)");
  685. entity.Property(e => e.Title)
  686. .HasColumnType("varchar(50)")
  687. .HasCharSet("utf8")
  688. .HasCollation("utf8_general_ci");
  689. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  690. entity.Property(e => e.UpdateMan)
  691. .HasColumnType("varchar(50)")
  692. .HasCharSet("utf8")
  693. .HasCollation("utf8_general_ci");
  694. entity.Property(e => e.Url)
  695. .HasColumnType("varchar(500)")
  696. .HasCharSet("utf8")
  697. .HasCollation("utf8_general_ci");
  698. entity.Property(e => e.Version).HasColumnType("int(11)");
  699. });
  700. modelBuilder.Entity<MsgSms>(entity =>
  701. {
  702. entity.Property(e => e.Id).HasColumnType("int(11)");
  703. entity.Property(e => e.Code).HasColumnType("int(11)");
  704. entity.Property(e => e.ColId)
  705. .HasColumnType("varchar(30)")
  706. .HasCharSet("utf8")
  707. .HasCollation("utf8_general_ci");
  708. entity.Property(e => e.Content)
  709. .HasColumnType("varchar(200)")
  710. .HasCharSet("utf8")
  711. .HasCollation("utf8_general_ci");
  712. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  713. entity.Property(e => e.CreateMan)
  714. .HasColumnType("varchar(50)")
  715. .HasCharSet("utf8")
  716. .HasCollation("utf8_general_ci");
  717. entity.Property(e => e.ErrorNum).HasColumnType("int(11)");
  718. entity.Property(e => e.Ip)
  719. .HasColumnType("varchar(15)")
  720. .HasCharSet("utf8")
  721. .HasCollation("utf8_general_ci");
  722. entity.Property(e => e.Kind)
  723. .HasColumnType("varchar(64)")
  724. .HasCharSet("utf8")
  725. .HasCollation("utf8_general_ci");
  726. entity.Property(e => e.Mobile)
  727. .HasColumnType("varchar(11)")
  728. .HasCharSet("utf8")
  729. .HasCollation("utf8_general_ci");
  730. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  731. entity.Property(e => e.RespCode)
  732. .HasColumnType("varchar(16)")
  733. .HasCharSet("utf8")
  734. .HasCollation("utf8_general_ci");
  735. entity.Property(e => e.RespContent)
  736. .HasColumnType("varchar(500)")
  737. .HasCharSet("utf8")
  738. .HasCollation("utf8_general_ci");
  739. entity.Property(e => e.SendStatus).HasColumnType("int(11)");
  740. entity.Property(e => e.SendTime).HasColumnType("datetime");
  741. entity.Property(e => e.SendType).HasColumnType("int(11)");
  742. entity.Property(e => e.SeoDescription)
  743. .HasColumnType("varchar(500)")
  744. .HasCharSet("utf8")
  745. .HasCollation("utf8_general_ci");
  746. entity.Property(e => e.SeoKeyword)
  747. .HasColumnType("varchar(200)")
  748. .HasCharSet("utf8")
  749. .HasCollation("utf8_general_ci");
  750. entity.Property(e => e.SeoTitle)
  751. .HasColumnType("varchar(100)")
  752. .HasCharSet("utf8")
  753. .HasCollation("utf8_general_ci");
  754. entity.Property(e => e.SignName)
  755. .HasColumnType("varchar(10)")
  756. .HasCharSet("utf8")
  757. .HasCollation("utf8_general_ci");
  758. entity.Property(e => e.SmsType).HasColumnType("int(11)");
  759. entity.Property(e => e.Sort).HasColumnType("int(11)");
  760. entity.Property(e => e.Status).HasColumnType("int(11)");
  761. entity.Property(e => e.TemplateId).HasColumnType("int(11)");
  762. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  763. entity.Property(e => e.UpdateMan)
  764. .HasColumnType("varchar(50)")
  765. .HasCharSet("utf8")
  766. .HasCollation("utf8_general_ci");
  767. entity.Property(e => e.VerifyCode)
  768. .HasColumnType("varchar(6)")
  769. .HasCharSet("utf8")
  770. .HasCollation("utf8_general_ci");
  771. entity.Property(e => e.VerifyStatus).HasColumnType("int(11)");
  772. entity.Property(e => e.Version).HasColumnType("int(11)");
  773. });
  774. modelBuilder.Entity<MsgSmsSet>(entity =>
  775. {
  776. entity.Property(e => e.Id).HasColumnType("int(11)");
  777. entity.Property(e => e.AuthPwd)
  778. .HasColumnType("varchar(50)")
  779. .HasCharSet("utf8")
  780. .HasCollation("utf8_general_ci");
  781. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  782. entity.Property(e => e.CreateMan)
  783. .HasColumnType("varchar(50)")
  784. .HasCharSet("utf8")
  785. .HasCollation("utf8_general_ci");
  786. entity.Property(e => e.Name)
  787. .HasColumnType("varchar(50)")
  788. .HasCharSet("utf8")
  789. .HasCollation("utf8_general_ci");
  790. entity.Property(e => e.Params)
  791. .HasColumnType("varchar(200)")
  792. .HasCharSet("utf8")
  793. .HasCollation("utf8_general_ci");
  794. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  795. entity.Property(e => e.ReqUrl)
  796. .HasColumnType("varchar(200)")
  797. .HasCharSet("utf8")
  798. .HasCollation("utf8_general_ci");
  799. entity.Property(e => e.SeoDescription)
  800. .HasColumnType("varchar(500)")
  801. .HasCharSet("utf8")
  802. .HasCollation("utf8_general_ci");
  803. entity.Property(e => e.SeoKeyword)
  804. .HasColumnType("varchar(200)")
  805. .HasCharSet("utf8")
  806. .HasCollation("utf8_general_ci");
  807. entity.Property(e => e.SeoTitle)
  808. .HasColumnType("varchar(100)")
  809. .HasCharSet("utf8")
  810. .HasCollation("utf8_general_ci");
  811. entity.Property(e => e.SmsType).HasColumnType("int(11)");
  812. entity.Property(e => e.Sort).HasColumnType("int(11)");
  813. entity.Property(e => e.Status).HasColumnType("int(11)");
  814. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  815. entity.Property(e => e.UpdateMan)
  816. .HasColumnType("varchar(50)")
  817. .HasCharSet("utf8")
  818. .HasCollation("utf8_general_ci");
  819. entity.Property(e => e.UserName)
  820. .HasColumnType("varchar(50)")
  821. .HasCharSet("utf8")
  822. .HasCollation("utf8_general_ci");
  823. entity.Property(e => e.Version).HasColumnType("int(11)");
  824. });
  825. modelBuilder.Entity<MsgTemplate>(entity =>
  826. {
  827. entity.Property(e => e.Id).HasColumnType("int(11)");
  828. entity.Property(e => e.ColId)
  829. .HasColumnType("varchar(30)")
  830. .HasCharSet("utf8")
  831. .HasCollation("utf8_general_ci");
  832. entity.Property(e => e.Content)
  833. .HasColumnType("varchar(200)")
  834. .HasCharSet("utf8")
  835. .HasCollation("utf8_general_ci");
  836. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  837. entity.Property(e => e.CreateMan)
  838. .HasColumnType("varchar(50)")
  839. .HasCharSet("utf8")
  840. .HasCollation("utf8_general_ci");
  841. entity.Property(e => e.Extend)
  842. .HasColumnType("varchar(2000)")
  843. .HasCharSet("utf8")
  844. .HasCollation("utf8_general_ci");
  845. entity.Property(e => e.MsgType).HasColumnType("int(11)");
  846. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  847. entity.Property(e => e.Remark)
  848. .HasColumnType("varchar(64)")
  849. .HasCharSet("utf8")
  850. .HasCollation("utf8_general_ci");
  851. entity.Property(e => e.SeoDescription)
  852. .HasColumnType("varchar(500)")
  853. .HasCharSet("utf8")
  854. .HasCollation("utf8_general_ci");
  855. entity.Property(e => e.SeoKeyword)
  856. .HasColumnType("varchar(200)")
  857. .HasCharSet("utf8")
  858. .HasCollation("utf8_general_ci");
  859. entity.Property(e => e.SeoTitle)
  860. .HasColumnType("varchar(100)")
  861. .HasCharSet("utf8")
  862. .HasCollation("utf8_general_ci");
  863. entity.Property(e => e.SignName)
  864. .HasColumnType("varchar(10)")
  865. .HasCharSet("utf8")
  866. .HasCollation("utf8_general_ci");
  867. entity.Property(e => e.Sort).HasColumnType("int(11)");
  868. entity.Property(e => e.Status).HasColumnType("int(11)");
  869. entity.Property(e => e.TemplateType).HasColumnType("int(11)");
  870. entity.Property(e => e.Title)
  871. .HasColumnType("varchar(50)")
  872. .HasCharSet("utf8")
  873. .HasCollation("utf8_general_ci");
  874. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  875. entity.Property(e => e.UpdateMan)
  876. .HasColumnType("varchar(50)")
  877. .HasCharSet("utf8")
  878. .HasCollation("utf8_general_ci");
  879. entity.Property(e => e.Version).HasColumnType("int(11)");
  880. });
  881. modelBuilder.Entity<OperateForCode>(entity =>
  882. {
  883. entity.HasKey(e => e.OpCode)
  884. .HasName("PRIMARY");
  885. entity.Property(e => e.OpCode)
  886. .HasColumnType("varchar(20)")
  887. .HasCharSet("utf8")
  888. .HasCollation("utf8_general_ci");
  889. entity.Property(e => e.OpId).HasColumnType("int(11)");
  890. });
  891. modelBuilder.Entity<OperateLog>(entity =>
  892. {
  893. entity.Property(e => e.Id).HasColumnType("int(11)");
  894. entity.Property(e => e.AfterOperate)
  895. .HasColumnType("mediumtext")
  896. .HasCharSet("utf8")
  897. .HasCollation("utf8_general_ci");
  898. entity.Property(e => e.BeforeOperate)
  899. .HasColumnType("mediumtext")
  900. .HasCharSet("utf8")
  901. .HasCollation("utf8_general_ci");
  902. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  903. entity.Property(e => e.CreateMan)
  904. .HasColumnType("varchar(50)")
  905. .HasCharSet("utf8")
  906. .HasCollation("utf8_general_ci");
  907. entity.Property(e => e.OpMode)
  908. .HasColumnType("varchar(30)")
  909. .HasCharSet("utf8")
  910. .HasCollation("utf8_general_ci");
  911. entity.Property(e => e.OperateMan)
  912. .HasColumnType("varchar(50)")
  913. .HasCharSet("utf8")
  914. .HasCollation("utf8_general_ci");
  915. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  916. entity.Property(e => e.SeoDescription)
  917. .HasColumnType("varchar(500)")
  918. .HasCharSet("utf8")
  919. .HasCollation("utf8_general_ci");
  920. entity.Property(e => e.SeoKeyword)
  921. .HasColumnType("varchar(200)")
  922. .HasCharSet("utf8")
  923. .HasCollation("utf8_general_ci");
  924. entity.Property(e => e.SeoTitle)
  925. .HasColumnType("varchar(100)")
  926. .HasCharSet("utf8")
  927. .HasCollation("utf8_general_ci");
  928. entity.Property(e => e.Sort).HasColumnType("int(11)");
  929. entity.Property(e => e.Status).HasColumnType("int(11)");
  930. entity.Property(e => e.TableEnName)
  931. .HasColumnType("varchar(50)")
  932. .HasCharSet("utf8")
  933. .HasCollation("utf8_general_ci");
  934. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  935. entity.Property(e => e.UpdateMan)
  936. .HasColumnType("varchar(50)")
  937. .HasCharSet("utf8")
  938. .HasCollation("utf8_general_ci");
  939. entity.Property(e => e.Version).HasColumnType("int(11)");
  940. });
  941. modelBuilder.Entity<OperateRightList>(entity =>
  942. {
  943. entity.Property(e => e.Id).HasColumnType("int(11)");
  944. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  945. entity.Property(e => e.CreateMan)
  946. .HasColumnType("varchar(50)")
  947. .HasCharSet("utf8")
  948. .HasCollation("utf8_general_ci");
  949. entity.Property(e => e.EnName)
  950. .HasColumnType("varchar(50)")
  951. .HasCharSet("utf8")
  952. .HasCollation("utf8_general_ci");
  953. entity.Property(e => e.Name)
  954. .HasColumnType("varchar(50)")
  955. .HasCharSet("utf8")
  956. .HasCollation("utf8_general_ci");
  957. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  958. entity.Property(e => e.SeoDescription)
  959. .HasColumnType("varchar(500)")
  960. .HasCharSet("utf8")
  961. .HasCollation("utf8_general_ci");
  962. entity.Property(e => e.SeoKeyword)
  963. .HasColumnType("varchar(200)")
  964. .HasCharSet("utf8")
  965. .HasCollation("utf8_general_ci");
  966. entity.Property(e => e.SeoTitle)
  967. .HasColumnType("varchar(100)")
  968. .HasCharSet("utf8")
  969. .HasCollation("utf8_general_ci");
  970. entity.Property(e => e.Sort).HasColumnType("int(11)");
  971. entity.Property(e => e.Status).HasColumnType("int(11)");
  972. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  973. entity.Property(e => e.UpdateMan)
  974. .HasColumnType("varchar(50)")
  975. .HasCharSet("utf8")
  976. .HasCollation("utf8_general_ci");
  977. entity.Property(e => e.Version).HasColumnType("int(11)");
  978. });
  979. modelBuilder.Entity<PageInfo>(entity =>
  980. {
  981. entity.Property(e => e.Id).HasColumnType("int(11)");
  982. entity.Property(e => e.ColId)
  983. .HasColumnType("varchar(30)")
  984. .HasCharSet("utf8")
  985. .HasCollation("utf8_general_ci");
  986. entity.Property(e => e.Contents)
  987. .HasColumnType("longtext")
  988. .HasCharSet("utf8")
  989. .HasCollation("utf8_general_ci");
  990. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  991. entity.Property(e => e.CreateMan)
  992. .HasColumnType("varchar(50)")
  993. .HasCharSet("utf8")
  994. .HasCollation("utf8_general_ci");
  995. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  996. entity.Property(e => e.SeoDescription)
  997. .HasColumnType("varchar(500)")
  998. .HasCharSet("utf8")
  999. .HasCollation("utf8_general_ci");
  1000. entity.Property(e => e.SeoKeyword)
  1001. .HasColumnType("varchar(200)")
  1002. .HasCharSet("utf8")
  1003. .HasCollation("utf8_general_ci");
  1004. entity.Property(e => e.SeoTitle)
  1005. .HasColumnType("varchar(100)")
  1006. .HasCharSet("utf8")
  1007. .HasCollation("utf8_general_ci");
  1008. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1009. entity.Property(e => e.Status).HasColumnType("int(11)");
  1010. entity.Property(e => e.Title)
  1011. .HasColumnType("varchar(200)")
  1012. .HasCharSet("utf8")
  1013. .HasCollation("utf8_general_ci");
  1014. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1015. entity.Property(e => e.UpdateMan)
  1016. .HasColumnType("varchar(50)")
  1017. .HasCharSet("utf8")
  1018. .HasCollation("utf8_general_ci");
  1019. entity.Property(e => e.Version).HasColumnType("int(11)");
  1020. });
  1021. modelBuilder.Entity<PosCouponDaySummary>(entity =>
  1022. {
  1023. entity.Property(e => e.Id).HasColumnType("int(11)");
  1024. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  1025. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1026. entity.Property(e => e.CreateMan)
  1027. .HasColumnType("varchar(50)")
  1028. .HasCharSet("utf8")
  1029. .HasCollation("utf8_general_ci");
  1030. entity.Property(e => e.OpId).HasColumnType("int(11)");
  1031. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1032. entity.Property(e => e.SaleCount).HasColumnType("int(11)");
  1033. entity.Property(e => e.SeoDescription)
  1034. .HasColumnType("varchar(500)")
  1035. .HasCharSet("utf8")
  1036. .HasCollation("utf8_general_ci");
  1037. entity.Property(e => e.SeoKeyword)
  1038. .HasColumnType("varchar(200)")
  1039. .HasCharSet("utf8")
  1040. .HasCollation("utf8_general_ci");
  1041. entity.Property(e => e.SeoTitle)
  1042. .HasColumnType("varchar(100)")
  1043. .HasCharSet("utf8")
  1044. .HasCollation("utf8_general_ci");
  1045. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1046. entity.Property(e => e.Status).HasColumnType("int(11)");
  1047. entity.Property(e => e.TradeDate)
  1048. .HasColumnType("varchar(8)")
  1049. .HasCharSet("utf8")
  1050. .HasCollation("utf8_general_ci");
  1051. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1052. entity.Property(e => e.UpdateMan)
  1053. .HasColumnType("varchar(50)")
  1054. .HasCharSet("utf8")
  1055. .HasCollation("utf8_general_ci");
  1056. entity.Property(e => e.Version).HasColumnType("int(11)");
  1057. });
  1058. modelBuilder.Entity<PosCouponForOp>(entity =>
  1059. {
  1060. entity.Property(e => e.Id).HasColumnType("int(11)");
  1061. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1062. entity.Property(e => e.CreateMan)
  1063. .HasColumnType("varchar(50)")
  1064. .HasCharSet("utf8")
  1065. .HasCollation("utf8_general_ci");
  1066. entity.Property(e => e.OutNum).HasColumnType("int(11)");
  1067. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1068. entity.Property(e => e.SeoDescription)
  1069. .HasColumnType("varchar(500)")
  1070. .HasCharSet("utf8")
  1071. .HasCollation("utf8_general_ci");
  1072. entity.Property(e => e.SeoKeyword)
  1073. .HasColumnType("varchar(200)")
  1074. .HasCharSet("utf8")
  1075. .HasCollation("utf8_general_ci");
  1076. entity.Property(e => e.SeoTitle)
  1077. .HasColumnType("varchar(100)")
  1078. .HasCharSet("utf8")
  1079. .HasCollation("utf8_general_ci");
  1080. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1081. entity.Property(e => e.Status).HasColumnType("int(11)");
  1082. entity.Property(e => e.StockNum).HasColumnType("int(11)");
  1083. entity.Property(e => e.TotalNum).HasColumnType("int(11)");
  1084. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1085. entity.Property(e => e.UpdateMan)
  1086. .HasColumnType("varchar(50)")
  1087. .HasCharSet("utf8")
  1088. .HasCollation("utf8_general_ci");
  1089. entity.Property(e => e.Version).HasColumnType("int(11)");
  1090. });
  1091. modelBuilder.Entity<PosCouponMonthSummary>(entity =>
  1092. {
  1093. entity.Property(e => e.Id).HasColumnType("int(11)");
  1094. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  1095. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1096. entity.Property(e => e.CreateMan)
  1097. .HasColumnType("varchar(50)")
  1098. .HasCharSet("utf8")
  1099. .HasCollation("utf8_general_ci");
  1100. entity.Property(e => e.OpId).HasColumnType("int(11)");
  1101. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1102. entity.Property(e => e.SaleCount).HasColumnType("int(11)");
  1103. entity.Property(e => e.SeoDescription)
  1104. .HasColumnType("varchar(500)")
  1105. .HasCharSet("utf8")
  1106. .HasCollation("utf8_general_ci");
  1107. entity.Property(e => e.SeoKeyword)
  1108. .HasColumnType("varchar(200)")
  1109. .HasCharSet("utf8")
  1110. .HasCollation("utf8_general_ci");
  1111. entity.Property(e => e.SeoTitle)
  1112. .HasColumnType("varchar(100)")
  1113. .HasCharSet("utf8")
  1114. .HasCollation("utf8_general_ci");
  1115. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1116. entity.Property(e => e.Status).HasColumnType("int(11)");
  1117. entity.Property(e => e.TradeMonth)
  1118. .HasColumnType("varchar(6)")
  1119. .HasCharSet("utf8")
  1120. .HasCollation("utf8_general_ci");
  1121. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1122. entity.Property(e => e.UpdateMan)
  1123. .HasColumnType("varchar(50)")
  1124. .HasCharSet("utf8")
  1125. .HasCollation("utf8_general_ci");
  1126. entity.Property(e => e.Version).HasColumnType("int(11)");
  1127. });
  1128. modelBuilder.Entity<PosCouponOrders>(entity =>
  1129. {
  1130. entity.Property(e => e.Id).HasColumnType("int(11)");
  1131. entity.Property(e => e.AfterOut).HasColumnType("int(11)");
  1132. entity.Property(e => e.AfterStock).HasColumnType("int(11)");
  1133. entity.Property(e => e.AfterTotal).HasColumnType("int(11)");
  1134. entity.Property(e => e.BeforeOut).HasColumnType("int(11)");
  1135. entity.Property(e => e.BeforeStock).HasColumnType("int(11)");
  1136. entity.Property(e => e.BeforeTotal).HasColumnType("int(11)");
  1137. entity.Property(e => e.ChangeCount).HasColumnType("int(11)");
  1138. entity.Property(e => e.ChangeKind).HasColumnType("int(11)");
  1139. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1140. entity.Property(e => e.CreateMan)
  1141. .HasColumnType("varchar(50)")
  1142. .HasCharSet("utf8")
  1143. .HasCollation("utf8_general_ci");
  1144. entity.Property(e => e.OpId).HasColumnType("int(11)");
  1145. entity.Property(e => e.OrderNo)
  1146. .HasColumnType("varchar(50)")
  1147. .HasCharSet("utf8")
  1148. .HasCollation("utf8_general_ci");
  1149. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1150. entity.Property(e => e.SeoDescription)
  1151. .HasColumnType("varchar(500)")
  1152. .HasCharSet("utf8")
  1153. .HasCollation("utf8_general_ci");
  1154. entity.Property(e => e.SeoKeyword)
  1155. .HasColumnType("varchar(200)")
  1156. .HasCharSet("utf8")
  1157. .HasCollation("utf8_general_ci");
  1158. entity.Property(e => e.SeoTitle)
  1159. .HasColumnType("varchar(100)")
  1160. .HasCharSet("utf8")
  1161. .HasCollation("utf8_general_ci");
  1162. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1163. entity.Property(e => e.Status).HasColumnType("int(11)");
  1164. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1165. entity.Property(e => e.UpdateMan)
  1166. .HasColumnType("varchar(50)")
  1167. .HasCharSet("utf8")
  1168. .HasCollation("utf8_general_ci");
  1169. entity.Property(e => e.Version).HasColumnType("int(11)");
  1170. });
  1171. modelBuilder.Entity<PosCouponRecord>(entity =>
  1172. {
  1173. entity.Property(e => e.Id).HasColumnType("int(11)");
  1174. entity.Property(e => e.ChangeKind).HasColumnType("int(11)");
  1175. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1176. entity.Property(e => e.CreateMan)
  1177. .HasColumnType("varchar(50)")
  1178. .HasCharSet("utf8")
  1179. .HasCollation("utf8_general_ci");
  1180. entity.Property(e => e.FromUserId).HasColumnType("int(11)");
  1181. entity.Property(e => e.OrderNo)
  1182. .HasColumnType("varchar(50)")
  1183. .HasCharSet("utf8")
  1184. .HasCollation("utf8_general_ci");
  1185. entity.Property(e => e.PosCouponId).HasColumnType("int(11)");
  1186. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1187. entity.Property(e => e.SeoDescription)
  1188. .HasColumnType("varchar(500)")
  1189. .HasCharSet("utf8")
  1190. .HasCollation("utf8_general_ci");
  1191. entity.Property(e => e.SeoKeyword)
  1192. .HasColumnType("varchar(200)")
  1193. .HasCharSet("utf8")
  1194. .HasCollation("utf8_general_ci");
  1195. entity.Property(e => e.SeoTitle)
  1196. .HasColumnType("varchar(100)")
  1197. .HasCharSet("utf8")
  1198. .HasCollation("utf8_general_ci");
  1199. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1200. entity.Property(e => e.Status).HasColumnType("int(11)");
  1201. entity.Property(e => e.ToUserId).HasColumnType("int(11)");
  1202. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1203. entity.Property(e => e.UpdateMan)
  1204. .HasColumnType("varchar(50)")
  1205. .HasCharSet("utf8")
  1206. .HasCollation("utf8_general_ci");
  1207. entity.Property(e => e.Version).HasColumnType("int(11)");
  1208. });
  1209. modelBuilder.Entity<PosCoupons>(entity =>
  1210. {
  1211. entity.Property(e => e.Id).HasColumnType("int(11)");
  1212. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1213. entity.Property(e => e.CreateMan)
  1214. .HasColumnType("varchar(50)")
  1215. .HasCharSet("utf8")
  1216. .HasCollation("utf8_general_ci");
  1217. entity.Property(e => e.OpId).HasColumnType("int(11)");
  1218. entity.Property(e => e.PosCouponId).HasColumnType("int(11)");
  1219. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1220. entity.Property(e => e.SeoDescription)
  1221. .HasColumnType("varchar(500)")
  1222. .HasCharSet("utf8")
  1223. .HasCollation("utf8_general_ci");
  1224. entity.Property(e => e.SeoKeyword)
  1225. .HasColumnType("varchar(200)")
  1226. .HasCharSet("utf8")
  1227. .HasCollation("utf8_general_ci");
  1228. entity.Property(e => e.SeoTitle)
  1229. .HasColumnType("varchar(100)")
  1230. .HasCharSet("utf8")
  1231. .HasCollation("utf8_general_ci");
  1232. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1233. entity.Property(e => e.Status).HasColumnType("int(11)");
  1234. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1235. entity.Property(e => e.UpdateMan)
  1236. .HasColumnType("varchar(50)")
  1237. .HasCharSet("utf8")
  1238. .HasCollation("utf8_general_ci");
  1239. entity.Property(e => e.Version).HasColumnType("int(11)");
  1240. });
  1241. modelBuilder.Entity<PosMachines>(entity =>
  1242. {
  1243. entity.Property(e => e.Id).HasColumnType("int(11)");
  1244. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  1245. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1246. entity.Property(e => e.CreateMan)
  1247. .HasColumnType("varchar(50)")
  1248. .HasCharSet("utf8")
  1249. .HasCollation("utf8_general_ci");
  1250. entity.Property(e => e.OpId).HasColumnType("int(11)");
  1251. entity.Property(e => e.PosId).HasColumnType("int(11)");
  1252. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1253. entity.Property(e => e.SeoDescription)
  1254. .HasColumnType("varchar(500)")
  1255. .HasCharSet("utf8")
  1256. .HasCollation("utf8_general_ci");
  1257. entity.Property(e => e.SeoKeyword)
  1258. .HasColumnType("varchar(200)")
  1259. .HasCharSet("utf8")
  1260. .HasCollation("utf8_general_ci");
  1261. entity.Property(e => e.SeoTitle)
  1262. .HasColumnType("varchar(100)")
  1263. .HasCharSet("utf8")
  1264. .HasCollation("utf8_general_ci");
  1265. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1266. entity.Property(e => e.Status).HasColumnType("int(11)");
  1267. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1268. entity.Property(e => e.UpdateMan)
  1269. .HasColumnType("varchar(50)")
  1270. .HasCharSet("utf8")
  1271. .HasCollation("utf8_general_ci");
  1272. entity.Property(e => e.Version).HasColumnType("int(11)");
  1273. });
  1274. modelBuilder.Entity<PublicAccountSet>(entity =>
  1275. {
  1276. entity.Property(e => e.Id).HasColumnType("int(11)");
  1277. entity.Property(e => e.AlipayAppId)
  1278. .HasColumnType("varchar(50)")
  1279. .HasCharSet("utf8")
  1280. .HasCollation("utf8_general_ci");
  1281. entity.Property(e => e.AlipayPartnerId)
  1282. .HasColumnType("varchar(50)")
  1283. .HasCharSet("utf8")
  1284. .HasCollation("utf8_general_ci");
  1285. entity.Property(e => e.AlipayPrivateKey)
  1286. .HasColumnType("mediumtext")
  1287. .HasCharSet("utf8")
  1288. .HasCollation("utf8_general_ci");
  1289. entity.Property(e => e.AlipayPublicKey)
  1290. .HasColumnType("mediumtext")
  1291. .HasCharSet("utf8")
  1292. .HasCollation("utf8_general_ci");
  1293. entity.Property(e => e.AliyunAccessKeyId)
  1294. .HasColumnType("varchar(50)")
  1295. .HasCharSet("utf8")
  1296. .HasCollation("utf8_general_ci");
  1297. entity.Property(e => e.AliyunAccessKeySecret)
  1298. .HasColumnType("varchar(50)")
  1299. .HasCharSet("utf8")
  1300. .HasCollation("utf8_general_ci");
  1301. entity.Property(e => e.AliyunAndroidActivity)
  1302. .HasColumnType("varchar(100)")
  1303. .HasCharSet("utf8")
  1304. .HasCollation("utf8_general_ci");
  1305. entity.Property(e => e.AliyunAndroidNotifyTitle)
  1306. .HasColumnType("varchar(20)")
  1307. .HasCharSet("utf8")
  1308. .HasCollation("utf8_general_ci");
  1309. entity.Property(e => e.AliyunPushAndroidAppId)
  1310. .HasColumnType("varchar(50)")
  1311. .HasCharSet("utf8")
  1312. .HasCollation("utf8_general_ci");
  1313. entity.Property(e => e.AliyunPushAndroidAppSecret)
  1314. .HasColumnType("varchar(50)")
  1315. .HasCharSet("utf8")
  1316. .HasCollation("utf8_general_ci");
  1317. entity.Property(e => e.AliyunPushIosAppId)
  1318. .HasColumnType("varchar(500)")
  1319. .HasCharSet("utf8")
  1320. .HasCollation("utf8_general_ci");
  1321. entity.Property(e => e.AliyunPushIosAppSecret)
  1322. .HasColumnType("varchar(50)")
  1323. .HasCharSet("utf8")
  1324. .HasCollation("utf8_general_ci");
  1325. entity.Property(e => e.AliyunRegionId)
  1326. .HasColumnType("varchar(30)")
  1327. .HasCharSet("utf8")
  1328. .HasCollation("utf8_general_ci");
  1329. entity.Property(e => e.ErpApiUrl)
  1330. .HasColumnType("varchar(200)")
  1331. .HasCharSet("utf8")
  1332. .HasCollation("utf8_general_ci");
  1333. entity.Property(e => e.ErpAppCode)
  1334. .HasColumnType("varchar(100)")
  1335. .HasCharSet("utf8")
  1336. .HasCollation("utf8_general_ci");
  1337. entity.Property(e => e.MeiQiaAppKey)
  1338. .HasColumnType("varchar(50)")
  1339. .HasCharSet("utf8")
  1340. .HasCollation("utf8_general_ci");
  1341. entity.Property(e => e.MobAppKey)
  1342. .HasColumnType("varchar(50)")
  1343. .HasCharSet("utf8")
  1344. .HasCollation("utf8_general_ci");
  1345. entity.Property(e => e.MobAppSecret)
  1346. .HasColumnType("varchar(50)")
  1347. .HasCharSet("utf8")
  1348. .HasCollation("utf8_general_ci");
  1349. entity.Property(e => e.QqAndroidAppId)
  1350. .HasColumnType("varchar(50)")
  1351. .HasCharSet("utf8")
  1352. .HasCollation("utf8_general_ci");
  1353. entity.Property(e => e.QqAndroidAppKey)
  1354. .HasColumnType("varchar(50)")
  1355. .HasCharSet("utf8")
  1356. .HasCollation("utf8_general_ci");
  1357. entity.Property(e => e.QqIosAppId)
  1358. .HasColumnType("varchar(50)")
  1359. .HasCharSet("utf8")
  1360. .HasCollation("utf8_general_ci");
  1361. entity.Property(e => e.QqIosAppKey)
  1362. .HasColumnType("varchar(50)")
  1363. .HasCharSet("utf8")
  1364. .HasCollation("utf8_general_ci");
  1365. entity.Property(e => e.ServerIp)
  1366. .HasColumnType("varchar(15)")
  1367. .HasCharSet("utf8")
  1368. .HasCollation("utf8_general_ci");
  1369. entity.Property(e => e.SmsApiDefaultTemplate)
  1370. .HasColumnType("varchar(200)")
  1371. .HasCharSet("utf8")
  1372. .HasCollation("utf8_general_ci");
  1373. entity.Property(e => e.SmsApiPwd)
  1374. .HasColumnType("varchar(50)")
  1375. .HasCharSet("utf8")
  1376. .HasCollation("utf8_general_ci");
  1377. entity.Property(e => e.SmsApiSign)
  1378. .HasColumnType("varchar(10)")
  1379. .HasCharSet("utf8")
  1380. .HasCollation("utf8_general_ci");
  1381. entity.Property(e => e.SmsApiUserId)
  1382. .HasColumnType("varchar(50)")
  1383. .HasCharSet("utf8")
  1384. .HasCollation("utf8_general_ci");
  1385. entity.Property(e => e.WeChatAppId)
  1386. .HasColumnType("varchar(50)")
  1387. .HasCharSet("utf8")
  1388. .HasCollation("utf8_general_ci");
  1389. entity.Property(e => e.WeChatAppSecret)
  1390. .HasColumnType("varchar(50)")
  1391. .HasCharSet("utf8")
  1392. .HasCollation("utf8_general_ci");
  1393. entity.Property(e => e.WeChatMchId)
  1394. .HasColumnType("varchar(20)")
  1395. .HasCharSet("utf8")
  1396. .HasCollation("utf8_general_ci");
  1397. entity.Property(e => e.WeChatMiniAppId)
  1398. .HasColumnType("varchar(50)")
  1399. .HasCharSet("utf8")
  1400. .HasCollation("utf8_general_ci");
  1401. entity.Property(e => e.WeChatMiniAppSecret)
  1402. .HasColumnType("varchar(50)")
  1403. .HasCharSet("utf8")
  1404. .HasCollation("utf8_general_ci");
  1405. entity.Property(e => e.WeChatOpenAppId)
  1406. .HasColumnType("varchar(50)")
  1407. .HasCharSet("utf8")
  1408. .HasCollation("utf8_general_ci");
  1409. entity.Property(e => e.WeChatOpenAppSecret)
  1410. .HasColumnType("varchar(50)")
  1411. .HasCharSet("utf8")
  1412. .HasCollation("utf8_general_ci");
  1413. entity.Property(e => e.WeChatPayKey)
  1414. .HasColumnType("varchar(50)")
  1415. .HasCharSet("utf8")
  1416. .HasCollation("utf8_general_ci");
  1417. });
  1418. modelBuilder.Entity<RightDic>(entity =>
  1419. {
  1420. entity.Property(e => e.Id)
  1421. .HasColumnName("ID")
  1422. .HasColumnType("varchar(50)")
  1423. .HasCharSet("utf8")
  1424. .HasCollation("utf8_general_ci");
  1425. entity.Property(e => e.Icon)
  1426. .HasColumnType("varchar(50)")
  1427. .HasCharSet("utf8")
  1428. .HasCollation("utf8_general_ci");
  1429. entity.Property(e => e.MainDataList)
  1430. .HasColumnType("bit(1)")
  1431. .HasDefaultValueSql("b'0'");
  1432. entity.Property(e => e.MainMenu)
  1433. .HasColumnType("bit(1)")
  1434. .HasDefaultValueSql("b'0'");
  1435. entity.Property(e => e.MainStat)
  1436. .HasColumnType("bit(1)")
  1437. .HasDefaultValueSql("b'0'");
  1438. entity.Property(e => e.Name)
  1439. .HasColumnType("varchar(50)")
  1440. .HasCharSet("utf8")
  1441. .HasCollation("utf8_general_ci");
  1442. entity.Property(e => e.OtherRight)
  1443. .HasColumnType("varchar(500)")
  1444. .HasCharSet("utf8")
  1445. .HasCollation("utf8_general_ci");
  1446. entity.Property(e => e.RightLevel).HasColumnType("int(11)");
  1447. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1448. entity.Property(e => e.Url)
  1449. .HasColumnType("varchar(200)")
  1450. .HasCharSet("utf8")
  1451. .HasCollation("utf8_general_ci");
  1452. });
  1453. modelBuilder.Entity<SendDaySummary>(entity =>
  1454. {
  1455. entity.Property(e => e.Id).HasColumnType("int(11)");
  1456. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  1457. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1458. entity.Property(e => e.CreateMan)
  1459. .HasColumnType("varchar(50)")
  1460. .HasCharSet("utf8")
  1461. .HasCollation("utf8_general_ci");
  1462. entity.Property(e => e.OpId).HasColumnType("int(11)");
  1463. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1464. entity.Property(e => e.SendCount).HasColumnType("int(11)");
  1465. entity.Property(e => e.SeoDescription)
  1466. .HasColumnType("varchar(500)")
  1467. .HasCharSet("utf8")
  1468. .HasCollation("utf8_general_ci");
  1469. entity.Property(e => e.SeoKeyword)
  1470. .HasColumnType("varchar(200)")
  1471. .HasCharSet("utf8")
  1472. .HasCollation("utf8_general_ci");
  1473. entity.Property(e => e.SeoTitle)
  1474. .HasColumnType("varchar(100)")
  1475. .HasCharSet("utf8")
  1476. .HasCollation("utf8_general_ci");
  1477. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1478. entity.Property(e => e.Status).HasColumnType("int(11)");
  1479. entity.Property(e => e.TradeDate)
  1480. .HasColumnType("varchar(8)")
  1481. .HasCharSet("utf8")
  1482. .HasCollation("utf8_general_ci");
  1483. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1484. entity.Property(e => e.UpdateMan)
  1485. .HasColumnType("varchar(50)")
  1486. .HasCharSet("utf8")
  1487. .HasCollation("utf8_general_ci");
  1488. entity.Property(e => e.Version).HasColumnType("int(11)");
  1489. });
  1490. modelBuilder.Entity<SendMonthSummary>(entity =>
  1491. {
  1492. entity.Property(e => e.Id).HasColumnType("int(11)");
  1493. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  1494. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1495. entity.Property(e => e.CreateMan)
  1496. .HasColumnType("varchar(50)")
  1497. .HasCharSet("utf8")
  1498. .HasCollation("utf8_general_ci");
  1499. entity.Property(e => e.OpId).HasColumnType("int(11)");
  1500. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1501. entity.Property(e => e.SendCount).HasColumnType("int(11)");
  1502. entity.Property(e => e.SeoDescription)
  1503. .HasColumnType("varchar(500)")
  1504. .HasCharSet("utf8")
  1505. .HasCollation("utf8_general_ci");
  1506. entity.Property(e => e.SeoKeyword)
  1507. .HasColumnType("varchar(200)")
  1508. .HasCharSet("utf8")
  1509. .HasCollation("utf8_general_ci");
  1510. entity.Property(e => e.SeoTitle)
  1511. .HasColumnType("varchar(100)")
  1512. .HasCharSet("utf8")
  1513. .HasCollation("utf8_general_ci");
  1514. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1515. entity.Property(e => e.Status).HasColumnType("int(11)");
  1516. entity.Property(e => e.TradeMonth)
  1517. .HasColumnType("varchar(6)")
  1518. .HasCharSet("utf8")
  1519. .HasCollation("utf8_general_ci");
  1520. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1521. entity.Property(e => e.UpdateMan)
  1522. .HasColumnType("varchar(50)")
  1523. .HasCharSet("utf8")
  1524. .HasCollation("utf8_general_ci");
  1525. entity.Property(e => e.Version).HasColumnType("int(11)");
  1526. });
  1527. modelBuilder.Entity<StoreActMerDaySummary>(entity =>
  1528. {
  1529. entity.Property(e => e.Id).HasColumnType("int(11)");
  1530. entity.Property(e => e.ActCount).HasColumnType("int(11)");
  1531. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  1532. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1533. entity.Property(e => e.CreateMan)
  1534. .HasColumnType("varchar(50)")
  1535. .HasCharSet("utf8")
  1536. .HasCollation("utf8_general_ci");
  1537. entity.Property(e => e.OpId).HasColumnType("int(11)");
  1538. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1539. entity.Property(e => e.SeoDescription)
  1540. .HasColumnType("varchar(500)")
  1541. .HasCharSet("utf8")
  1542. .HasCollation("utf8_general_ci");
  1543. entity.Property(e => e.SeoKeyword)
  1544. .HasColumnType("varchar(200)")
  1545. .HasCharSet("utf8")
  1546. .HasCollation("utf8_general_ci");
  1547. entity.Property(e => e.SeoTitle)
  1548. .HasColumnType("varchar(100)")
  1549. .HasCharSet("utf8")
  1550. .HasCollation("utf8_general_ci");
  1551. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1552. entity.Property(e => e.Status).HasColumnType("int(11)");
  1553. entity.Property(e => e.TradeDate)
  1554. .HasColumnType("varchar(8)")
  1555. .HasCharSet("utf8")
  1556. .HasCollation("utf8_general_ci");
  1557. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1558. entity.Property(e => e.UpdateMan)
  1559. .HasColumnType("varchar(50)")
  1560. .HasCharSet("utf8")
  1561. .HasCollation("utf8_general_ci");
  1562. entity.Property(e => e.Version).HasColumnType("int(11)");
  1563. });
  1564. modelBuilder.Entity<StoreActMerMonthSummary>(entity =>
  1565. {
  1566. entity.Property(e => e.Id).HasColumnType("int(11)");
  1567. entity.Property(e => e.ActCount).HasColumnType("int(11)");
  1568. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  1569. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1570. entity.Property(e => e.CreateMan)
  1571. .HasColumnType("varchar(50)")
  1572. .HasCharSet("utf8")
  1573. .HasCollation("utf8_general_ci");
  1574. entity.Property(e => e.OpId).HasColumnType("int(11)");
  1575. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1576. entity.Property(e => e.SeoDescription)
  1577. .HasColumnType("varchar(500)")
  1578. .HasCharSet("utf8")
  1579. .HasCollation("utf8_general_ci");
  1580. entity.Property(e => e.SeoKeyword)
  1581. .HasColumnType("varchar(200)")
  1582. .HasCharSet("utf8")
  1583. .HasCollation("utf8_general_ci");
  1584. entity.Property(e => e.SeoTitle)
  1585. .HasColumnType("varchar(100)")
  1586. .HasCharSet("utf8")
  1587. .HasCollation("utf8_general_ci");
  1588. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1589. entity.Property(e => e.Status).HasColumnType("int(11)");
  1590. entity.Property(e => e.TradeMonth)
  1591. .HasColumnType("varchar(6)")
  1592. .HasCharSet("utf8")
  1593. .HasCollation("utf8_general_ci");
  1594. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1595. entity.Property(e => e.UpdateMan)
  1596. .HasColumnType("varchar(50)")
  1597. .HasCharSet("utf8")
  1598. .HasCollation("utf8_general_ci");
  1599. entity.Property(e => e.Version).HasColumnType("int(11)");
  1600. });
  1601. modelBuilder.Entity<StoreForOperate>(entity =>
  1602. {
  1603. entity.Property(e => e.Id).HasColumnType("int(11)");
  1604. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1605. entity.Property(e => e.CreateMan)
  1606. .HasColumnType("varchar(50)")
  1607. .HasCharSet("utf8")
  1608. .HasCollation("utf8_general_ci");
  1609. entity.Property(e => e.OpId).HasColumnType("int(11)");
  1610. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1611. entity.Property(e => e.SeoDescription)
  1612. .HasColumnType("varchar(500)")
  1613. .HasCharSet("utf8")
  1614. .HasCollation("utf8_general_ci");
  1615. entity.Property(e => e.SeoKeyword)
  1616. .HasColumnType("varchar(200)")
  1617. .HasCharSet("utf8")
  1618. .HasCollation("utf8_general_ci");
  1619. entity.Property(e => e.SeoTitle)
  1620. .HasColumnType("varchar(100)")
  1621. .HasCharSet("utf8")
  1622. .HasCollation("utf8_general_ci");
  1623. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1624. entity.Property(e => e.Status).HasColumnType("int(11)");
  1625. entity.Property(e => e.StoreId).HasColumnType("int(11)");
  1626. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1627. entity.Property(e => e.UpdateMan)
  1628. .HasColumnType("varchar(50)")
  1629. .HasCharSet("utf8")
  1630. .HasCollation("utf8_general_ci");
  1631. entity.Property(e => e.Version).HasColumnType("int(11)");
  1632. });
  1633. modelBuilder.Entity<StoreMachineApply>(entity =>
  1634. {
  1635. entity.Property(e => e.Id).HasColumnType("int(11)");
  1636. entity.Property(e => e.ApplyNo)
  1637. .HasColumnType("varchar(50)")
  1638. .HasCharSet("utf8")
  1639. .HasCollation("utf8_general_ci");
  1640. entity.Property(e => e.ApplyNum).HasColumnType("int(11)");
  1641. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  1642. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1643. entity.Property(e => e.CreateMan)
  1644. .HasColumnType("varchar(50)")
  1645. .HasCharSet("utf8")
  1646. .HasCollation("utf8_general_ci");
  1647. entity.Property(e => e.ErpCode)
  1648. .HasColumnType("varchar(50)")
  1649. .HasCharSet("utf8")
  1650. .HasCollation("utf8_general_ci");
  1651. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1652. entity.Property(e => e.SendMode)
  1653. .HasColumnType("varchar(50)")
  1654. .HasCharSet("utf8")
  1655. .HasCollation("utf8_general_ci");
  1656. entity.Property(e => e.SendNum).HasColumnType("int(11)");
  1657. entity.Property(e => e.SendSn)
  1658. .HasColumnType("mediumtext")
  1659. .HasCharSet("utf8")
  1660. .HasCollation("utf8_general_ci");
  1661. entity.Property(e => e.SeoDescription)
  1662. .HasColumnType("varchar(500)")
  1663. .HasCharSet("utf8")
  1664. .HasCollation("utf8_general_ci");
  1665. entity.Property(e => e.SeoKeyword)
  1666. .HasColumnType("varchar(200)")
  1667. .HasCharSet("utf8")
  1668. .HasCollation("utf8_general_ci");
  1669. entity.Property(e => e.SeoTitle)
  1670. .HasColumnType("varchar(100)")
  1671. .HasCharSet("utf8")
  1672. .HasCollation("utf8_general_ci");
  1673. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1674. entity.Property(e => e.Status).HasColumnType("int(11)");
  1675. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1676. entity.Property(e => e.UpdateMan)
  1677. .HasColumnType("varchar(50)")
  1678. .HasCharSet("utf8")
  1679. .HasCollation("utf8_general_ci");
  1680. entity.Property(e => e.UseAmount).HasColumnType("decimal(18,2)");
  1681. entity.Property(e => e.UserId).HasColumnType("int(11)");
  1682. entity.Property(e => e.Version).HasColumnType("int(11)");
  1683. });
  1684. modelBuilder.Entity<StoreSendDaySummary>(entity =>
  1685. {
  1686. entity.Property(e => e.Id).HasColumnType("int(11)");
  1687. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  1688. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1689. entity.Property(e => e.CreateMan)
  1690. .HasColumnType("varchar(50)")
  1691. .HasCharSet("utf8")
  1692. .HasCollation("utf8_general_ci");
  1693. entity.Property(e => e.OpId).HasColumnType("int(11)");
  1694. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1695. entity.Property(e => e.SendCount).HasColumnType("int(11)");
  1696. entity.Property(e => e.SeoDescription)
  1697. .HasColumnType("varchar(500)")
  1698. .HasCharSet("utf8")
  1699. .HasCollation("utf8_general_ci");
  1700. entity.Property(e => e.SeoKeyword)
  1701. .HasColumnType("varchar(200)")
  1702. .HasCharSet("utf8")
  1703. .HasCollation("utf8_general_ci");
  1704. entity.Property(e => e.SeoTitle)
  1705. .HasColumnType("varchar(100)")
  1706. .HasCharSet("utf8")
  1707. .HasCollation("utf8_general_ci");
  1708. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1709. entity.Property(e => e.Status).HasColumnType("int(11)");
  1710. entity.Property(e => e.TradeDate)
  1711. .HasColumnType("varchar(8)")
  1712. .HasCharSet("utf8")
  1713. .HasCollation("utf8_general_ci");
  1714. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1715. entity.Property(e => e.UpdateMan)
  1716. .HasColumnType("varchar(50)")
  1717. .HasCharSet("utf8")
  1718. .HasCollation("utf8_general_ci");
  1719. entity.Property(e => e.Version).HasColumnType("int(11)");
  1720. });
  1721. modelBuilder.Entity<StoreSendMonthSummary>(entity =>
  1722. {
  1723. entity.Property(e => e.Id).HasColumnType("int(11)");
  1724. entity.Property(e => e.BrandId).HasColumnType("int(11)");
  1725. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1726. entity.Property(e => e.CreateMan)
  1727. .HasColumnType("varchar(50)")
  1728. .HasCharSet("utf8")
  1729. .HasCollation("utf8_general_ci");
  1730. entity.Property(e => e.OpId).HasColumnType("int(11)");
  1731. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1732. entity.Property(e => e.SendCount).HasColumnType("int(11)");
  1733. entity.Property(e => e.SeoDescription)
  1734. .HasColumnType("varchar(500)")
  1735. .HasCharSet("utf8")
  1736. .HasCollation("utf8_general_ci");
  1737. entity.Property(e => e.SeoKeyword)
  1738. .HasColumnType("varchar(200)")
  1739. .HasCharSet("utf8")
  1740. .HasCollation("utf8_general_ci");
  1741. entity.Property(e => e.SeoTitle)
  1742. .HasColumnType("varchar(100)")
  1743. .HasCharSet("utf8")
  1744. .HasCollation("utf8_general_ci");
  1745. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1746. entity.Property(e => e.Status).HasColumnType("int(11)");
  1747. entity.Property(e => e.TradeMonth)
  1748. .HasColumnType("varchar(6)")
  1749. .HasCharSet("utf8")
  1750. .HasCollation("utf8_general_ci");
  1751. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1752. entity.Property(e => e.UpdateMan)
  1753. .HasColumnType("varchar(50)")
  1754. .HasCharSet("utf8")
  1755. .HasCollation("utf8_general_ci");
  1756. entity.Property(e => e.Version).HasColumnType("int(11)");
  1757. });
  1758. modelBuilder.Entity<SysAdmin>(entity =>
  1759. {
  1760. entity.Property(e => e.Id).HasColumnType("int(11)");
  1761. entity.Property(e => e.AdminName)
  1762. .HasColumnType("varchar(50)")
  1763. .HasCharSet("utf8")
  1764. .HasCollation("utf8_general_ci");
  1765. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1766. entity.Property(e => e.CreateMan)
  1767. .HasColumnType("varchar(50)")
  1768. .HasCharSet("utf8")
  1769. .HasCollation("utf8_general_ci");
  1770. entity.Property(e => e.FilePath)
  1771. .HasColumnType("varchar(200)")
  1772. .HasCharSet("utf8")
  1773. .HasCollation("utf8_general_ci");
  1774. entity.Property(e => e.HeadPhoto)
  1775. .HasColumnType("varchar(200)")
  1776. .HasCharSet("utf8")
  1777. .HasCollation("utf8_general_ci");
  1778. entity.Property(e => e.LastLoginDate).HasColumnType("datetime");
  1779. entity.Property(e => e.MakerCode)
  1780. .HasColumnType("varchar(20)")
  1781. .HasCharSet("utf8")
  1782. .HasCollation("utf8_general_ci");
  1783. entity.Property(e => e.MakerMobile)
  1784. .HasColumnType("varchar(11)")
  1785. .HasCharSet("utf8")
  1786. .HasCollation("utf8_general_ci");
  1787. entity.Property(e => e.MakerName)
  1788. .HasColumnType("varchar(30)")
  1789. .HasCharSet("utf8")
  1790. .HasCollation("utf8_general_ci");
  1791. entity.Property(e => e.OpCode)
  1792. .HasColumnType("varchar(20)")
  1793. .HasCharSet("utf8")
  1794. .HasCollation("utf8_general_ci");
  1795. entity.Property(e => e.Password)
  1796. .HasColumnType("varchar(32)")
  1797. .HasCharSet("utf8")
  1798. .HasCollation("utf8_general_ci");
  1799. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1800. entity.Property(e => e.RealName)
  1801. .HasColumnType("varchar(50)")
  1802. .HasCharSet("utf8")
  1803. .HasCollation("utf8_general_ci");
  1804. entity.Property(e => e.Role)
  1805. .HasColumnType("varchar(30)")
  1806. .HasCharSet("utf8")
  1807. .HasCollation("utf8_general_ci");
  1808. entity.Property(e => e.SeoDescription)
  1809. .HasColumnType("varchar(500)")
  1810. .HasCharSet("utf8")
  1811. .HasCollation("utf8_general_ci");
  1812. entity.Property(e => e.SeoKeyword)
  1813. .HasColumnType("varchar(200)")
  1814. .HasCharSet("utf8")
  1815. .HasCollation("utf8_general_ci");
  1816. entity.Property(e => e.SeoTitle)
  1817. .HasColumnType("varchar(100)")
  1818. .HasCharSet("utf8")
  1819. .HasCollation("utf8_general_ci");
  1820. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1821. entity.Property(e => e.Status).HasColumnType("int(11)");
  1822. entity.Property(e => e.StoreCount).HasColumnType("int(11)");
  1823. entity.Property(e => e.TotalMachineCount).HasColumnType("int(11)");
  1824. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1825. entity.Property(e => e.UpdateMan)
  1826. .HasColumnType("varchar(50)")
  1827. .HasCharSet("utf8")
  1828. .HasCollation("utf8_general_ci");
  1829. entity.Property(e => e.UserId).HasColumnType("int(11)");
  1830. entity.Property(e => e.Version).HasColumnType("int(11)");
  1831. });
  1832. modelBuilder.Entity<SysAdminRole>(entity =>
  1833. {
  1834. entity.Property(e => e.Id).HasColumnType("int(11)");
  1835. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1836. entity.Property(e => e.CreateMan)
  1837. .HasColumnType("varchar(50)")
  1838. .HasCharSet("utf8")
  1839. .HasCollation("utf8_general_ci");
  1840. entity.Property(e => e.Details)
  1841. .HasColumnType("longtext")
  1842. .HasCharSet("utf8")
  1843. .HasCollation("utf8_general_ci");
  1844. entity.Property(e => e.Name)
  1845. .HasColumnType("varchar(50)")
  1846. .HasCharSet("utf8")
  1847. .HasCollation("utf8_general_ci");
  1848. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1849. entity.Property(e => e.RightInfo)
  1850. .HasColumnType("longtext")
  1851. .HasCharSet("utf8")
  1852. .HasCollation("utf8_general_ci");
  1853. entity.Property(e => e.SeoDescription)
  1854. .HasColumnType("varchar(500)")
  1855. .HasCharSet("utf8")
  1856. .HasCollation("utf8_general_ci");
  1857. entity.Property(e => e.SeoKeyword)
  1858. .HasColumnType("varchar(200)")
  1859. .HasCharSet("utf8")
  1860. .HasCollation("utf8_general_ci");
  1861. entity.Property(e => e.SeoTitle)
  1862. .HasColumnType("varchar(100)")
  1863. .HasCharSet("utf8")
  1864. .HasCollation("utf8_general_ci");
  1865. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1866. entity.Property(e => e.Status).HasColumnType("int(11)");
  1867. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1868. entity.Property(e => e.UpdateMan)
  1869. .HasColumnType("varchar(50)")
  1870. .HasCharSet("utf8")
  1871. .HasCollation("utf8_general_ci");
  1872. entity.Property(e => e.Version).HasColumnType("int(11)");
  1873. });
  1874. modelBuilder.Entity<SysLog>(entity =>
  1875. {
  1876. entity.Property(e => e.Id).HasColumnType("int(11)");
  1877. entity.Property(e => e.Contents)
  1878. .HasColumnType("varchar(200)")
  1879. .HasCharSet("utf8")
  1880. .HasCollation("utf8_general_ci");
  1881. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1882. entity.Property(e => e.CreateMan)
  1883. .HasColumnType("varchar(50)")
  1884. .HasCharSet("utf8")
  1885. .HasCollation("utf8_general_ci");
  1886. });
  1887. modelBuilder.Entity<SystemSet>(entity =>
  1888. {
  1889. entity.Property(e => e.Id).HasColumnType("int(11)");
  1890. entity.Property(e => e.Address)
  1891. .HasColumnType("varchar(100)")
  1892. .HasCharSet("utf8")
  1893. .HasCollation("utf8_general_ci");
  1894. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1895. entity.Property(e => e.CreateMan)
  1896. .HasColumnType("varchar(50)")
  1897. .HasCharSet("utf8")
  1898. .HasCollation("utf8_general_ci");
  1899. entity.Property(e => e.IndexDescription)
  1900. .HasColumnType("longtext")
  1901. .HasCharSet("utf8")
  1902. .HasCollation("utf8_general_ci");
  1903. entity.Property(e => e.IndexKeyword)
  1904. .HasColumnType("varchar(200)")
  1905. .HasCharSet("utf8")
  1906. .HasCollation("utf8_general_ci");
  1907. entity.Property(e => e.Logo)
  1908. .HasColumnType("varchar(200)")
  1909. .HasCharSet("utf8")
  1910. .HasCollation("utf8_general_ci");
  1911. entity.Property(e => e.Phone)
  1912. .HasColumnType("varchar(100)")
  1913. .HasCharSet("utf8")
  1914. .HasCollation("utf8_general_ci");
  1915. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  1916. entity.Property(e => e.RightInfo)
  1917. .HasColumnType("longtext")
  1918. .HasCharSet("utf8")
  1919. .HasCollation("utf8_general_ci");
  1920. entity.Property(e => e.SeoDescription)
  1921. .HasColumnType("varchar(500)")
  1922. .HasCharSet("utf8")
  1923. .HasCollation("utf8_general_ci");
  1924. entity.Property(e => e.SeoKeyword)
  1925. .HasColumnType("varchar(200)")
  1926. .HasCharSet("utf8")
  1927. .HasCollation("utf8_general_ci");
  1928. entity.Property(e => e.SeoTitle)
  1929. .HasColumnType("varchar(100)")
  1930. .HasCharSet("utf8")
  1931. .HasCollation("utf8_general_ci");
  1932. entity.Property(e => e.Sort).HasColumnType("int(11)");
  1933. entity.Property(e => e.StartAdPhoto)
  1934. .HasColumnType("varchar(200)")
  1935. .HasCharSet("utf8")
  1936. .HasCollation("utf8_general_ci");
  1937. entity.Property(e => e.Status).HasColumnType("int(11)");
  1938. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  1939. entity.Property(e => e.UpdateMan)
  1940. .HasColumnType("varchar(50)")
  1941. .HasCharSet("utf8")
  1942. .HasCollation("utf8_general_ci");
  1943. entity.Property(e => e.UploadAutoWater)
  1944. .HasColumnType("bit(1)")
  1945. .HasDefaultValueSql("b'0'");
  1946. entity.Property(e => e.UploadAutoZoom)
  1947. .HasColumnType("bit(1)")
  1948. .HasDefaultValueSql("b'0'");
  1949. entity.Property(e => e.UploadAutoZoomHeight).HasColumnType("int(11)");
  1950. entity.Property(e => e.UploadAutoZoomQuality).HasColumnType("int(11)");
  1951. entity.Property(e => e.UploadAutoZoomWidth).HasColumnType("int(11)");
  1952. entity.Property(e => e.UploadExt)
  1953. .HasColumnType("varchar(100)")
  1954. .HasCharSet("utf8")
  1955. .HasCollation("utf8_general_ci");
  1956. entity.Property(e => e.UploadMaxSize).HasColumnType("int(11)");
  1957. entity.Property(e => e.UploadOss)
  1958. .HasColumnType("bit(1)")
  1959. .HasDefaultValueSql("b'0'");
  1960. entity.Property(e => e.UploadWaterPath)
  1961. .HasColumnType("varchar(200)")
  1962. .HasCharSet("utf8")
  1963. .HasCollation("utf8_general_ci");
  1964. entity.Property(e => e.UploadWaterPosition)
  1965. .HasColumnType("varchar(15)")
  1966. .HasCharSet("utf8")
  1967. .HasCollation("utf8_general_ci");
  1968. entity.Property(e => e.Version).HasColumnType("int(11)");
  1969. entity.Property(e => e.WebName)
  1970. .HasColumnType("varchar(50)")
  1971. .HasCharSet("utf8")
  1972. .HasCollation("utf8_general_ci");
  1973. entity.Property(e => e.WebStatCode)
  1974. .HasColumnType("longtext")
  1975. .HasCharSet("utf8")
  1976. .HasCollation("utf8_general_ci");
  1977. entity.Property(e => e.WebUrl)
  1978. .HasColumnType("varchar(200)")
  1979. .HasCharSet("utf8")
  1980. .HasCollation("utf8_general_ci");
  1981. });
  1982. modelBuilder.Entity<UploadParams>(entity =>
  1983. {
  1984. entity.Property(e => e.Id).HasColumnType("int(11)");
  1985. entity.Property(e => e.ColumnEnName)
  1986. .HasColumnType("varchar(50)")
  1987. .HasCharSet("utf8")
  1988. .HasCollation("utf8_general_ci");
  1989. entity.Property(e => e.ColumnName)
  1990. .HasColumnType("varchar(50)")
  1991. .HasCharSet("utf8")
  1992. .HasCollation("utf8_general_ci");
  1993. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  1994. entity.Property(e => e.CreateMan)
  1995. .HasColumnType("varchar(50)")
  1996. .HasCharSet("utf8")
  1997. .HasCollation("utf8_general_ci");
  1998. entity.Property(e => e.ParamString)
  1999. .HasColumnType("varchar(200)")
  2000. .HasCharSet("utf8")
  2001. .HasCollation("utf8_general_ci");
  2002. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2003. entity.Property(e => e.SeoDescription)
  2004. .HasColumnType("varchar(500)")
  2005. .HasCharSet("utf8")
  2006. .HasCollation("utf8_general_ci");
  2007. entity.Property(e => e.SeoKeyword)
  2008. .HasColumnType("varchar(200)")
  2009. .HasCharSet("utf8")
  2010. .HasCollation("utf8_general_ci");
  2011. entity.Property(e => e.SeoTitle)
  2012. .HasColumnType("varchar(100)")
  2013. .HasCharSet("utf8")
  2014. .HasCollation("utf8_general_ci");
  2015. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2016. entity.Property(e => e.Status).HasColumnType("int(11)");
  2017. entity.Property(e => e.TableEnName)
  2018. .HasColumnType("varchar(50)")
  2019. .HasCharSet("utf8")
  2020. .HasCollation("utf8_general_ci");
  2021. entity.Property(e => e.TableName)
  2022. .HasColumnType("varchar(50)")
  2023. .HasCharSet("utf8")
  2024. .HasCollation("utf8_general_ci");
  2025. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2026. entity.Property(e => e.UpdateMan)
  2027. .HasColumnType("varchar(50)")
  2028. .HasCharSet("utf8")
  2029. .HasCollation("utf8_general_ci");
  2030. entity.Property(e => e.Version).HasColumnType("int(11)");
  2031. });
  2032. modelBuilder.Entity<UserAccount>(entity =>
  2033. {
  2034. entity.Property(e => e.Id).HasColumnType("int(11)");
  2035. entity.Property(e => e.AccountStatus).HasColumnType("int(11)");
  2036. entity.Property(e => e.BalanceAmount).HasColumnType("decimal(18,2)");
  2037. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2038. entity.Property(e => e.CreateMan)
  2039. .HasColumnType("varchar(50)")
  2040. .HasCharSet("utf8")
  2041. .HasCollation("utf8_general_ci");
  2042. entity.Property(e => e.FreezeAmount).HasColumnType("decimal(18,2)");
  2043. entity.Property(e => e.PosCouponApplyAmount).HasColumnType("decimal(18,2)");
  2044. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2045. entity.Property(e => e.SeoDescription)
  2046. .HasColumnType("varchar(500)")
  2047. .HasCharSet("utf8")
  2048. .HasCollation("utf8_general_ci");
  2049. entity.Property(e => e.SeoKeyword)
  2050. .HasColumnType("varchar(200)")
  2051. .HasCharSet("utf8")
  2052. .HasCollation("utf8_general_ci");
  2053. entity.Property(e => e.SeoTitle)
  2054. .HasColumnType("varchar(100)")
  2055. .HasCharSet("utf8")
  2056. .HasCollation("utf8_general_ci");
  2057. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2058. entity.Property(e => e.Status).HasColumnType("int(11)");
  2059. entity.Property(e => e.TotalAmount).HasColumnType("decimal(18,2)");
  2060. entity.Property(e => e.TotalAmt).HasColumnType("decimal(18,2)");
  2061. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2062. entity.Property(e => e.UpdateMan)
  2063. .HasColumnType("varchar(50)")
  2064. .HasCharSet("utf8")
  2065. .HasCollation("utf8_general_ci");
  2066. entity.Property(e => e.UserId).HasColumnType("int(11)");
  2067. entity.Property(e => e.ValidAmount).HasColumnType("decimal(18,2)");
  2068. entity.Property(e => e.ValidForGetAmount).HasColumnType("decimal(18,2)");
  2069. entity.Property(e => e.Version).HasColumnType("int(11)");
  2070. entity.Property(e => e.WithdrawAmount).HasColumnType("decimal(18,2)");
  2071. entity.Property(e => e.WithdrawingAmount).HasColumnType("decimal(18,2)");
  2072. });
  2073. modelBuilder.Entity<UserAccountRecord>(entity =>
  2074. {
  2075. entity.Property(e => e.Id).HasColumnType("int(11)");
  2076. entity.Property(e => e.AfterBalanceAmount).HasColumnType("decimal(18,2)");
  2077. entity.Property(e => e.AfterFreezeAmount).HasColumnType("decimal(18,2)");
  2078. entity.Property(e => e.AfterTotalAmount).HasColumnType("decimal(18,2)");
  2079. entity.Property(e => e.BeforeBalanceAmount).HasColumnType("decimal(18,2)");
  2080. entity.Property(e => e.BeforeFreezeAmount).HasColumnType("decimal(18,2)");
  2081. entity.Property(e => e.BeforeTotalAmount).HasColumnType("decimal(18,2)");
  2082. entity.Property(e => e.ChangeAmount).HasColumnType("decimal(18,2)");
  2083. entity.Property(e => e.ChangeType).HasColumnType("int(11)");
  2084. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2085. entity.Property(e => e.CreateMan)
  2086. .HasColumnType("varchar(50)")
  2087. .HasCharSet("utf8")
  2088. .HasCollation("utf8_general_ci");
  2089. entity.Property(e => e.ProductType).HasColumnType("int(11)");
  2090. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2091. entity.Property(e => e.Remark)
  2092. .HasColumnType("varchar(64)")
  2093. .HasCharSet("utf8")
  2094. .HasCollation("utf8_general_ci");
  2095. entity.Property(e => e.SeoDescription)
  2096. .HasColumnType("varchar(500)")
  2097. .HasCharSet("utf8")
  2098. .HasCollation("utf8_general_ci");
  2099. entity.Property(e => e.SeoKeyword)
  2100. .HasColumnType("varchar(200)")
  2101. .HasCharSet("utf8")
  2102. .HasCollation("utf8_general_ci");
  2103. entity.Property(e => e.SeoTitle)
  2104. .HasColumnType("varchar(100)")
  2105. .HasCharSet("utf8")
  2106. .HasCollation("utf8_general_ci");
  2107. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2108. entity.Property(e => e.Status).HasColumnType("int(11)");
  2109. entity.Property(e => e.TransRecordNo)
  2110. .HasColumnType("varchar(32)")
  2111. .HasCharSet("utf8")
  2112. .HasCollation("utf8_general_ci");
  2113. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2114. entity.Property(e => e.UpdateMan)
  2115. .HasColumnType("varchar(50)")
  2116. .HasCharSet("utf8")
  2117. .HasCollation("utf8_general_ci");
  2118. entity.Property(e => e.UserId).HasColumnType("int(11)");
  2119. entity.Property(e => e.Version).HasColumnType("int(11)");
  2120. });
  2121. modelBuilder.Entity<UserCashRecord>(entity =>
  2122. {
  2123. entity.Property(e => e.Id).HasColumnType("int(11)");
  2124. entity.Property(e => e.ActualTradeAmount).HasColumnType("decimal(18,2)");
  2125. entity.Property(e => e.CashOrderNo)
  2126. .HasColumnType("varchar(32)")
  2127. .HasCharSet("utf8")
  2128. .HasCollation("utf8_general_ci");
  2129. entity.Property(e => e.ChanelName)
  2130. .HasColumnType("varchar(32)")
  2131. .HasCharSet("utf8")
  2132. .HasCollation("utf8_general_ci");
  2133. entity.Property(e => e.ChannelCode)
  2134. .HasColumnType("varchar(16)")
  2135. .HasCharSet("utf8")
  2136. .HasCollation("utf8_general_ci");
  2137. entity.Property(e => e.CreateDate).HasColumnType("datetime");
  2138. entity.Property(e => e.CreateMan)
  2139. .HasColumnType("varchar(50)")
  2140. .HasCharSet("utf8")
  2141. .HasCollation("utf8_general_ci");
  2142. entity.Property(e => e.IdCardNo)
  2143. .HasColumnType("varchar(18)")
  2144. .HasCharSet("utf8")
  2145. .HasCollation("utf8_general_ci");
  2146. entity.Property(e => e.Ip)
  2147. .HasColumnType("varchar(15)")
  2148. .HasCharSet("utf8")
  2149. .HasCollation("utf8_general_ci");
  2150. entity.Property(e => e.ManageFee).HasColumnType("decimal(18,2)");
  2151. entity.Property(e => e.MediaSource)
  2152. .HasColumnType("varchar(16)")
  2153. .HasCharSet("utf8")
  2154. .HasCollation("utf8_general_ci");
  2155. entity.Property(e => e.PayTradeNo)
  2156. .HasColumnType("varchar(32)")
  2157. .HasCharSet("utf8")
  2158. .HasCollation("utf8_general_ci");
  2159. entity.Property(e => e.PaymentDate).HasColumnType("datetime");
  2160. entity.Property(e => e.QueryCount).HasColumnType("int(11)");
  2161. entity.Property(e => e.Remark)
  2162. .HasColumnType("varchar(128)")
  2163. .HasCharSet("utf8")
  2164. .HasCollation("utf8_general_ci");
  2165. entity.Property(e => e.ReqData)
  2166. .HasColumnType("varchar(2048)")
  2167. .HasCharSet("utf8")
  2168. .HasCollation("utf8_general_ci");
  2169. entity.Property(e => e.ResData)
  2170. .HasColumnType("varchar(2048)")
  2171. .HasCharSet("utf8")
  2172. .HasCollation("utf8_general_ci");
  2173. entity.Property(e => e.ReturnCode)
  2174. .HasColumnType("varchar(32)")
  2175. .HasCharSet("utf8")
  2176. .HasCollation("utf8_general_ci");
  2177. entity.Property(e => e.ReturnMsg)
  2178. .HasColumnType("varchar(128)")
  2179. .HasCharSet("utf8")
  2180. .HasCollation("utf8_general_ci");
  2181. entity.Property(e => e.SeoDescription)
  2182. .HasColumnType("varchar(500)")
  2183. .HasCharSet("utf8")
  2184. .HasCollation("utf8_general_ci");
  2185. entity.Property(e => e.SeoKeyword)
  2186. .HasColumnType("varchar(200)")
  2187. .HasCharSet("utf8")
  2188. .HasCollation("utf8_general_ci");
  2189. entity.Property(e => e.SeoTitle)
  2190. .HasColumnType("varchar(100)")
  2191. .HasCharSet("utf8")
  2192. .HasCollation("utf8_general_ci");
  2193. entity.Property(e => e.SettleBankCardNo)
  2194. .HasColumnType("varchar(32)")
  2195. .HasCharSet("utf8")
  2196. .HasCollation("utf8_general_ci");
  2197. entity.Property(e => e.SettleBankName)
  2198. .HasColumnType("varchar(64)")
  2199. .HasCharSet("utf8")
  2200. .HasCollation("utf8_general_ci");
  2201. entity.Property(e => e.Sort).HasColumnType("int(11)");
  2202. entity.Property(e => e.Status).HasColumnType("int(11)");
  2203. entity.Property(e => e.TradeAmount).HasColumnType("decimal(18,2)");
  2204. entity.Property(e => e.TradeFee).HasColumnType("decimal(18,2)");
  2205. entity.Property(e => e.TradeType).HasColumnType("int(11)");
  2206. entity.Property(e => e.UpdateDate).HasColumnType("datetime");
  2207. entity.Property(e => e.UpdateMan)
  2208. .HasColumnType("varchar(50)")
  2209. .HasCharSet("utf8")
  2210. .HasCollation("utf8_general_ci");
  2211. entity.Property(e => e.UserId).HasColumnType("int(11)");
  2212. entity.Property(e => e.Version).HasColumnType("int(11)");
  2213. });
  2214. OnModelCreatingPartial(modelBuilder);
  2215. }
  2216. partial void OnModelCreatingPartial(ModelBuilder modelBuilder);
  2217. }
  2218. }