WebCMSEntities.cs 122 KB

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