WebCMSEntities.cs 123 KB

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