WebCMSEntities.cs 123 KB

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