WebCMSEntities.cs 115 KB

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