123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018 |
- using System;
- using Microsoft.EntityFrameworkCore;
- using Microsoft.EntityFrameworkCore.Metadata;
- namespace MySystem.JavaProductModels
- {
- public partial class WebCMSEntities : DbContext
- {
- public WebCMSEntities()
- {
- }
- public WebCMSEntities(DbContextOptions<WebCMSEntities> options)
- : base(options)
- {
- }
- public virtual DbSet<KxsBrand> KxsBrand { get; set; }
- public virtual DbSet<KxsBrandSort> KxsBrandSort { get; set; }
- public virtual DbSet<KxsGdOrder> KxsGdOrder { get; set; }
- public virtual DbSet<KxsGdReport> KxsGdReport { get; set; }
- public virtual DbSet<KxsMachine> KxsMachine { get; set; }
- public virtual DbSet<KxsMachineAward> KxsMachineAward { get; set; }
- public virtual DbSet<KxsMachineCashOrder> KxsMachineCashOrder { get; set; }
- public virtual DbSet<KxsMachineCirculationLog> KxsMachineCirculationLog { get; set; }
- public virtual DbSet<KxsMachineCutBind> KxsMachineCutBind { get; set; }
- public virtual DbSet<KxsMachineDeduct> KxsMachineDeduct { get; set; }
- public virtual DbSet<KxsMachineExpInfo> KxsMachineExpInfo { get; set; }
- public virtual DbSet<KxsMachinePledge> KxsMachinePledge { get; set; }
- public virtual DbSet<KxsMachineRatio> KxsMachineRatio { get; set; }
- public virtual DbSet<KxsMachineTrack> KxsMachineTrack { get; set; }
- public virtual DbSet<KxsMachineTransfer> KxsMachineTransfer { get; set; }
- public virtual DbSet<KxsMachineUnbind> KxsMachineUnbind { get; set; }
- public virtual DbSet<KxsMerchant> KxsMerchant { get; set; }
- public virtual DbSet<KxsMerchantReturn> KxsMerchantReturn { get; set; }
- public virtual DbSet<KxsMerchantTrade> KxsMerchantTrade { get; set; }
- public virtual DbSet<KxsMerchantUser> KxsMerchantUser { get; set; }
- public virtual DbSet<KxsShopCate> KxsShopCate { get; set; }
- public virtual DbSet<KxsShopGoods> KxsShopGoods { get; set; }
- public virtual DbSet<KxsShopGoodsPic> KxsShopGoodsPic { get; set; }
- public virtual DbSet<KxsShopGoodsSku> KxsShopGoodsSku { get; set; }
- public virtual DbSet<KxsShopGoodsSpec> KxsShopGoodsSpec { get; set; }
- public virtual DbSet<KxsShopOrder> KxsShopOrder { get; set; }
- public virtual DbSet<KxsShopOrderInfo> KxsShopOrderInfo { get; set; }
- public virtual DbSet<KxsTicket> KxsTicket { get; set; }
- public virtual DbSet<KxsTicketTransfer> KxsTicketTransfer { get; set; }
- public virtual DbSet<KxsTicketTransferInfo> KxsTicketTransferInfo { get; set; }
- public virtual DbSet<KxsTicketUpgrade> KxsTicketUpgrade { get; set; }
- public virtual DbSet<UndoLog> UndoLog { get; set; }
- protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
- {
- if (!optionsBuilder.IsConfigured)
- {
- optionsBuilder.UseMySql(Library.ConfigurationManager.AppSettings["JavaProductSqlConnStr"].ToString(), x => x.ServerVersion("5.7.17-mysql"));
- }
- }
- protected override void OnModelCreating(ModelBuilder modelBuilder)
- {
- modelBuilder.Entity<KxsBrand>(entity =>
- {
- entity.ToTable("kxs_brand");
- entity.HasComment("客小爽品牌表");
- entity.Property(e => e.Id)
- .HasColumnName("id")
- .HasComment("主键ID");
- entity.Property(e => e.ActAmount)
- .HasColumnName("act_amount")
- .HasColumnType("decimal(18,2)")
- .HasComment("激活金额");
- entity.Property(e => e.ActPrice)
- .HasColumnName("act_price")
- .HasColumnType("decimal(18,2)")
- .HasComment("激活1户计多少元");
- entity.Property(e => e.AdvanceFlag)
- .HasColumnName("advance_flag")
- .HasDefaultValueSql("'1'")
- .HasComment("是否支持预发(0:不支持,1:支持)");
- entity.Property(e => e.BindRange)
- .HasColumnName("bind_range")
- .HasColumnType("varchar(10)")
- .HasComment("功能显示范围(0:未绑定机具,1:已绑定机具)")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.BrandDetail)
- .HasColumnName("brand_detail")
- .HasColumnType("longtext")
- .HasComment("产品详情")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.BrandType)
- .HasColumnName("brand_type")
- .HasComment("类型 0电签 1大pos");
- entity.Property(e => e.CountOfBox)
- .HasColumnName("count_of_box")
- .HasComment("每箱机具数");
- entity.Property(e => e.Cover)
- .HasColumnName("cover")
- .HasColumnType("varchar(255)")
- .HasComment("封面图片")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.CreateTime)
- .HasColumnName("create_time")
- .HasColumnType("datetime")
- .HasComment("新增时间");
- entity.Property(e => e.DefaultPledge)
- .HasColumnName("default_pledge")
- .HasColumnType("decimal(18,2)")
- .HasComment("默认押金");
- entity.Property(e => e.DelFlag)
- .HasColumnName("del_flag")
- .HasComment("删除标记,0未删除,1已删除");
- entity.Property(e => e.DisplayFlag)
- .HasColumnName("display_flag")
- .HasDefaultValueSql("'1'")
- .HasComment("是否显示产品(0:不显示,1:显示)");
- entity.Property(e => e.ExchangeFlag)
- .HasColumnName("exchange_flag")
- .HasComment("是否支持兑换");
- entity.Property(e => e.ExchangeType)
- .HasColumnName("exchange_type")
- .HasColumnType("varchar(20)")
- .HasComment("兑换类型(10:大POS,11:大pos卷循环资格,20:电签,21电签循环资格)")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.FluxAmount)
- .HasColumnName("flux_amount")
- .HasColumnType("decimal(18,2)")
- .HasComment("流量费");
- entity.Property(e => e.FluxProfit)
- .HasColumnName("flux_profit")
- .HasColumnType("decimal(18,2)")
- .HasComment("流量费分佣");
- entity.Property(e => e.LabelText)
- .HasColumnName("label_text")
- .HasColumnType("varchar(200)")
- .HasComment("标签json数据(style:样式,wordColor:文字颜色,backColor:背景颜色)")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.LinkUrl)
- .HasColumnName("link_url")
- .HasColumnType("varchar(255)")
- .HasComment("跳转链接")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.ManyPledge)
- .HasColumnName("many_pledge")
- .HasColumnType("varchar(50)")
- .HasComment("多押金设置(多个押金用\",\"隔开)")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.MerchantDisplay)
- .HasColumnName("merchant_display")
- .HasColumnType("varchar(10)")
- .HasComment("商户显示信息(1:商户信息,2:月度交易额,3:月度交易额记录)")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.MerchantFlag)
- .HasColumnName("merchant_flag")
- .HasDefaultValueSql("'1'")
- .HasComment("是否可转商户型创客(0:不支持,1:支持)");
- entity.Property(e => e.Name)
- .HasColumnName("name")
- .HasColumnType("varchar(32)")
- .HasComment("品牌名称")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.NonActAmount)
- .HasColumnName("non_act_amount")
- .HasColumnType("decimal(18,2)")
- .HasComment("无押激活金额");
- entity.Property(e => e.PledgeDisplay)
- .HasColumnName("pledge_display")
- .HasDefaultValueSql("'1'")
- .HasComment("押金是否显示(0:不显示,1:显示)");
- entity.Property(e => e.PledgeStatus)
- .HasColumnName("pledge_status")
- .HasDefaultValueSql("'1'")
- .HasComment("押金状态(0:关闭,1:开启)");
- entity.Property(e => e.PledgeType)
- .HasColumnName("pledge_type")
- .HasComment("押金类型(0:固定数值,1:多个数值)");
- entity.Property(e => e.PosPrice)
- .HasColumnName("pos_price")
- .HasColumnType("decimal(18,2)")
- .HasComment("品牌价格");
- entity.Property(e => e.ProfitStatus)
- .HasColumnName("profit_status")
- .HasComment("分佣状态(0:未开启,1:开启)");
- entity.Property(e => e.RatioFlag)
- .HasColumnName("ratio_flag")
- .HasDefaultValueSql("'1'")
- .HasComment("是否支持费率修改(0:不支持,1:支持)");
- entity.Property(e => e.ReplenishFlag)
- .HasColumnName("replenish_flag")
- .HasDefaultValueSql("'1'")
- .HasComment("是否支持补货(0:不支持,1:支持)");
- entity.Property(e => e.ReplenishNum)
- .HasColumnName("replenish_num")
- .HasDefaultValueSql("'10'")
- .HasComment("申请补货数量");
- entity.Property(e => e.Sort)
- .HasColumnName("sort")
- .HasComment("排序");
- entity.Property(e => e.Status)
- .HasColumnName("status")
- .HasDefaultValueSql("'1'")
- .HasComment("状态 0禁用 1正常");
- entity.Property(e => e.TotalMethod)
- .HasColumnName("total_method")
- .HasComment("统计方式(0:实际交易额,1:激活商户数)");
- entity.Property(e => e.UpdateBy)
- .HasColumnName("update_by")
- .HasColumnType("varchar(10)")
- .HasComment("操作人")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.UpdateTime)
- .HasColumnName("update_time")
- .HasColumnType("datetime")
- .HasComment("更新时间");
- entity.Property(e => e.Version)
- .HasColumnName("version")
- .HasComment("版本");
- });
- modelBuilder.Entity<KxsBrandSort>(entity =>
- {
- entity.ToTable("kxs_brand_sort");
- entity.HasComment("品牌排序表");
- entity.Property(e => e.Id)
- .HasColumnName("id")
- .HasComment("主键ID");
- entity.Property(e => e.BrandId)
- .HasColumnName("brand_id")
- .HasComment("品牌ID");
- entity.Property(e => e.CreateTime)
- .HasColumnName("create_time")
- .HasColumnType("datetime")
- .HasComment("新增时间");
- entity.Property(e => e.DelFlag)
- .HasColumnName("del_flag")
- .HasColumnType("varchar(1)")
- .HasDefaultValueSql("'0'")
- .HasComment("删除标记,0未删除,1已删除")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.Sort)
- .HasColumnName("sort")
- .HasDefaultValueSql("'100'")
- .HasComment("排序");
- entity.Property(e => e.UpdateTime)
- .HasColumnName("update_time")
- .HasColumnType("datetime")
- .HasComment("更新时间");
- entity.Property(e => e.UserId)
- .HasColumnName("user_id")
- .HasComment("用户ID");
- entity.Property(e => e.Version)
- .HasColumnName("version")
- .HasComment("版本");
- });
- modelBuilder.Entity<KxsGdOrder>(entity =>
- {
- entity.ToTable("kxs_gd_order");
- entity.HasComment("广电推送订单信息表");
- entity.HasIndex(e => e.GdMobile)
- .HasName("mobile");
- entity.Property(e => e.Id)
- .HasColumnName("id")
- .HasComment("主键ID");
- entity.Property(e => e.Address)
- .HasColumnName("address")
- .HasColumnType("varchar(128)")
- .HasComment("收货详细地址")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.AddressDetail)
- .HasColumnName("address_detail")
- .HasColumnType("varchar(128)")
- .HasComment("详细地址")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.City)
- .HasColumnName("city")
- .HasColumnType("varchar(64)")
- .HasComment("城市")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.CreateTime)
- .HasColumnName("create_time")
- .HasColumnType("datetime")
- .HasComment("新增时间");
- entity.Property(e => e.DelFlag)
- .HasColumnName("del_flag")
- .HasComment("删除标记,0未删除,1已删除");
- entity.Property(e => e.EmployNum)
- .HasColumnName("employ_num")
- .HasColumnType("varchar(64)")
- .HasComment("工号自定义参数")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.ErpName)
- .HasColumnName("erp_name")
- .HasColumnType("varchar(128)")
- .HasComment("快递公司")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.ErpNo)
- .HasColumnName("erp_no")
- .HasColumnType("varchar(64)")
- .HasComment("快递单号")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.FirstRechargeAmount)
- .HasColumnName("first_recharge_amount")
- .HasColumnType("decimal(18,2)")
- .HasComment("首充金额");
- entity.Property(e => e.GdMobile)
- .HasColumnName("gd_mobile")
- .HasColumnType("varchar(16)")
- .HasComment("广电手机号码")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.Iccid)
- .HasColumnName("iccid")
- .HasColumnType("varchar(64)")
- .HasComment("广电sn")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.IdcardNo)
- .HasColumnName("idcard_no")
- .HasColumnType("varchar(32)")
- .HasComment("身份证号")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.OrderNo)
- .HasColumnName("order_no")
- .HasColumnType("varchar(64)")
- .HasComment("广电订单号")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.ProductName)
- .HasColumnName("product_name")
- .HasColumnType("varchar(128)")
- .HasComment("产品名称")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.Province)
- .HasColumnName("province")
- .HasColumnType("varchar(64)")
- .HasComment("省份")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.ReceiveMobile)
- .HasColumnName("receive_mobile")
- .HasColumnType("varchar(16)")
- .HasComment("收货手机号")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.ReceiveName)
- .HasColumnName("receive_name")
- .HasColumnType("varchar(32)")
- .HasComment("收货人")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.Remark)
- .HasColumnName("remark")
- .HasColumnType("varchar(1000)")
- .HasComment("备注")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.Status)
- .HasColumnName("status")
- .HasComment("状态");
- entity.Property(e => e.UpdateTime)
- .HasColumnName("update_time")
- .HasColumnType("datetime")
- .HasComment("更新时间");
- entity.Property(e => e.UserName)
- .HasColumnName("user_name")
- .HasColumnType("varchar(64)")
- .HasComment("入网姓名")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.Version)
- .HasColumnName("version")
- .HasComment("版本");
- });
- modelBuilder.Entity<KxsGdReport>(entity =>
- {
- entity.ToTable("kxs_gd_report");
- entity.HasComment("广电报备入网表");
- entity.HasIndex(e => e.GdMobile)
- .HasName("gd_mobile");
- entity.HasIndex(e => new { e.PutMobile, e.PutName })
- .HasName("query");
- entity.Property(e => e.Id)
- .HasColumnName("id")
- .HasComment("主键ID");
- entity.Property(e => e.City)
- .HasColumnName("city")
- .HasColumnType("varchar(64)")
- .HasComment("报备城市")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.CreateTime)
- .HasColumnName("create_time")
- .HasColumnType("datetime")
- .HasComment("新增时间");
- entity.Property(e => e.DelFlag)
- .HasColumnName("del_flag")
- .HasComment("删除标记,0未删除,1已删除");
- entity.Property(e => e.GdMobile)
- .HasColumnName("gd_mobile")
- .HasColumnType("varchar(16)")
- .HasComment("广电手机号码")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.GdOrderId)
- .HasColumnName("gd_order_id")
- .HasComment("广电订单ID");
- entity.Property(e => e.GdSn)
- .HasColumnName("gd_sn")
- .HasColumnType("varchar(64)")
- .HasComment("sn码")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.IsCheck)
- .HasColumnName("is_check")
- .HasComment("匹配状态 未匹配=0 匹配成功=1");
- entity.Property(e => e.Province)
- .HasColumnName("province")
- .HasColumnType("varchar(64)")
- .HasComment("报备省份")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.PutMobile)
- .HasColumnName("put_mobile")
- .HasColumnType("varchar(16)")
- .HasComment("入网手机号")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.PutName)
- .HasColumnName("put_name")
- .HasColumnType("varchar(64)")
- .HasComment("入网姓名")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.PutType)
- .HasColumnName("put_type")
- .HasComment("入网类型 0工号报备 1电渠报备");
- entity.Property(e => e.Remark)
- .HasColumnName("remark")
- .HasColumnType("varchar(1000)")
- .HasComment("备注")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.Status)
- .HasColumnName("status")
- .HasComment("状态 未处理=0 已作废=-1 报备成功=1");
- entity.Property(e => e.UpdateTime)
- .HasColumnName("update_time")
- .HasColumnType("datetime")
- .HasComment("更新时间");
- entity.Property(e => e.UserCode)
- .HasColumnName("user_code")
- .HasColumnType("varchar(32)")
- .HasComment("创客编号")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.UserId)
- .HasColumnName("user_id")
- .HasComment("创客ID");
- entity.Property(e => e.Username)
- .HasColumnName("username")
- .HasColumnType("varchar(32)")
- .HasComment("创客姓名")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.Version)
- .HasColumnName("version")
- .HasComment("版本");
- });
- modelBuilder.Entity<KxsMachine>(entity =>
- {
- entity.ToTable("kxs_machine");
- entity.HasComment("客小爽机具表");
- entity.HasIndex(e => e.PosSn)
- .HasName("pos_sn")
- .IsUnique();
- entity.HasIndex(e => e.WarehouseId)
- .HasName("whs_id");
- entity.HasIndex(e => new { e.UserId, e.BindStatus })
- .HasName("recycleend");
- entity.HasIndex(e => new { e.Status, e.PreUserId, e.WarehouseId, e.BrandId, e.PosSn })
- .HasName("pre_query");
- entity.Property(e => e.Id)
- .HasColumnName("id")
- .HasComment("主键ID");
- entity.Property(e => e.ActTime)
- .HasColumnName("act_time")
- .HasColumnType("datetime")
- .HasComment("激活时间");
- entity.Property(e => e.AllotPath)
- .HasColumnName("allot_path")
- .HasColumnType("varchar(128)")
- .HasComment("机具轨迹路径")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.BatchNo)
- .HasColumnName("batch_no")
- .HasColumnType("varchar(32)")
- .HasComment("业务批次号")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.BindStatus)
- .HasColumnName("bind_status")
- .HasComment("绑定状态 0未绑定 1已绑定 2已解绑");
- entity.Property(e => e.BindTime)
- .HasColumnName("bind_time")
- .HasColumnType("datetime")
- .HasComment("绑定时间");
- entity.Property(e => e.BoxSn)
- .HasColumnName("box_sn")
- .HasColumnType("varchar(32)")
- .HasComment("箱码")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.BrandId)
- .HasColumnName("brand_id")
- .HasComment("品牌ID");
- entity.Property(e => e.CashPledge)
- .HasColumnName("cash_pledge")
- .HasColumnType("decimal(18,2)")
- .HasComment("机具押金");
- entity.Property(e => e.CreateTime)
- .HasColumnName("create_time")
- .HasColumnType("datetime")
- .HasComment("新增时间");
- entity.Property(e => e.CreditTrade)
- .HasColumnName("credit_trade")
- .HasColumnType("decimal(18,2)")
- .HasComment("贷记卡交易额");
- entity.Property(e => e.DebitCardTrade)
- .HasColumnName("debit_card_trade")
- .HasColumnType("decimal(18,2)")
- .HasComment("借记卡交易额");
- entity.Property(e => e.DelFlag)
- .HasColumnName("del_flag")
- .HasComment("删除标记,0未删除,1已删除");
- entity.Property(e => e.DeliveryTime)
- .HasColumnName("delivery_time")
- .HasColumnType("datetime")
- .HasComment("出库时间");
- entity.Property(e => e.DevLocation)
- .HasColumnName("dev_location")
- .HasColumnType("varchar(255)")
- .HasComment("机具地址")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.DeviceCode)
- .HasColumnName("device_code")
- .HasColumnType("varchar(32)")
- .HasComment("设备型号")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.DeviceType)
- .HasColumnName("device_type")
- .HasColumnType("varchar(64)")
- .HasComment("设备类型")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.DownFeeFlag)
- .HasColumnName("down_fee_flag")
- .HasComment("费率调降标记 0未调 1已调");
- entity.Property(e => e.IsAct)
- .HasColumnName("is_act")
- .HasComment("是否激活 0未激活 1已激活");
- entity.Property(e => e.IsFirst)
- .HasColumnName("is_first")
- .HasComment("是否首台 0否 1是");
- entity.Property(e => e.IsOpAct)
- .HasColumnName("is_op_act")
- .HasComment("补激活奖标记 0未补录 1已补录");
- entity.Property(e => e.IsSupply)
- .HasColumnName("is_supply")
- .HasComment("补录标识 0未补录 1已补录");
- entity.Property(e => e.LeaderId)
- .HasColumnName("leader_id")
- .HasComment("盟主用户ID");
- entity.Property(e => e.MachineRatio)
- .HasColumnName("machine_ratio")
- .HasColumnType("decimal(18,2)")
- .HasDefaultValueSql("'0.60'")
- .HasComment("机具费率");
- entity.Property(e => e.MachineType)
- .HasColumnName("machine_type")
- .HasComment("机具类型 0兑换机 1循环机");
- entity.Property(e => e.MerchantId)
- .HasColumnName("merchant_id")
- .HasComment("商户ID");
- entity.Property(e => e.PartnerId)
- .HasColumnName("partner_id")
- .HasComment("合伙人用户ID");
- entity.Property(e => e.PosSn)
- .HasColumnName("pos_sn")
- .HasColumnType("varchar(32)")
- .HasComment("机具码")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.PosType)
- .HasColumnName("pos_type")
- .HasDefaultValueSql("'2'")
- .HasComment("机具活动类型 0空白机 1活动机 2正常兑换 101营训");
- entity.Property(e => e.PreUserId)
- .HasColumnName("pre_user_id")
- .HasComment("预发到用户的ID");
- entity.Property(e => e.RecycleEndTime)
- .HasColumnName("recycle_end_time")
- .HasColumnType("datetime")
- .HasComment("循环结束时间");
- entity.Property(e => e.RecycleStatus)
- .HasColumnName("recycle_status")
- .HasComment("循环状态 0不可循环 1可循环");
- entity.Property(e => e.ReturnStatus)
- .HasColumnName("return_status")
- .HasComment("回收状态 待回收=1 待确认=2 已确认=3 已驳回=4 已撤回=-1");
- entity.Property(e => e.ScanQrTrade)
- .HasColumnName("scan_qr_trade")
- .HasColumnType("decimal(18,2)")
- .HasComment("扫码交易额");
- entity.Property(e => e.SecondFee)
- .HasColumnName("second_fee")
- .HasColumnType("decimal(18,2)")
- .HasComment("秒到费");
- entity.Property(e => e.SourcePledge)
- .HasColumnName("source_pledge")
- .HasColumnType("decimal(18,2)")
- .HasComment("厂家押金");
- entity.Property(e => e.SourcePosSn)
- .HasColumnName("source_pos_sn")
- .HasColumnType("varchar(128)")
- .HasComment("溯源机具和兑换券")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.Status)
- .HasColumnName("status")
- .HasComment("状态 -1坏机 0在库 1出库 ");
- entity.Property(e => e.UpFeeFlag)
- .HasColumnName("up_fee_flag")
- .HasComment("费率调降标记 0未调 1已调整");
- entity.Property(e => e.UpdateTime)
- .HasColumnName("update_time")
- .HasColumnType("datetime")
- .HasComment("更新时间");
- entity.Property(e => e.UserId)
- .HasColumnName("user_id")
- .HasComment("所属创客ID");
- entity.Property(e => e.Version)
- .HasColumnName("version")
- .HasComment("版本");
- entity.Property(e => e.WarehouseId)
- .HasColumnName("warehouse_id")
- .HasComment("仓库ID");
- entity.Property(e => e.WarehouseName)
- .HasColumnName("warehouse_name")
- .HasColumnType("varchar(64)")
- .HasComment("仓库名称")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- });
- modelBuilder.Entity<KxsMachineAward>(entity =>
- {
- entity.ToTable("kxs_machine_award");
- entity.HasComment("机具奖励信息表");
- entity.Property(e => e.Id)
- .HasColumnName("id")
- .HasComment("ID");
- entity.Property(e => e.Amount)
- .HasColumnName("amount")
- .HasColumnType("decimal(18,2)")
- .HasComment("奖励金额");
- entity.Property(e => e.AwardType)
- .HasColumnName("award_type")
- .HasComment("奖励类型 0机具 1商城");
- entity.Property(e => e.CreateTime)
- .HasColumnName("create_time")
- .HasColumnType("datetime")
- .HasComment("创建时间");
- entity.Property(e => e.DelFlag)
- .HasColumnName("del_flag")
- .HasComment("删除标记");
- entity.Property(e => e.MachineId)
- .HasColumnName("machine_id")
- .HasComment("机具id");
- entity.Property(e => e.PosSn)
- .HasColumnName("pos_sn")
- .HasColumnType("varchar(32)")
- .HasComment("机具编号")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.UpdateTime)
- .HasColumnName("update_time")
- .HasColumnType("datetime")
- .HasComment("更新时间");
- entity.Property(e => e.UserCode)
- .HasColumnName("user_code")
- .HasColumnType("varchar(32)")
- .HasComment("创客编号")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.UserId)
- .HasColumnName("user_id")
- .HasComment("创客id");
- entity.Property(e => e.Username)
- .HasColumnName("username")
- .HasColumnType("varchar(32)")
- .HasComment("创客用户名")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.VariationType)
- .HasColumnName("variation_type")
- .HasComment("奖励类型");
- entity.Property(e => e.Version)
- .HasColumnName("version")
- .HasComment("版本号");
- });
- modelBuilder.Entity<KxsMachineCashOrder>(entity =>
- {
- entity.ToTable("kxs_machine_cash_order");
- entity.HasComment("客小爽wifi押金订单关联商品订单表");
- entity.Property(e => e.Id)
- .HasColumnName("id")
- .HasComment("主键ID");
- entity.Property(e => e.CreateBy)
- .HasColumnName("create_by")
- .HasColumnType("varchar(50)")
- .HasComment("添加人")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.CreateTime)
- .HasColumnName("create_time")
- .HasColumnType("datetime")
- .HasComment("新增时间");
- entity.Property(e => e.DelFlag)
- .HasColumnName("del_flag")
- .HasColumnType("varchar(1)")
- .HasDefaultValueSql("'0'")
- .HasComment("删除标记,0未删除,1已删除")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.MachineApplyId)
- .HasColumnName("machine_apply_id")
- .HasComment("机具申请订单ID");
- entity.Property(e => e.MachineId)
- .HasColumnName("machine_id")
- .HasComment("机具ID");
- entity.Property(e => e.ShopOrderId)
- .HasColumnName("shop_order_id")
- .HasComment("商品订单ID");
- entity.Property(e => e.UpdateBy)
- .HasColumnName("update_by")
- .HasColumnType("varchar(50)")
- .HasComment("更新人")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.UpdateTime)
- .HasColumnName("update_time")
- .HasColumnType("datetime")
- .HasComment("更新时间");
- entity.Property(e => e.UserCode)
- .HasColumnName("user_code")
- .HasColumnType("varchar(16)")
- .HasComment("创客编号")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.UserId)
- .HasColumnName("user_id")
- .HasComment("用户ID");
- entity.Property(e => e.Username)
- .HasColumnName("username")
- .HasColumnType("varchar(64)")
- .HasComment("创客姓名")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.Version)
- .HasColumnName("version")
- .HasComment("版本");
- });
- modelBuilder.Entity<KxsMachineCirculationLog>(entity =>
- {
- entity.ToTable("kxs_machine_circulation_log");
- entity.HasComment("客小爽循环机记录表");
- entity.Property(e => e.Id)
- .HasColumnName("id")
- .HasComment("主键ID");
- entity.Property(e => e.CreateTime)
- .HasColumnName("create_time")
- .HasColumnType("datetime")
- .HasComment("新增时间");
- entity.Property(e => e.DelFlag)
- .HasColumnName("del_flag")
- .HasComment("删除标记,0未删除,1已删除");
- entity.Property(e => e.MachineId)
- .HasColumnName("machine_id")
- .HasComment("机具ID");
- entity.Property(e => e.OrderId)
- .HasColumnName("order_id")
- .HasComment("订单ID");
- entity.Property(e => e.Pid)
- .HasColumnName("pid")
- .HasComment("上级ID");
- entity.Property(e => e.PidPath)
- .HasColumnName("pid_path")
- .HasColumnType("varchar(2000)")
- .HasDefaultValueSql("'0'")
- .HasComment("上级路径")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.SourceSn)
- .HasColumnName("source_sn")
- .HasColumnType("varchar(32)")
- .HasComment("源sn")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.UpdateTime)
- .HasColumnName("update_time")
- .HasColumnType("datetime")
- .HasComment("更新时间");
- entity.Property(e => e.UserId)
- .HasColumnName("user_id")
- .HasComment("用户ID");
- entity.Property(e => e.Version)
- .HasColumnName("version")
- .HasComment("版本");
- });
- modelBuilder.Entity<KxsMachineCutBind>(entity =>
- {
- entity.ToTable("kxs_machine_cut_bind");
- entity.HasComment("机具换绑记录表");
- entity.Property(e => e.Id)
- .HasColumnName("id")
- .HasComment("主键ID");
- entity.Property(e => e.BrandId)
- .HasColumnName("brand_id")
- .HasComment("品牌");
- entity.Property(e => e.CreateBy)
- .HasColumnName("create_by")
- .HasColumnType("varchar(64)")
- .HasComment("操作人")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.CreateTime)
- .HasColumnName("create_time")
- .HasColumnType("datetime")
- .HasComment("新增时间");
- entity.Property(e => e.CutBrandId)
- .HasColumnName("cut_brand_id")
- .HasComment("换机后的新品牌");
- entity.Property(e => e.CutPosSn)
- .HasColumnName("cut_pos_sn")
- .HasColumnType("varchar(64)")
- .HasComment("换机后的新sn")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.CutType)
- .HasColumnName("cut_type")
- .HasComment("类型 0-换绑 1-坏机换新 2-跨品牌换机");
- entity.Property(e => e.DelFlag)
- .HasColumnName("del_flag")
- .HasColumnType("varchar(1)")
- .HasDefaultValueSql("'0'")
- .HasComment("删除标记,0未删除,1已删除")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.IsNotify)
- .HasColumnName("is_notify")
- .HasComment("是否通知创客 1通知");
- entity.Property(e => e.OrderSn)
- .HasColumnName("order_sn")
- .HasColumnType("varchar(64)")
- .HasComment("订单号")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.OutWhsAddress)
- .HasColumnName("out_whs_address")
- .HasColumnType("varchar(255)")
- .HasComment("出库仓库地址")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.OutWhsId)
- .HasColumnName("out_whs_id")
- .HasComment("出库仓库ID");
- entity.Property(e => e.OutWhsMobile)
- .HasColumnName("out_whs_mobile")
- .HasColumnType("varchar(16)")
- .HasComment("出库仓库手机号码")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.OutWhsName)
- .HasColumnName("out_whs_name")
- .HasColumnType("varchar(128)")
- .HasComment("出库仓库名称")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.PosSn)
- .HasColumnName("pos_sn")
- .HasColumnType("varchar(64)")
- .HasComment("机具号")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.Remark)
- .HasColumnName("remark")
- .HasColumnType("varchar(128)")
- .HasComment("备注")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.ToWhsAddress)
- .HasColumnName("to_whs_address")
- .HasColumnType("varchar(255)")
- .HasComment("退回仓库地址")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.ToWhsId)
- .HasColumnName("to_whs_id")
- .HasComment("退回仓库ID");
- entity.Property(e => e.ToWhsMobile)
- .HasColumnName("to_whs_mobile")
- .HasColumnType("varchar(16)")
- .HasComment("退回仓库联系号码")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.ToWhsName)
- .HasColumnName("to_whs_name")
- .HasColumnType("varchar(128)")
- .HasComment("退回仓库名称")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.UpdateBy)
- .HasColumnName("update_by")
- .HasColumnType("varchar(32)")
- .HasComment("操作人")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.UpdateTime)
- .HasColumnName("update_time")
- .HasColumnType("datetime")
- .HasComment("更新时间");
- entity.Property(e => e.UserCode)
- .HasColumnName("user_code")
- .HasColumnType("varchar(16)")
- .HasComment("用户编号")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.UserId)
- .HasColumnName("user_id")
- .HasComment("用户ID");
- entity.Property(e => e.Username)
- .HasColumnName("username")
- .HasColumnType("varchar(32)")
- .HasComment("用户姓名")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.Version)
- .HasColumnName("version")
- .HasComment("版本");
- });
- modelBuilder.Entity<KxsMachineDeduct>(entity =>
- {
- entity.ToTable("kxs_machine_deduct");
- entity.HasComment("机具循环过期已扣款记录表");
- entity.Property(e => e.Id)
- .HasColumnName("id")
- .HasComment("主键ID");
- entity.Property(e => e.BrandId)
- .HasColumnName("brand_id")
- .HasComment("品牌名称");
- entity.Property(e => e.CreateTime)
- .HasColumnName("create_time")
- .HasColumnType("datetime")
- .HasComment("新增时间");
- entity.Property(e => e.DelFlag)
- .HasColumnName("del_flag")
- .HasComment("删除标记,0未删除,1已删除");
- entity.Property(e => e.PosSn)
- .HasColumnName("pos_sn")
- .HasColumnType("varchar(64)")
- .HasComment("机具号")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.Remark)
- .HasColumnName("remark")
- .HasColumnType("varchar(255)")
- .HasComment("备注")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.UpdateTime)
- .HasColumnName("update_time")
- .HasColumnType("datetime")
- .HasComment("更新时间");
- entity.Property(e => e.Version)
- .HasColumnName("version")
- .HasComment("版本");
- });
- modelBuilder.Entity<KxsMachineExpInfo>(entity =>
- {
- entity.ToTable("kxs_machine_exp_info");
- entity.HasComment("机具未绑定超时预扣款记录表");
- entity.Property(e => e.Id)
- .HasColumnName("id")
- .HasComment("主键ID");
- entity.Property(e => e.AdvanceId)
- .HasColumnName("advance_id")
- .HasComment("预扣款ID");
- entity.Property(e => e.CreateBy)
- .HasColumnName("create_by")
- .HasColumnType("varchar(50)")
- .HasComment("添加人")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.CreateTime)
- .HasColumnName("create_time")
- .HasColumnType("datetime")
- .HasComment("新增时间");
- entity.Property(e => e.DelFlag)
- .HasColumnName("del_flag")
- .HasColumnType("varchar(1)")
- .HasDefaultValueSql("'0'")
- .HasComment("删除标记,0未删除,1已删除")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.MachineId)
- .HasColumnName("machine_id")
- .HasComment("机具ID");
- entity.Property(e => e.UpdateBy)
- .HasColumnName("update_by")
- .HasColumnType("varchar(50)")
- .HasComment("更新人")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.UpdateTime)
- .HasColumnName("update_time")
- .HasColumnType("datetime")
- .HasComment("更新时间");
- entity.Property(e => e.UserId)
- .HasColumnName("user_id")
- .HasComment("用户ID");
- entity.Property(e => e.Version)
- .HasColumnName("version")
- .HasComment("版本");
- });
- modelBuilder.Entity<KxsMachinePledge>(entity =>
- {
- entity.ToTable("kxs_machine_pledge");
- entity.HasComment("客小爽押金调整记录表");
- entity.Property(e => e.Id)
- .HasColumnName("id")
- .HasComment("主键ID");
- entity.Property(e => e.AfterPledge)
- .HasColumnName("after_pledge")
- .HasColumnType("decimal(18,2)")
- .HasComment("调整后押金");
- entity.Property(e => e.BeforePledge)
- .HasColumnName("before_pledge")
- .HasColumnType("decimal(18,2)")
- .HasComment("调整前押金");
- entity.Property(e => e.BrandId)
- .HasColumnName("brand_id")
- .HasComment("品牌");
- entity.Property(e => e.CreateBy)
- .HasColumnName("create_by")
- .HasColumnType("varchar(32)")
- .HasComment("操作人")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.CreateTime)
- .HasColumnName("create_time")
- .HasColumnType("datetime")
- .HasComment("新增时间");
- entity.Property(e => e.DelFlag)
- .HasColumnName("del_flag")
- .HasComment("删除标记,0未删除,1已删除");
- entity.Property(e => e.PosSn)
- .IsRequired()
- .HasColumnName("pos_sn")
- .HasColumnType("varchar(64)")
- .HasDefaultValueSql("'0'")
- .HasComment("机具")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.Remark)
- .HasColumnName("remark")
- .HasColumnType("varchar(255)")
- .HasComment("备注")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.Result)
- .HasColumnName("result")
- .HasColumnType("varchar(1000)")
- .HasComment("三方返回数据")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.UpdateTime)
- .HasColumnName("update_time")
- .HasColumnType("datetime")
- .HasComment("更新时间");
- entity.Property(e => e.UserId)
- .HasColumnName("user_id")
- .HasComment("用户ID");
- entity.Property(e => e.Version)
- .HasColumnName("version")
- .HasComment("版本");
- });
- modelBuilder.Entity<KxsMachineRatio>(entity =>
- {
- entity.ToTable("kxs_machine_ratio");
- entity.HasComment("客小爽费率调整记录表");
- entity.HasIndex(e => new { e.MachineId, e.MerchantId })
- .HasName("query");
- entity.Property(e => e.Id)
- .HasColumnName("id")
- .HasComment("主键ID");
- entity.Property(e => e.BeforeRatio)
- .HasColumnName("before_ratio")
- .HasColumnType("decimal(18,2)")
- .HasComment("调前费率");
- entity.Property(e => e.BrandId)
- .HasColumnName("brand_id")
- .HasComment("品牌");
- entity.Property(e => e.CreateBy)
- .HasColumnName("create_by")
- .HasColumnType("varchar(32)")
- .HasComment("操作人")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.CreateTime)
- .HasColumnName("create_time")
- .HasColumnType("datetime")
- .HasComment("新增时间");
- entity.Property(e => e.DelFlag)
- .HasColumnName("del_flag")
- .HasComment("删除标记,0未删除,1已删除");
- entity.Property(e => e.MachineId)
- .HasColumnName("machine_id")
- .HasComment("机具ID");
- entity.Property(e => e.MerchantId)
- .HasColumnName("merchant_id")
- .HasComment("商户ID");
- entity.Property(e => e.PosSn)
- .HasColumnName("pos_sn")
- .HasColumnType("varchar(64)")
- .HasComment("机具ID")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.PosUserId)
- .HasColumnName("pos_user_id")
- .HasComment("机具所属人用户ID");
- entity.Property(e => e.Ratio)
- .HasColumnName("ratio")
- .HasColumnType("decimal(18,2)")
- .HasComment("调整费率");
- entity.Property(e => e.Remark)
- .HasColumnName("remark")
- .HasColumnType("varchar(255)")
- .HasComment("备注")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.Result)
- .HasColumnName("result")
- .HasColumnType("varchar(2000)")
- .HasComment("三方返回数据")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.Status)
- .HasColumnName("status")
- .HasDefaultValueSql("'1'")
- .HasComment("状态 -1 调整失败 0审核中 1设置成功");
- entity.Property(e => e.UpdateTime)
- .HasColumnName("update_time")
- .HasColumnType("datetime")
- .HasComment("更新时间");
- entity.Property(e => e.UserId)
- .HasColumnName("user_id")
- .HasComment("用户ID");
- entity.Property(e => e.Version)
- .HasColumnName("version")
- .HasComment("版本");
- });
- modelBuilder.Entity<KxsMachineTrack>(entity =>
- {
- entity.ToTable("kxs_machine_track");
- entity.HasComment("客小爽机具轨迹记录表");
- entity.HasIndex(e => e.PosSn)
- .HasName("pos_sn");
- entity.Property(e => e.Id)
- .HasColumnName("id")
- .HasComment("主键ID");
- entity.Property(e => e.AfterUserId)
- .HasColumnName("after_user_id")
- .HasComment("变动后用户ID");
- entity.Property(e => e.AfterWhsId)
- .HasColumnName("after_whs_id")
- .HasComment("操作后仓库");
- entity.Property(e => e.BeforeUserId)
- .HasColumnName("before_user_id")
- .HasComment("变动前所属用户ID");
- entity.Property(e => e.BeforeWhsId)
- .HasColumnName("before_whs_id")
- .HasComment("操作前仓库");
- entity.Property(e => e.BrandId)
- .HasColumnName("brand_id")
- .HasComment("品牌ID");
- entity.Property(e => e.ChangeType)
- .HasColumnName("change_type")
- .HasComment("变动方向 0出库 1入库");
- entity.Property(e => e.CreateTime)
- .HasColumnName("create_time")
- .HasColumnType("datetime")
- .HasComment("新增时间");
- entity.Property(e => e.DelFlag)
- .HasColumnName("del_flag")
- .HasComment("删除标记,0未删除,1已删除");
- entity.Property(e => e.MachineId)
- .HasColumnName("machine_id")
- .HasComment("机具ID");
- entity.Property(e => e.PartnerId)
- .HasColumnName("partner_id")
- .HasComment("合伙人ID");
- entity.Property(e => e.PosSn)
- .HasColumnName("pos_sn")
- .HasColumnType("varchar(64)")
- .HasComment("机具号")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.Remark)
- .HasColumnName("remark")
- .HasColumnType("varchar(255)")
- .HasComment("备注")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.TrackType)
- .HasColumnName("track_type")
- .HasComment("轨迹类型 0 采购 1 调拨 2 出货 3 退货 4 驳回 5 回仓退款 6 换机出库 7 换机入库");
- entity.Property(e => e.UpdateTime)
- .HasColumnName("update_time")
- .HasColumnType("datetime")
- .HasComment("更新时间");
- entity.Property(e => e.Version)
- .HasColumnName("version")
- .HasComment("版本");
- });
- modelBuilder.Entity<KxsMachineTransfer>(entity =>
- {
- entity.ToTable("kxs_machine_transfer");
- entity.HasComment("客小爽机具划拨记录表");
- entity.Property(e => e.Id)
- .HasColumnName("id")
- .HasComment("主键ID");
- entity.Property(e => e.BrandId)
- .HasColumnName("brand_id")
- .HasComment("品牌ID");
- entity.Property(e => e.CreateTime)
- .HasColumnName("create_time")
- .HasColumnType("datetime")
- .HasComment("新增时间");
- entity.Property(e => e.DelFlag)
- .HasColumnName("del_flag")
- .HasComment("删除标记,0未删除,1已删除");
- entity.Property(e => e.MachineId)
- .HasColumnName("machine_id")
- .HasComment("机具ID");
- entity.Property(e => e.MachineSn)
- .HasColumnName("machine_sn")
- .HasColumnType("varchar(32)")
- .HasComment("机具号")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.MachineType)
- .HasColumnName("machine_type")
- .HasComment("机具类型 0兑换机 1循环机");
- entity.Property(e => e.Remark)
- .HasColumnName("remark")
- .HasColumnType("varchar(255)")
- .HasComment("备注")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.SendUserId)
- .HasColumnName("send_user_id")
- .HasComment("拨出用户ID");
- entity.Property(e => e.ToUserCode)
- .HasColumnName("to_user_code")
- .HasColumnType("varchar(12)")
- .HasComment("拨入用户code")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.ToUserId)
- .HasColumnName("to_user_id")
- .HasComment("拨入用户ID");
- entity.Property(e => e.ToUserName)
- .HasColumnName("to_user_name")
- .HasColumnType("varchar(32)")
- .HasComment("拨入用户姓名")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.TransferType)
- .HasColumnName("transfer_type")
- .HasComment("划拨类型 0未绑定划拨");
- entity.Property(e => e.UpdateTime)
- .HasColumnName("update_time")
- .HasColumnType("datetime")
- .HasComment("更新时间");
- entity.Property(e => e.Version)
- .HasColumnName("version")
- .HasComment("版本");
- });
- modelBuilder.Entity<KxsMachineUnbind>(entity =>
- {
- entity.ToTable("kxs_machine_unbind");
- entity.HasComment("机具解绑记录表");
- entity.Property(e => e.Id)
- .HasColumnName("id")
- .HasComment("主键ID");
- entity.Property(e => e.ApplyNo)
- .HasColumnName("apply_no")
- .HasColumnType("varchar(64)")
- .HasComment("订单号")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.BrandId)
- .HasColumnName("brand_id")
- .HasComment("品牌");
- entity.Property(e => e.CreateBy)
- .HasColumnName("create_by")
- .HasColumnType("varchar(64)")
- .HasComment("操作人")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.CreateTime)
- .HasColumnName("create_time")
- .HasColumnType("datetime")
- .HasComment("新增时间");
- entity.Property(e => e.DelFlag)
- .HasColumnName("del_flag")
- .HasColumnType("varchar(1)")
- .HasDefaultValueSql("'0'")
- .HasComment("删除标记,0未删除,1已删除")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.MchId)
- .HasColumnName("mch_id")
- .HasComment("商户ID");
- entity.Property(e => e.PosSn)
- .HasColumnName("pos_sn")
- .HasColumnType("varchar(64)")
- .HasComment("机具号")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.Remark)
- .HasColumnName("remark")
- .HasColumnType("varchar(255)")
- .HasComment("备注")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.UpdateTime)
- .HasColumnName("update_time")
- .HasColumnType("datetime")
- .HasComment("更新时间");
- entity.Property(e => e.UserId)
- .HasColumnName("user_id")
- .HasComment("用户ID");
- entity.Property(e => e.Version)
- .HasColumnName("version")
- .HasComment("版本");
- });
- modelBuilder.Entity<KxsMerchant>(entity =>
- {
- entity.ToTable("kxs_merchant");
- entity.HasComment("客小爽商户表");
- entity.HasIndex(e => e.BrandId)
- .HasName("query");
- entity.HasIndex(e => e.MachineId)
- .HasName("machineId");
- entity.HasIndex(e => e.MerchantName)
- .HasName("mch_name");
- entity.HasIndex(e => e.MerchantNo)
- .HasName("mch_no");
- entity.HasIndex(e => e.UserId)
- .HasName("userId");
- entity.Property(e => e.Id)
- .HasColumnName("id")
- .HasComment("主键ID");
- entity.Property(e => e.Address)
- .HasColumnName("address")
- .HasColumnType("varchar(128)")
- .HasComment("商户地址")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.BrandId)
- .HasColumnName("brand_id")
- .HasComment("品牌ID");
- entity.Property(e => e.CreateTime)
- .HasColumnName("create_time")
- .HasColumnType("datetime")
- .HasComment("新增时间");
- entity.Property(e => e.DelFlag)
- .HasColumnName("del_flag")
- .HasComment("删除标记,0未删除,1已删除");
- entity.Property(e => e.IsMaker)
- .HasColumnName("is_maker")
- .HasComment("是否商户型创客 0否 1是");
- entity.Property(e => e.MachineId)
- .HasColumnName("machine_id")
- .HasComment("机具ID");
- entity.Property(e => e.MakerUserId)
- .HasColumnName("maker_user_id")
- .HasComment("商户型创客的用户ID");
- entity.Property(e => e.MerchantCard)
- .HasColumnName("merchant_card")
- .HasColumnType("varchar(50)")
- .HasComment("身份证号")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.MerchantName)
- .HasColumnName("merchant_name")
- .HasColumnType("varchar(64)")
- .HasComment("商户名称")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.MerchantNo)
- .HasColumnName("merchant_no")
- .HasColumnType("varchar(32)")
- .HasComment("商户编号")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.MerchantPhone)
- .HasColumnName("merchant_phone")
- .HasColumnType("varchar(18)")
- .HasComment("商户电话")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.Remark)
- .HasColumnName("remark")
- .HasColumnType("varchar(255)")
- .HasComment("备注")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.StandardMonths)
- .HasColumnName("standard_months")
- .HasComment("退押达标月数");
- entity.Property(e => e.StandardStatus)
- .HasColumnName("standard_status")
- .HasComment("退押达标状态 待处理=0 退还成功=1 退还失败=2 处理中=3 已达标=100 可退还=101");
- entity.Property(e => e.StandardTime)
- .HasColumnName("standard_time")
- .HasColumnType("datetime")
- .HasComment("达标时间");
- entity.Property(e => e.Status)
- .HasColumnName("status")
- .HasDefaultValueSql("'1'")
- .HasComment("商户状态 0关闭 1正常 2冻结");
- entity.Property(e => e.TotalAmt)
- .HasColumnName("total_amt")
- .HasColumnType("decimal(18,2)")
- .HasComment("总交易额");
- entity.Property(e => e.UpdateTime)
- .HasColumnName("update_time")
- .HasColumnType("datetime")
- .HasComment("更新时间");
- entity.Property(e => e.UserId)
- .HasColumnName("user_id")
- .HasComment("所属创客ID");
- entity.Property(e => e.Version)
- .HasColumnName("version")
- .HasComment("版本");
- });
- modelBuilder.Entity<KxsMerchantReturn>(entity =>
- {
- entity.ToTable("kxs_merchant_return");
- entity.HasComment("商户退押账户信息表");
- entity.Property(e => e.Id)
- .HasColumnName("id")
- .HasComment("主键ID");
- entity.Property(e => e.AliAccount)
- .HasColumnName("ali_account")
- .HasColumnType("varchar(32)")
- .HasComment("支付宝账户")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.BankName)
- .HasColumnName("bank_name")
- .HasColumnType("varchar(128)")
- .HasComment("银行卡名称")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.BankNo)
- .HasColumnName("bank_no")
- .HasColumnType("varchar(64)")
- .HasComment("银行卡号")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.CreateBy)
- .HasColumnName("create_by")
- .HasColumnType("varchar(64)")
- .HasComment("操作人")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.CreateTime)
- .HasColumnName("create_time")
- .HasColumnType("datetime")
- .HasComment("新增时间");
- entity.Property(e => e.DelFlag)
- .HasColumnName("del_flag")
- .HasColumnType("varchar(1)")
- .HasDefaultValueSql("'0'")
- .HasComment("删除标记,0未删除,1已删除")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.MchId)
- .HasColumnName("mch_id")
- .HasComment("商户ID");
- entity.Property(e => e.OrderSn)
- .HasColumnName("order_sn")
- .HasColumnType("varchar(64)")
- .HasComment("订单号")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.PayKind)
- .HasColumnName("pay_kind")
- .HasComment("支付类型 0支付宝 1银行卡");
- entity.Property(e => e.Remark)
- .HasColumnName("remark")
- .HasColumnType("varchar(2000)")
- .HasComment("备注")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.ReturnAmt)
- .HasColumnName("return_amt")
- .HasColumnType("decimal(18,2)")
- .HasComment("退款金额");
- entity.Property(e => e.Status)
- .HasColumnName("status")
- .HasComment("退款状态 0未退 1成功 2失败");
- entity.Property(e => e.UpdateBy)
- .HasColumnName("update_by")
- .HasColumnType("varchar(64)")
- .HasComment("操作人")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.UpdateTime)
- .HasColumnName("update_time")
- .HasColumnType("datetime")
- .HasComment("更新时间");
- entity.Property(e => e.UserId)
- .HasColumnName("user_id")
- .HasComment("机具所属创客ID");
- entity.Property(e => e.Version)
- .HasColumnName("version")
- .HasComment("版本");
- });
- modelBuilder.Entity<KxsMerchantTrade>(entity =>
- {
- entity.ToTable("kxs_merchant_trade");
- entity.HasComment("商户交易明细");
- entity.Property(e => e.Id)
- .HasColumnName("id")
- .HasComment("主键ID");
- entity.Property(e => e.BrandId)
- .HasColumnName("brand_id")
- .HasComment("品牌ID");
- entity.Property(e => e.CardType)
- .HasColumnName("card_type")
- .HasComment("卡类型 0-贷记卡 1-借记卡");
- entity.Property(e => e.CloudPayFlag)
- .HasColumnName("cloud_pay_flag")
- .HasComment("是否云闪付 0否 1是");
- entity.Property(e => e.CreateTime)
- .HasColumnName("create_time")
- .HasColumnType("datetime")
- .HasComment("新增时间");
- entity.Property(e => e.DebitTopFlag)
- .HasColumnName("debit_top_flag")
- .HasComment("借记卡封顶交易标志 0未封顶 1封顶");
- entity.Property(e => e.DelFlag)
- .HasColumnName("del_flag")
- .HasColumnType("varchar(1)")
- .HasDefaultValueSql("'0'")
- .HasComment("删除标记,0未删除,1已删除")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.LvKey)
- .HasColumnName("lv_key")
- .HasColumnType("varchar(16)")
- .HasComment("商户活动类型 字典见对应的值")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.MchId)
- .HasColumnName("mch_id")
- .HasComment("商户ID");
- entity.Property(e => e.PosSn)
- .HasColumnName("pos_sn")
- .HasColumnType("varchar(64)")
- .HasComment("机具号")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.TradeAmt)
- .HasColumnName("trade_amt")
- .HasColumnType("decimal(18,2)")
- .HasComment("交易金额");
- entity.Property(e => e.TradeNo)
- .HasColumnName("trade_no")
- .HasColumnType("varchar(64)")
- .HasComment("交易流水号")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.UpdateTime)
- .HasColumnName("update_time")
- .HasColumnType("datetime")
- .HasComment("更新时间");
- entity.Property(e => e.UserCode)
- .HasColumnName("user_code")
- .HasColumnType("varchar(16)")
- .HasComment("用户编号")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.Username)
- .HasColumnName("username")
- .HasColumnType("varchar(32)")
- .HasComment("用户姓名")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.Version)
- .HasColumnName("version")
- .HasComment("版本");
- });
- modelBuilder.Entity<KxsMerchantUser>(entity =>
- {
- entity.ToTable("kxs_merchant_user");
- entity.HasComment("商户退押用户实名表");
- entity.Property(e => e.Id)
- .HasColumnName("id")
- .HasComment("主键ID");
- entity.Property(e => e.CreateBy)
- .HasColumnName("create_by")
- .HasColumnType("varchar(50)")
- .HasComment("添加人")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.CreateTime)
- .HasColumnName("create_time")
- .HasColumnType("datetime")
- .HasComment("新增时间");
- entity.Property(e => e.DelFlag)
- .HasColumnName("del_flag")
- .HasColumnType("varchar(1)")
- .HasDefaultValueSql("'0'")
- .HasComment("删除标记,0未删除,1已删除")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.IdCard)
- .HasColumnName("id_card")
- .HasColumnType("varchar(32)")
- .HasComment("身份证")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.Phone)
- .HasColumnName("phone")
- .HasColumnType("varchar(16)")
- .HasComment("手机号码")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.Status)
- .HasColumnName("status")
- .HasComment("0未实名 1已实名");
- entity.Property(e => e.UpdateBy)
- .HasColumnName("update_by")
- .HasColumnType("varchar(50)")
- .HasComment("更新人")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.UpdateTime)
- .HasColumnName("update_time")
- .HasColumnType("datetime")
- .HasComment("更新时间");
- entity.Property(e => e.Username)
- .HasColumnName("username")
- .HasColumnType("varchar(32)")
- .HasComment("姓名")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.Version)
- .HasColumnName("version")
- .HasComment("版本");
- });
- modelBuilder.Entity<KxsShopCate>(entity =>
- {
- entity.ToTable("kxs_shop_cate");
- entity.HasComment("商城分类表");
- entity.Property(e => e.Id)
- .HasColumnName("id")
- .HasComment("主键ID");
- entity.Property(e => e.ColId)
- .HasColumnName("col_id")
- .HasColumnType("varchar(30)")
- .HasComment("分类编号")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.CreateTime)
- .HasColumnName("create_time")
- .HasColumnType("datetime")
- .HasComment("新增时间");
- entity.Property(e => e.DelFlag)
- .HasColumnName("del_flag")
- .HasComment("删除标记,0未删除,1已删除");
- entity.Property(e => e.IconUrl)
- .HasColumnName("icon_url")
- .HasColumnType("varchar(255)")
- .HasComment("图标")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.IsShow)
- .HasColumnName("is_show")
- .HasComment("是否展示在商城 0否 1是");
- entity.Property(e => e.Level)
- .HasColumnName("level")
- .HasComment("分类层级");
- entity.Property(e => e.Name)
- .HasColumnName("name")
- .HasColumnType("varchar(64)")
- .HasComment("分类名称")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.Pid)
- .HasColumnName("pid")
- .HasComment("上级ID");
- entity.Property(e => e.Sort)
- .HasColumnName("sort")
- .HasComment("排序");
- entity.Property(e => e.Status)
- .HasColumnName("status")
- .HasComment("状态 0禁用 1启用");
- entity.Property(e => e.UpdateTime)
- .HasColumnName("update_time")
- .HasColumnType("datetime")
- .HasComment("更新时间");
- entity.Property(e => e.Version)
- .HasColumnName("version")
- .HasComment("版本");
- });
- modelBuilder.Entity<KxsShopGoods>(entity =>
- {
- entity.ToTable("kxs_shop_goods");
- entity.HasComment("商城商品表");
- entity.Property(e => e.Id)
- .HasColumnName("id")
- .HasComment("主键ID");
- entity.Property(e => e.ColId)
- .HasColumnName("col_id")
- .HasColumnType("varchar(255)")
- .HasComment("分类ID")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.CreateTime)
- .HasColumnName("create_time")
- .HasColumnType("datetime")
- .HasComment("新增时间");
- entity.Property(e => e.DelFlag)
- .HasColumnName("del_flag")
- .HasComment("删除标记,0未删除,1已删除");
- entity.Property(e => e.Details)
- .HasColumnName("details")
- .HasColumnType("longtext")
- .HasComment("详情")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.DownTime)
- .HasColumnName("down_time")
- .HasColumnType("datetime")
- .HasComment("下架时间");
- entity.Property(e => e.GoodsName)
- .HasColumnName("goods_name")
- .HasColumnType("varchar(128)")
- .HasComment("商品名称")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.GoodsType)
- .HasColumnName("goods_type")
- .HasComment("商品类型 0实物商品 1虚拟物品");
- entity.Property(e => e.LimitCount)
- .HasColumnName("limit_count")
- .HasComment("限购数量");
- entity.Property(e => e.PicUrl)
- .HasColumnName("pic_url")
- .HasColumnType("varchar(255)")
- .HasComment("封面图")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.Price)
- .HasColumnName("price")
- .HasColumnType("decimal(18,2)")
- .HasComment("价格");
- entity.Property(e => e.Sort)
- .HasColumnName("sort")
- .HasDefaultValueSql("'100'")
- .HasComment("排序");
- entity.Property(e => e.SpecList)
- .HasColumnName("spec_list")
- .HasColumnType("varchar(2000)")
- .HasComment("sku属性字段")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.StartByCount)
- .HasColumnName("start_by_count")
- .HasComment("起购数量");
- entity.Property(e => e.Status)
- .HasColumnName("status")
- .HasComment("状态 0下架 1上架");
- entity.Property(e => e.Subtitle)
- .HasColumnName("subtitle")
- .HasColumnType("varchar(255)")
- .HasComment("子标题")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.UpTime)
- .HasColumnName("up_time")
- .HasColumnType("datetime")
- .HasComment("上架时间");
- entity.Property(e => e.UpdateTime)
- .HasColumnName("update_time")
- .HasColumnType("datetime")
- .HasComment("更新时间");
- entity.Property(e => e.Version)
- .HasColumnName("version")
- .HasComment("版本");
- });
- modelBuilder.Entity<KxsShopGoodsPic>(entity =>
- {
- entity.ToTable("kxs_shop_goods_pic");
- entity.HasComment("商城商品图片表");
- entity.Property(e => e.Id)
- .HasColumnName("id")
- .HasComment("主键ID");
- entity.Property(e => e.CreateTime)
- .HasColumnName("create_time")
- .HasColumnType("datetime")
- .HasComment("新增时间");
- entity.Property(e => e.DelFlag)
- .HasColumnName("del_flag")
- .HasComment("删除标记,0未删除,1已删除");
- entity.Property(e => e.GoodsId)
- .HasColumnName("goods_id")
- .HasComment("商品ID");
- entity.Property(e => e.Sort)
- .HasColumnName("sort")
- .HasComment("排序");
- entity.Property(e => e.UpdateTime)
- .HasColumnName("update_time")
- .HasColumnType("datetime")
- .HasComment("更新时间");
- entity.Property(e => e.Url)
- .HasColumnName("url")
- .HasColumnType("varchar(255)")
- .HasComment("图片地址")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.Version)
- .HasColumnName("version")
- .HasComment("版本");
- });
- modelBuilder.Entity<KxsShopGoodsSku>(entity =>
- {
- entity.ToTable("kxs_shop_goods_sku");
- entity.HasComment("商城商品SKU表");
- entity.Property(e => e.Id)
- .HasColumnName("id")
- .HasComment("主键ID");
- entity.Property(e => e.CreateTime)
- .HasColumnName("create_time")
- .HasColumnType("datetime")
- .HasComment("新增时间");
- entity.Property(e => e.DelFlag)
- .HasColumnName("del_flag")
- .HasComment("删除标记,0未删除,1已删除");
- entity.Property(e => e.GoodId)
- .HasColumnName("good_id")
- .HasComment("商品ID");
- entity.Property(e => e.Image)
- .HasColumnName("image")
- .HasColumnType("varchar(255)")
- .HasComment("sku图片")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.LimitCount)
- .HasColumnName("limit_count")
- .HasComment("限购数量");
- entity.Property(e => e.Price)
- .HasColumnName("price")
- .HasColumnType("decimal(18,2)")
- .HasComment("售价");
- entity.Property(e => e.Sales)
- .HasColumnName("sales")
- .HasComment("销量");
- entity.Property(e => e.Specifications)
- .HasColumnName("specifications")
- .HasColumnType("varchar(1023)")
- .HasComment("商品规格值列表,采用JSON数组格式")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.StartByCount)
- .HasColumnName("start_by_count")
- .HasComment("起购数量");
- entity.Property(e => e.StockNum)
- .HasColumnName("stock_num")
- .HasComment("库存数量");
- entity.Property(e => e.UpdateTime)
- .HasColumnName("update_time")
- .HasColumnType("datetime")
- .HasComment("更新时间");
- entity.Property(e => e.Version)
- .HasColumnName("version")
- .HasComment("版本");
- });
- modelBuilder.Entity<KxsShopGoodsSpec>(entity =>
- {
- entity.ToTable("kxs_shop_goods_spec");
- entity.HasComment("商城商品SKU记录表");
- entity.Property(e => e.Id)
- .HasColumnName("id")
- .HasComment("主键ID");
- entity.Property(e => e.CreateTime)
- .HasColumnName("create_time")
- .HasColumnType("datetime")
- .HasComment("新增时间");
- entity.Property(e => e.DelFlag)
- .HasColumnName("del_flag")
- .HasComment("删除标记,0未删除,1已删除");
- entity.Property(e => e.GoodsId)
- .HasColumnName("goods_id")
- .HasComment("商品ID");
- entity.Property(e => e.Sort)
- .HasColumnName("sort")
- .HasComment("排序");
- entity.Property(e => e.Specifications)
- .HasColumnName("specifications")
- .HasColumnType("varchar(255)")
- .HasComment("商品规格名称")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.UpdateTime)
- .HasColumnName("update_time")
- .HasColumnType("datetime")
- .HasComment("更新时间");
- entity.Property(e => e.Value)
- .HasColumnName("value")
- .HasColumnType("varchar(255)")
- .HasComment("商品规格值")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.Version)
- .HasColumnName("version")
- .HasComment("版本");
- });
- modelBuilder.Entity<KxsShopOrder>(entity =>
- {
- entity.ToTable("kxs_shop_order");
- entity.HasComment("商城订单表");
- entity.HasIndex(e => new { e.Status, e.UserId })
- .HasName("query");
- entity.Property(e => e.Id)
- .HasColumnName("id")
- .HasComment("主键ID");
- entity.Property(e => e.Address)
- .HasColumnName("address")
- .HasColumnType("varchar(128)")
- .HasComment("收货地址")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.Consignee)
- .HasColumnName("consignee")
- .HasColumnType("varchar(32)")
- .HasComment("收货人")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.CreateTime)
- .HasColumnName("create_time")
- .HasColumnType("datetime")
- .HasComment("新增时间");
- entity.Property(e => e.DelFlag)
- .HasColumnName("del_flag")
- .HasComment("删除标记,0未删除,1已删除");
- entity.Property(e => e.ErpName)
- .HasColumnName("erp_name")
- .HasColumnType("varchar(64)")
- .HasComment("快递公司")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.ErpSn)
- .HasColumnName("erp_sn")
- .HasColumnType("varchar(32)")
- .HasComment("快递单号")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.GetMode)
- .HasColumnName("get_mode")
- .HasComment("提货方式 0自提 1邮寄");
- entity.Property(e => e.OrderSn)
- .HasColumnName("order_sn")
- .HasColumnType("varchar(32)")
- .HasComment("订单号")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.OrderType)
- .HasColumnName("order_type")
- .HasComment("订单类型 0商城订单 1分仓额度 2小分仓额度 3小盟主订单 4大盟主订单");
- entity.Property(e => e.PayPrice)
- .HasColumnName("pay_price")
- .HasColumnType("decimal(18,2)")
- .HasComment("支付金额");
- entity.Property(e => e.PayTime)
- .HasColumnName("pay_time")
- .HasColumnType("datetime")
- .HasComment("支付时间");
- entity.Property(e => e.PayType)
- .HasColumnName("pay_type")
- .HasComment("支付渠道 0余额 1支付宝 2微信 3盟主储蓄金");
- entity.Property(e => e.Phone)
- .HasColumnName("phone")
- .HasColumnType("varchar(18)")
- .HasComment("收货电话")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.Remark)
- .HasColumnName("remark")
- .HasColumnType("varchar(255)")
- .HasComment("备注")
- .HasCharSet("utf8mb4")
- .HasCollation("utf8mb4_0900_ai_ci");
- entity.Property(e => e.ReturnPrice)
- .HasColumnName("return_price")
- .HasColumnType("decimal(18,2)")
- .HasComment("退款金额");
- entity.Property(e => e.ReturnReason)
- .HasColumnName("return_reason")
- .HasColumnType("varchar(255)")
- .HasComment("退货原因")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.ReturnStatus)
- .HasColumnName("return_status")
- .HasComment("退款状态 0未申请 1已申请 2申请通过 3申请驳回");
- entity.Property(e => e.ReturnTime)
- .HasColumnName("return_time")
- .HasColumnType("datetime")
- .HasComment("申请退款时间");
- entity.Property(e => e.SendTime)
- .HasColumnName("send_time")
- .HasColumnType("datetime")
- .HasComment("发货时间");
- entity.Property(e => e.Status)
- .HasColumnName("status")
- .HasComment("状态 0未支付 1已支付 2已发货 3已完成 4已取消");
- entity.Property(e => e.TopUserId)
- .HasColumnName("top_user_id")
- .HasComment("顶级创客ID");
- entity.Property(e => e.TotalPrice)
- .HasColumnName("total_price")
- .HasColumnType("decimal(18,2)")
- .HasComment("订单金额");
- entity.Property(e => e.TradeNo)
- .HasColumnName("trade_no")
- .HasColumnType("varchar(64)")
- .HasComment("交易流水号")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.UpdateBy)
- .HasColumnName("update_by")
- .HasColumnType("varchar(64)")
- .HasComment("操作人")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.UpdateTime)
- .HasColumnName("update_time")
- .HasColumnType("datetime")
- .HasComment("更新时间");
- entity.Property(e => e.UserId)
- .HasColumnName("user_id")
- .HasComment("用户ID");
- entity.Property(e => e.Version)
- .HasColumnName("version")
- .HasComment("版本");
- entity.Property(e => e.WarehouseId)
- .HasColumnName("warehouse_id")
- .HasComment("自提仓库ID");
- });
- modelBuilder.Entity<KxsShopOrderInfo>(entity =>
- {
- entity.ToTable("kxs_shop_order_info");
- entity.HasComment("商城订单详情表");
- entity.HasIndex(e => e.OrderId)
- .HasName("query");
- entity.Property(e => e.Id)
- .HasColumnName("id")
- .HasComment("主键ID");
- entity.Property(e => e.CreateTime)
- .HasColumnName("create_time")
- .HasColumnType("datetime")
- .HasComment("新增时间");
- entity.Property(e => e.DelFlag)
- .HasColumnName("del_flag")
- .HasComment("删除标记,0未删除,1已删除");
- entity.Property(e => e.GoodsId)
- .HasColumnName("goods_id")
- .HasComment("商品ID");
- entity.Property(e => e.GoodsName)
- .HasColumnName("goods_name")
- .HasColumnType("varchar(128)")
- .HasComment("商品名称")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.GoodsPrice)
- .HasColumnName("goods_price")
- .HasColumnType("decimal(18,2)")
- .HasComment("商品单价");
- entity.Property(e => e.Number)
- .HasColumnName("number")
- .HasComment("商品数量");
- entity.Property(e => e.OrderId)
- .HasColumnName("order_id")
- .HasComment("订单ID");
- entity.Property(e => e.PicUrl)
- .HasColumnName("pic_url")
- .HasColumnType("varchar(255)")
- .HasComment("封面图")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.SkuId)
- .HasColumnName("sku_id")
- .HasComment("商品skuId");
- entity.Property(e => e.Specifications)
- .HasColumnName("specifications")
- .HasColumnType("varchar(1023)")
- .HasComment("商品货品的规格列表")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.UpdateTime)
- .HasColumnName("update_time")
- .HasColumnType("datetime")
- .HasComment("更新时间");
- entity.Property(e => e.Version)
- .HasColumnName("version")
- .HasComment("版本");
- });
- modelBuilder.Entity<KxsTicket>(entity =>
- {
- entity.ToTable("kxs_ticket");
- entity.HasComment("客小爽券码表");
- entity.Property(e => e.Id)
- .HasColumnName("id")
- .HasComment("主键ID");
- entity.Property(e => e.CreateTime)
- .HasColumnName("create_time")
- .HasColumnType("datetime")
- .HasComment("新增时间");
- entity.Property(e => e.DelFlag)
- .HasColumnName("del_flag")
- .HasComment("删除标记,0未删除,1已删除");
- entity.Property(e => e.LeaderId)
- .HasColumnName("leader_id")
- .HasComment("盟主用户ID");
- entity.Property(e => e.OrderId)
- .HasColumnName("order_id")
- .HasComment("购买订单ID");
- entity.Property(e => e.PartnerId)
- .HasColumnName("partner_id")
- .HasComment("合伙人用户ID");
- entity.Property(e => e.Status)
- .HasColumnName("status")
- .HasComment("状态 0未使用 1已使用 2已申请冻结");
- entity.Property(e => e.TicketAllotPath)
- .HasColumnName("ticket_allot_path")
- .HasColumnType("varchar(255)")
- .HasComment("机具卷轨迹记录")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.TicketCode)
- .HasColumnName("ticket_code")
- .HasColumnType("varchar(32)")
- .HasComment("券码")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.TicketType)
- .HasColumnName("ticket_type")
- .HasComment("券码类型 0电签 1大pos");
- entity.Property(e => e.UpdateTime)
- .HasColumnName("update_time")
- .HasColumnType("datetime")
- .HasComment("更新时间");
- entity.Property(e => e.UserId)
- .HasColumnName("user_id")
- .HasComment("用户ID");
- entity.Property(e => e.Version)
- .HasColumnName("version")
- .HasComment("版本");
- });
- modelBuilder.Entity<KxsTicketTransfer>(entity =>
- {
- entity.ToTable("kxs_ticket_transfer");
- entity.HasComment("客小爽券码划拨记录表");
- entity.Property(e => e.Id)
- .HasColumnName("id")
- .HasComment("主键ID");
- entity.Property(e => e.CreateTime)
- .HasColumnName("create_time")
- .HasColumnType("datetime")
- .HasComment("新增时间");
- entity.Property(e => e.DelFlag)
- .HasColumnName("del_flag")
- .HasComment("删除标记,0未删除,1已删除");
- entity.Property(e => e.OrderSn)
- .HasColumnName("order_sn")
- .HasColumnType("varchar(64)")
- .HasComment("订单号")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.Remark)
- .HasColumnName("remark")
- .HasColumnType("varchar(255)")
- .HasComment("备注")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.SendUserCode)
- .HasColumnName("send_user_code")
- .HasColumnType("varchar(32)")
- .HasComment("拨出用户编码")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.SendUserId)
- .HasColumnName("send_user_id")
- .HasComment("拨出用户ID");
- entity.Property(e => e.SendUserName)
- .HasColumnName("send_user_name")
- .HasColumnType("varchar(32)")
- .HasComment("拨出用户姓名")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.TicketType)
- .HasColumnName("ticket_type")
- .HasComment("券码类型 0电签 1大pos");
- entity.Property(e => e.ToUserCode)
- .HasColumnName("to_user_code")
- .HasColumnType("varchar(32)")
- .HasComment("拨入用户编码")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.ToUserId)
- .HasColumnName("to_user_id")
- .HasComment("拨入用户ID");
- entity.Property(e => e.ToUserName)
- .HasColumnName("to_user_name")
- .HasColumnType("varchar(32)")
- .HasComment("拨入用户姓名")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.TransferNum)
- .HasColumnName("transfer_num")
- .HasComment("数量");
- entity.Property(e => e.UpdateTime)
- .HasColumnName("update_time")
- .HasColumnType("datetime")
- .HasComment("更新时间");
- entity.Property(e => e.Version)
- .HasColumnName("version")
- .HasComment("版本");
- });
- modelBuilder.Entity<KxsTicketTransferInfo>(entity =>
- {
- entity.ToTable("kxs_ticket_transfer_info");
- entity.HasComment("客小爽券码划拨记录明细表");
- entity.Property(e => e.Id)
- .HasColumnName("id")
- .HasComment("主键ID");
- entity.Property(e => e.CreateTime)
- .HasColumnName("create_time")
- .HasColumnType("datetime")
- .HasComment("新增时间");
- entity.Property(e => e.DelFlag)
- .HasColumnName("del_flag")
- .HasComment("删除标记,0未删除,1已删除");
- entity.Property(e => e.OrderSn)
- .HasColumnName("order_sn")
- .HasColumnType("varchar(50)")
- .HasComment("划拨订单号")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.TicketCode)
- .HasColumnName("ticket_code")
- .HasColumnType("varchar(50)")
- .HasComment("券码")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.TicketId)
- .HasColumnName("ticket_id")
- .HasComment("券码ID");
- entity.Property(e => e.UpdateTime)
- .HasColumnName("update_time")
- .HasColumnType("datetime")
- .HasComment("更新时间");
- entity.Property(e => e.Version)
- .HasColumnName("version")
- .HasComment("版本");
- });
- modelBuilder.Entity<KxsTicketUpgrade>(entity =>
- {
- entity.ToTable("kxs_ticket_upgrade");
- entity.HasComment("券码升级记录表");
- entity.Property(e => e.Id)
- .HasColumnName("id")
- .HasComment("主键ID");
- entity.Property(e => e.CreateTime)
- .HasColumnName("create_time")
- .HasColumnType("datetime")
- .HasComment("新增时间");
- entity.Property(e => e.DelFlag)
- .HasColumnName("del_flag")
- .HasColumnType("varchar(1)")
- .HasDefaultValueSql("'0'")
- .HasComment("删除标记,0未删除,1已删除")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.Remark)
- .HasColumnName("remark")
- .HasColumnType("varchar(255)")
- .HasComment("备注")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.SourceCount)
- .HasColumnName("source_count")
- .HasComment("升级前电签券数量");
- entity.Property(e => e.SourceTickets)
- .HasColumnName("source_tickets")
- .HasColumnType("varchar(2056)")
- .HasComment("升级前的电签券")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.UpCount)
- .HasColumnName("up_count")
- .HasComment("升级数量");
- entity.Property(e => e.UpTickets)
- .HasColumnName("up_tickets")
- .HasColumnType("varchar(1000)")
- .HasComment("升级后的券 逗号隔开")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.UpdateTime)
- .HasColumnName("update_time")
- .HasColumnType("datetime")
- .HasComment("更新时间");
- entity.Property(e => e.UserCode)
- .HasColumnName("user_code")
- .HasColumnType("varchar(32)")
- .HasComment("创客编号")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.UserId)
- .HasColumnName("user_id")
- .HasComment("用户ID");
- entity.Property(e => e.Username)
- .HasColumnName("username")
- .HasColumnType("varchar(64)")
- .HasComment("创客姓名")
- .HasCharSet("utf8mb3")
- .HasCollation("utf8mb3_general_ci");
- entity.Property(e => e.Version)
- .HasColumnName("version")
- .HasComment("版本");
- });
- modelBuilder.Entity<UndoLog>(entity =>
- {
- entity.HasNoKey();
- entity.ToTable("undo_log");
- entity.HasComment("AT transaction mode undo table");
- entity.HasIndex(e => e.LogCreated)
- .HasName("ix_log_created");
- entity.HasIndex(e => new { e.Xid, e.BranchId })
- .HasName("ux_undo_log")
- .IsUnique();
- entity.Property(e => e.BranchId)
- .HasColumnName("branch_id")
- .HasComment("branch transaction id");
- entity.Property(e => e.Context)
- .IsRequired()
- .HasColumnName("context")
- .HasColumnType("varchar(128)")
- .HasComment("undo_log context,such as serialization")
- .HasCharSet("utf8mb4")
- .HasCollation("utf8mb4_0900_ai_ci");
- entity.Property(e => e.LogCreated)
- .HasColumnName("log_created")
- .HasComment("create datetime");
- entity.Property(e => e.LogModified)
- .HasColumnName("log_modified")
- .HasComment("modify datetime");
- entity.Property(e => e.LogStatus)
- .HasColumnName("log_status")
- .HasComment("0:normal status,1:defense status");
- entity.Property(e => e.RollbackInfo)
- .IsRequired()
- .HasColumnName("rollback_info")
- .HasComment("rollback info");
- entity.Property(e => e.Xid)
- .IsRequired()
- .HasColumnName("xid")
- .HasColumnType("varchar(128)")
- .HasComment("global transaction id")
- .HasCharSet("utf8mb4")
- .HasCollation("utf8mb4_0900_ai_ci");
- });
- OnModelCreatingPartial(modelBuilder);
- }
- partial void OnModelCreatingPartial(ModelBuilder modelBuilder);
- }
- }
|