WebCMSEntities.cs 123 KB

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