WebCMSEntities.cs 122 KB

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