WebCMSEntities.cs 124 KB

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