using System; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata; namespace MySystem.KxsUserModels { public partial class WebCMSEntities : DbContext { public WebCMSEntities() { } public WebCMSEntities(DbContextOptions options) : base(options) { } public virtual DbSet KxsBankChangeLog { get; set; } public virtual DbSet KxsBase { get; set; } public virtual DbSet KxsCashResult { get; set; } public virtual DbSet KxsChangeType { get; set; } public virtual DbSet KxsChangeTypeKind { get; set; } public virtual DbSet KxsGdOpenInfo { get; set; } public virtual DbSet KxsLeader { get; set; } public virtual DbSet KxsLeaderAccountLog { get; set; } public virtual DbSet KxsLeaderAmountLog { get; set; } public virtual DbSet KxsLeaderByOrder { get; set; } public virtual DbSet KxsLeaderByOrderInfo { get; set; } public virtual DbSet KxsLeaderLimitLog { get; set; } public virtual DbSet KxsLevelConfig { get; set; } public virtual DbSet KxsPartner { get; set; } public virtual DbSet KxsPartnerAmountLog { get; set; } public virtual DbSet KxsProfitBase { get; set; } public virtual DbSet KxsProfitConfig { get; set; } public virtual DbSet KxsProfitInit { get; set; } public virtual DbSet KxsProfitInit2024 { get; set; } public virtual DbSet KxsProfitInitBefore { get; set; } public virtual DbSet KxsProfitInitBefore2024 { get; set; } public virtual DbSet KxsShdScore { get; set; } public virtual DbSet KxsShdTradeAmt { get; set; } public virtual DbSet KxsTotalDebt { get; set; } public virtual DbSet KxsTotalDebtLog { get; set; } public virtual DbSet KxsTradeLevelLog { get; set; } public virtual DbSet KxsUser { get; set; } public virtual DbSet KxsUserAddress { get; set; } public virtual DbSet KxsUserAdvance { get; set; } public virtual DbSet KxsUserAmount { get; set; } public virtual DbSet KxsUserAmountLog { get; set; } public virtual DbSet KxsUserAmountLog202203 { get; set; } public virtual DbSet KxsUserAmountLog202204 { get; set; } public virtual DbSet KxsUserAmountLog202205 { get; set; } public virtual DbSet KxsUserAmountLog202206 { get; set; } public virtual DbSet KxsUserAmountLog202207 { get; set; } public virtual DbSet KxsUserAmountLog202208 { get; set; } public virtual DbSet KxsUserAmountLog202209 { get; set; } public virtual DbSet KxsUserAmountLog202210 { get; set; } public virtual DbSet KxsUserAmountLog202211 { get; set; } public virtual DbSet KxsUserAmountLog202212 { get; set; } public virtual DbSet KxsUserAmountLog202301 { get; set; } public virtual DbSet KxsUserAmountLog202302 { get; set; } public virtual DbSet KxsUserAmountLog202303 { get; set; } public virtual DbSet KxsUserAmountLog202304 { get; set; } public virtual DbSet KxsUserAmountLog202305 { get; set; } public virtual DbSet KxsUserAmountLog202306 { get; set; } public virtual DbSet KxsUserAmountLog202307 { get; set; } public virtual DbSet KxsUserAmountLog202308 { get; set; } public virtual DbSet KxsUserAmountLog202309 { get; set; } public virtual DbSet KxsUserAmountLog202310 { get; set; } public virtual DbSet KxsUserAmountLog202311 { get; set; } public virtual DbSet KxsUserAmountLog202312 { get; set; } public virtual DbSet KxsUserAmountLog202401 { get; set; } public virtual DbSet KxsUserAmountLog202402 { get; set; } public virtual DbSet KxsUserAmountLog202403 { get; set; } public virtual DbSet KxsUserAmountLog202404 { get; set; } public virtual DbSet KxsUserAmountLog202405 { get; set; } public virtual DbSet KxsUserAmountLog202406 { get; set; } public virtual DbSet KxsUserAmountLog202407 { get; set; } public virtual DbSet KxsUserAmountLog202408 { get; set; } public virtual DbSet KxsUserAmountLog202409 { get; set; } public virtual DbSet KxsUserAmountLog202410 { get; set; } public virtual DbSet KxsUserAmountLog202411 { get; set; } public virtual DbSet KxsUserAmountLog202412 { get; set; } public virtual DbSet KxsUserAward { get; set; } public virtual DbSet KxsUserBank { get; set; } public virtual DbSet KxsUserByStage { get; set; } public virtual DbSet KxsUserByStageLog { get; set; } public virtual DbSet KxsUserEquity { get; set; } public virtual DbSet KxsUserLevelLog { get; set; } public virtual DbSet KxsUserPresetBefore { get; set; } public virtual DbSet KxsUserPresetLog { get; set; } public virtual DbSet KxsUserProfit { get; set; } public virtual DbSet KxsUserProfitLkb { get; set; } public virtual DbSet KxsUserProfitZlb { get; set; } public virtual DbSet KxsUserReReal { get; set; } public virtual DbSet KxsUserReal { get; set; } public virtual DbSet KxsUserRealLevel { get; set; } public virtual DbSet KxsUserWithdrawal { get; set; } public virtual DbSet KxsUserYuepay { get; set; } public virtual DbSet KxsWithdrawalConfig { get; set; } public virtual DbSet UndoLog { get; set; } protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) { if (!optionsBuilder.IsConfigured) { optionsBuilder.UseMySql(Library.ConfigurationManager.AppSettings["KxsUserSqlConnStr"].ToString(), x => x.ServerVersion("5.7.17-mysql")); } } protected override void OnModelCreating(ModelBuilder modelBuilder) { modelBuilder.Entity(entity => { entity.ToTable("kxs_bank_change_log"); entity.HasComment("用户结算卡变更记录"); entity.Property(e => e.Id) .HasColumnName("id") .HasComment("主键ID"); entity.Property(e => e.AfterBankName) .HasColumnName("after_bank_name") .HasColumnType("varchar(64)") .HasComment("变更后银行卡名称") .HasCharSet("utf8mb3") .HasCollation("utf8mb3_general_ci"); entity.Property(e => e.AfterCardNo) .HasColumnName("after_card_no") .HasColumnType("varchar(32)") .HasComment("变更后卡号") .HasCharSet("utf8mb3") .HasCollation("utf8mb3_general_ci"); entity.Property(e => e.BeforeBankName) .HasColumnName("before_bank_name") .HasColumnType("varchar(64)") .HasComment("变更前银行卡名称") .HasCharSet("utf8mb3") .HasCollation("utf8mb3_general_ci"); entity.Property(e => e.BeforeCardNo) .HasColumnName("before_card_no") .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.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(entity => { entity.ToTable("kxs_base"); 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.UpdateTime) .HasColumnName("update_time") .HasColumnType("datetime") .HasComment("更新时间"); entity.Property(e => e.Version) .HasColumnName("version") .HasComment("版本"); }); modelBuilder.Entity(entity => { entity.ToTable("kxs_cash_result"); 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.IfCode) .HasColumnName("if_code") .HasColumnType("varchar(32)") .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.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(entity => { entity.ToTable("kxs_change_type"); 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.Kind) .HasColumnName("kind") .HasColumnType("varchar(6)") .HasComment("收支类型 add新增 sub减少") .HasCharSet("utf8mb3") .HasCollation("utf8mb3_general_ci"); entity.Property(e => e.Name) .HasColumnName("name") .HasColumnType("varchar(32)") .HasComment("分类名称") .HasCharSet("utf8mb3") .HasCollation("utf8mb3_general_ci"); entity.Property(e => e.Sort) .HasColumnName("sort") .HasComment("排序"); entity.Property(e => e.UpdateTime) .HasColumnName("update_time") .HasColumnType("datetime") .HasComment("更新时间"); entity.Property(e => e.Version) .HasColumnName("version") .HasComment("版本"); }); modelBuilder.Entity(entity => { entity.ToTable("kxs_change_type_kind"); entity.HasComment("收支明细分类明细表"); entity.Property(e => e.Id) .HasColumnName("id") .HasComment("主键ID"); entity.Property(e => e.ChangeTypeId) .HasColumnName("change_type_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.Kind) .HasColumnName("kind") .HasColumnType("varchar(6)") .HasComment("收支类型 add新增 sub减少") .HasCharSet("utf8mb3") .HasCollation("utf8mb3_general_ci"); entity.Property(e => e.Name) .HasColumnName("name") .HasColumnType("varchar(32)") .HasComment("类型名称") .HasCharSet("utf8mb3") .HasCollation("utf8mb3_general_ci"); entity.Property(e => e.Sort) .HasColumnName("sort") .HasComment("排序"); entity.Property(e => e.UpdateTime) .HasColumnName("update_time") .HasColumnType("datetime") .HasComment("更新时间"); entity.Property(e => e.Version) .HasColumnName("version") .HasComment("版本"); }); modelBuilder.Entity(entity => { entity.ToTable("kxs_gd_open_info"); entity.HasComment("行销宝工号信息"); entity.Property(e => e.Id) .HasColumnName("id") .HasComment("主键ID"); entity.Property(e => e.BrhId) .HasColumnName("brh_id") .HasColumnType("varchar(50)") .HasComment("机构用户编码") .HasCharSet("utf8mb3") .HasCollation("utf8mb3_general_ci"); entity.Property(e => e.BrhName) .HasColumnName("brh_name") .HasColumnType("varchar(128)") .HasComment("机构名称") .HasCharSet("utf8mb3") .HasCollation("utf8mb3_general_ci"); entity.Property(e => e.ChannelCode) .HasColumnName("channel_code") .HasColumnType("varchar(50)") .HasComment("归属社招渠道编码") .HasCharSet("utf8mb3") .HasCollation("utf8mb3_general_ci"); entity.Property(e => e.ChannelName) .HasColumnName("channel_name") .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.Gender) .HasColumnName("gender") .HasColumnType("varchar(12)") .HasComment("性别") .HasCharSet("utf8mb3") .HasCollation("utf8mb3_general_ci"); entity.Property(e => e.IdNo) .HasColumnName("id_no") .HasColumnType("varchar(50)") .HasComment("身份证号") .HasCharSet("utf8mb3") .HasCollation("utf8mb3_general_ci"); entity.Property(e => e.InviteCode) .HasColumnName("invite_code") .HasColumnType("varchar(50)") .HasComment("邀请码") .HasCharSet("utf8mb3") .HasCollation("utf8mb3_general_ci"); entity.Property(e => e.JobId) .HasColumnName("job_id") .HasColumnType("varchar(50)") .HasComment("行销宝工号") .HasCharSet("utf8mb3") .HasCollation("utf8mb3_general_ci"); entity.Property(e => e.JobStatus) .HasColumnName("job_status") .HasColumnType("varchar(10)") .HasComment("工号状态") .HasCharSet("utf8mb3") .HasCollation("utf8mb3_general_ci"); entity.Property(e => e.Mobile) .HasColumnName("mobile") .HasColumnType("varchar(16)") .HasComment("手机号") .HasCharSet("utf8mb3") .HasCollation("utf8mb3_general_ci"); entity.Property(e => e.OpenTime) .HasColumnName("open_time") .HasColumnType("varchar(50)") .HasComment("开通时间") .HasCharSet("utf8mb3") .HasCollation("utf8mb3_general_ci"); entity.Property(e => e.OprName) .HasColumnName("opr_name") .HasColumnType("varchar(50)") .HasComment("人员姓名") .HasCharSet("utf8mb3") .HasCollation("utf8mb3_general_ci"); entity.Property(e => e.ProvincialCompany) .HasColumnName("provincial_company") .HasColumnType("varchar(50)") .HasComment("归属省公司") .HasCharSet("utf8mb3") .HasCollation("utf8mb3_general_ci"); entity.Property(e => e.Role) .HasColumnName("role") .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(entity => { entity.ToTable("kxs_leader"); entity.HasComment("盟主表"); entity.Property(e => e.Id) .HasColumnName("id") .HasComment("主键ID"); entity.Property(e => e.ComFlag) .HasColumnName("com_flag") .HasComment("是否对公(1:是,0:否)"); 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.ExpiredDate) .HasColumnName("expired_date") .HasColumnType("datetime") .HasComment("过期时间"); entity.Property(e => e.LastBuyDate) .HasColumnName("last_buy_date") .HasColumnType("datetime") .HasComment("最后购买时间"); entity.Property(e => e.LeaderLevel) .HasColumnName("leader_level") .HasComment("盟主预设职级"); entity.Property(e => e.LeaderType) .HasColumnName("leader_type") .HasDefaultValueSql("'1'") .HasComment("盟主类型 小盟主=1 大盟主=2"); entity.Property(e => e.Remark) .HasColumnName("remark") .HasColumnType("varchar(255)") .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(32)") .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(entity => { entity.ToTable("kxs_leader_account_log"); entity.HasComment("盟主金额变动记录"); entity.Property(e => e.Id) .HasColumnName("id") .HasComment("主键ID"); entity.Property(e => e.AfterAmount) .HasColumnName("after_amount") .HasColumnType("decimal(18,2)") .HasComment("变动后金额"); entity.Property(e => e.Amount) .HasColumnName("amount") .HasColumnType("decimal(18,2)") .HasComment("操作金额"); entity.Property(e => e.BeforeAmount) .HasColumnName("before_amount") .HasColumnType("decimal(18,2)") .HasComment("变动前金额"); 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.DataId) .HasColumnName("data_id") .HasComment("数据来源Id"); entity.Property(e => e.DelFlag) .HasColumnName("del_flag") .HasComment("删除标记,0未删除,1已删除"); entity.Property(e => e.Kind) .HasColumnName("kind") .HasColumnType("varchar(6)") .HasComment("日志类型 add新增 sub减少") .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.SourceUserId) .HasColumnName("source_user_id") .HasComment("大盟主的用户ID 标记"); entity.Property(e => e.TradeDate) .HasColumnName("trade_date") .HasComment("交易天"); entity.Property(e => e.TradeMonth) .HasColumnName("trade_month") .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.VariationCause) .HasColumnName("variation_cause") .HasColumnType("varchar(1000)") .HasComment("原因") .HasCharSet("utf8mb3") .HasCollation("utf8mb3_general_ci"); entity.Property(e => e.VariationType) .HasColumnName("variation_type") .HasComment("金额类型 对应chang_type表"); entity.Property(e => e.Version) .HasColumnName("version") .HasComment("版本"); }); modelBuilder.Entity(entity => { entity.ToTable("kxs_leader_amount_log"); entity.HasComment("盟主金额变动记录"); entity.Property(e => e.Id) .HasColumnName("id") .HasComment("主键ID"); entity.Property(e => e.AfterAmount) .HasColumnName("after_amount") .HasColumnType("decimal(18,2)") .HasComment("变动后金额"); entity.Property(e => e.AfterWithdrawalAmount) .HasColumnName("after_withdrawal_amount") .HasColumnType("decimal(18,2)") .HasComment("变动后可提现额度"); entity.Property(e => e.Amount) .HasColumnName("amount") .HasColumnType("decimal(18,2)") .HasComment("操作金额"); entity.Property(e => e.BeforeAmount) .HasColumnName("before_amount") .HasColumnType("decimal(18,2)") .HasComment("变动前金额"); entity.Property(e => e.BeforeWithdrawalAmount) .HasColumnName("before_withdrawal_amount") .HasColumnType("decimal(18,2)") .HasComment("变动前可提现额度"); entity.Property(e => e.ChangeType) .HasColumnName("change_type") .HasComment("收支类型 对应change_type表"); 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.Kind) .HasColumnName("kind") .HasColumnType("varchar(6)") .HasComment("日志类型 add新增 sub减少") .HasCharSet("utf8mb3") .HasCollation("utf8mb3_general_ci"); entity.Property(e => e.OrderId) .HasColumnName("order_id") .HasComment("订单ID"); entity.Property(e => e.Remark) .HasColumnName("remark") .HasColumnType("varchar(128)") .HasComment("备注") .HasCharSet("utf8mb3") .HasCollation("utf8mb3_general_ci"); entity.Property(e => e.SourceUserId) .HasColumnName("source_user_id") .HasComment("大盟主的用户ID 标记"); entity.Property(e => e.UpdateTime) .HasColumnName("update_time") .HasColumnType("datetime") .HasComment("更新时间"); entity.Property(e => e.UseAmount) .HasColumnName("use_amount") .HasColumnType("decimal(18,2)") .HasComment("变动储蓄金金额"); entity.Property(e => e.UseWithdrawalAmount) .HasColumnName("use_withdrawal_amount") .HasColumnType("decimal(18,2)") .HasComment("变动可提现额度"); entity.Property(e => e.UserId) .HasColumnName("user_id") .HasComment("用户ID"); entity.Property(e => e.VariationCause) .HasColumnName("variation_cause") .HasColumnType("varchar(1000)") .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(entity => { entity.ToTable("kxs_leader_by_order"); entity.HasComment("盟主兑换订单表"); entity.Property(e => e.Id) .HasColumnName("id") .HasComment("主键ID"); entity.Property(e => e.ByData) .HasColumnName("by_data") .HasColumnType("varchar(255)") .HasComment("兑换数量和类型的明细") .HasCharSet("utf8mb3") .HasCollation("utf8mb3_general_ci"); entity.Property(e => e.ByNum) .HasColumnName("by_num") .HasComment("兑换数量"); 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.OrderSn) .HasColumnName("order_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.UserId) .HasColumnName("user_id") .HasComment("用户ID"); entity.Property(e => e.Version) .HasColumnName("version") .HasComment("版本"); }); modelBuilder.Entity(entity => { entity.ToTable("kxs_leader_by_order_info"); entity.HasComment("盟主兑换记录券"); entity.Property(e => e.Id) .HasColumnName("id") .HasComment("主键ID"); entity.Property(e => e.BrandType) .HasColumnName("brand_type") .HasComment("类型 0电签 1大pos"); 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.OrderId) .HasColumnName("order_id") .HasComment("订单ID"); entity.Property(e => e.TicketCode) .HasColumnName("ticket_code") .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(entity => { entity.ToTable("kxs_leader_limit_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") .HasColumnType("varchar(1)") .HasDefaultValueSql("'0'") .HasComment("删除标记,0未删除,1已删除") .HasCharSet("utf8mb3") .HasCollation("utf8mb3_general_ci"); entity.Property(e => e.LeaderId) .HasColumnName("leader_id") .HasComment("大盟主/合伙人的用户ID"); entity.Property(e => e.ReturnLimit) .HasColumnName("return_limit") .HasColumnType("decimal(18,2)") .HasComment("返还的额度"); entity.Property(e => e.SourceUserId) .HasColumnName("source_user_id") .HasComment("额度来源创客ID"); entity.Property(e => e.UpdateTime) .HasColumnName("update_time") .HasColumnType("datetime") .HasComment("更新时间"); entity.Property(e => e.ValidLimit) .HasColumnName("valid_limit") .HasColumnType("decimal(18,2)") .HasComment("剩余额度"); entity.Property(e => e.Version) .HasColumnName("version") .HasComment("版本"); }); modelBuilder.Entity(entity => { entity.ToTable("kxs_level_config"); entity.HasComment("创客分润等级配置表"); entity.Property(e => e.Id) .HasColumnName("id") .HasComment("主键ID"); 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") .HasColumnType("varchar(1)") .HasDefaultValueSql("'0'") .HasComment("删除标记,0未删除,1已删除") .HasCharSet("utf8mb3") .HasCollation("utf8mb3_general_ci"); entity.Property(e => e.EndAmt) .HasColumnName("end_amt") .HasColumnType("decimal(18,2)") .HasComment("最大额度"); entity.Property(e => e.Level) .HasColumnName("level") .HasComment("等级"); entity.Property(e => e.Remark) .HasColumnName("remark") .HasColumnType("varchar(255)") .HasComment("备注") .HasCharSet("utf8mb3") .HasCollation("utf8mb3_general_ci"); entity.Property(e => e.StartAmt) .HasColumnName("start_amt") .HasColumnType("decimal(18,2)") .HasComment("开始额度"); 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.Version) .HasColumnName("version") .HasComment("版本"); }); modelBuilder.Entity(entity => { entity.ToTable("kxs_partner"); 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.CreateTime) .HasColumnName("create_time") .HasColumnType("datetime") .HasComment("新增时间"); entity.Property(e => e.DelFlag) .HasColumnName("del_flag") .HasComment("删除标记,0未删除,1已删除"); entity.Property(e => e.ExpiredDate) .HasColumnName("expired_date") .HasColumnType("datetime") .HasComment("过期时间"); entity.Property(e => e.PartnerLevel) .HasColumnName("partner_level") .HasComment("合伙人职级"); entity.Property(e => e.PartnerType) .HasColumnName("partner_type") .HasComment("合伙人等级"); entity.Property(e => e.StoreAmount) .HasColumnName("store_amount") .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("版本"); entity.Property(e => e.WithdrawalAmount) .HasColumnName("withdrawal_amount") .HasColumnType("decimal(18,2)") .HasComment("可提现额度"); }); modelBuilder.Entity(entity => { entity.ToTable("kxs_partner_amount_log"); entity.HasComment("合伙人金额变动记录"); entity.Property(e => e.Id) .HasColumnName("id") .HasComment("主键ID"); entity.Property(e => e.AfterAmount) .HasColumnName("after_amount") .HasColumnType("decimal(18,2)") .HasComment("变动后金额"); entity.Property(e => e.AfterStoreAmount) .HasColumnName("after_store_amount") .HasColumnType("decimal(18,2)") .HasComment("使用后关联分仓额度"); entity.Property(e => e.AfterTotalAmount) .HasColumnName("after_total_amount") .HasColumnType("decimal(18,2)") .HasComment("变动后可使用额度"); entity.Property(e => e.AfterWithdrawalAmount) .HasColumnName("after_withdrawal_amount") .HasColumnType("decimal(18,2)") .HasComment("使用后可提现额度"); entity.Property(e => e.Amount) .HasColumnName("amount") .HasColumnType("decimal(18,2)") .HasComment("操作金额"); entity.Property(e => e.BeforeAmount) .HasColumnName("before_amount") .HasColumnType("decimal(18,2)") .HasComment("变动前金额"); entity.Property(e => e.ChangeType) .HasColumnName("change_type") .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.Kind) .HasColumnName("kind") .HasColumnType("varchar(6)") .HasComment("日志类型 add新增 sub减少") .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.UpdateTime) .HasColumnName("update_time") .HasColumnType("datetime") .HasComment("更新时间"); entity.Property(e => e.UseStoreAmount) .HasColumnName("use_store_amount") .HasColumnType("decimal(18,2)") .HasComment("使用关联分仓额度"); entity.Property(e => e.UseTotalAmount) .HasColumnName("use_total_amount") .HasColumnType("decimal(18,2)") .HasComment("使用未使用额度"); entity.Property(e => e.UseWithdrawalAmount) .HasColumnName("use_withdrawal_amount") .HasColumnType("decimal(18,2)") .HasComment("使用可提现额度"); entity.Property(e => e.UserId) .HasColumnName("user_id") .HasComment("用户ID"); entity.Property(e => e.VariationCause) .HasColumnName("variation_cause") .HasColumnType("varchar(255)") .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(entity => { entity.ToTable("kxs_profit_base"); entity.HasComment("分润配置分类表"); entity.Property(e => e.Id) .HasColumnName("id") .HasComment("主键ID"); 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") .HasColumnType("varchar(1)") .HasDefaultValueSql("'0'") .HasComment("删除标记,0未删除,1已删除") .HasCharSet("utf8mb3") .HasCollation("utf8mb3_general_ci"); entity.Property(e => e.Level) .HasColumnName("level") .HasComment("等级"); entity.Property(e => e.LvKey) .HasColumnName("lv_key") .HasColumnType("varchar(50)") .HasComment("分类key") .HasCharSet("utf8mb3") .HasCollation("utf8mb3_general_ci"); entity.Property(e => e.Name) .HasColumnName("name") .HasColumnType("varchar(128)") .HasComment("分类名称") .HasCharSet("utf8mb3") .HasCollation("utf8mb3_general_ci"); entity.Property(e => e.ProfitRate) .HasColumnName("profit_rate") .HasColumnType("decimal(18,4)") .HasComment("分润比例"); entity.Property(e => e.Remark) .HasColumnName("remark") .HasColumnType("varchar(255)") .HasComment("备注") .HasCharSet("utf8mb3") .HasCollation("utf8mb3_general_ci"); entity.Property(e => e.Status) .HasColumnName("status") .HasDefaultValueSql("'1'") .HasComment("状态: 0-停用 1-启用"); 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.Version) .HasColumnName("version") .HasComment("版本"); }); modelBuilder.Entity(entity => { entity.ToTable("kxs_profit_config"); entity.HasComment("分润配置表"); entity.Property(e => e.Id) .HasColumnName("id") .HasComment("主键ID"); entity.Property(e => e.BaseId) .HasColumnName("base_id") .HasComment("分润比例ID"); entity.Property(e => e.BrandId) .HasColumnName("brand_id") .HasComment("品牌ID"); 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") .HasColumnType("varchar(1)") .HasDefaultValueSql("'0'") .HasComment("删除标记,0未删除,1已删除") .HasCharSet("utf8mb3") .HasCollation("utf8mb3_general_ci"); entity.Property(e => e.Level) .HasColumnName("level") .HasComment("等级"); entity.Property(e => e.ProfitType) .HasColumnName("profit_type") .HasComment("分润类型"); entity.Property(e => e.Remark) .HasColumnName("remark") .HasColumnType("varchar(255)") .HasComment("备注") .HasCharSet("utf8mb3") .HasCollation("utf8mb3_general_ci"); entity.Property(e => e.Status) .HasColumnName("status") .HasDefaultValueSql("'1'") .HasComment("状态: 0-停用 1-启用"); 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.Version) .HasColumnName("version") .HasComment("版本"); }); modelBuilder.Entity(entity => { entity.ToTable("kxs_profit_init"); entity.HasComment("分润计算各品牌初始表"); entity.HasIndex(e => new { e.FromUserId, e.Status, e.ProfitMonth, e.UserId, e.ProfitType, e.BrandId }) .HasName("query"); 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.FromUserId) .HasColumnName("from_user_id") .HasComment("分润来源用户ID"); entity.Property(e => e.Level) .HasColumnName("level") .HasComment("计算时的最高等级"); entity.Property(e => e.MessageId) .HasColumnName("message_id") .HasColumnType("varchar(64)") .HasComment("处理批次号 消息ID") .HasCharSet("utf8mb3") .HasCollation("utf8mb3_general_ci"); entity.Property(e => e.ProfitAmt) .HasColumnName("profit_amt") .HasColumnType("decimal(18,2)") .HasComment("分润金额"); entity.Property(e => e.ProfitMonth) .HasColumnName("profit_month") .HasComment("分润月"); entity.Property(e => e.ProfitType) .HasColumnName("profit_type") .HasComment("分润类型 0直推 1团队 0直推 1团队 "); entity.Property(e => e.Rate) .HasColumnName("rate") .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.Status) .HasColumnName("status") .HasComment("状态 0未展示 1已展示0未展示 1已展示"); entity.Property(e => e.TradeAmt) .HasColumnName("trade_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(entity => { entity.ToTable("kxs_profit_init_2024"); entity.HasComment("分润计算各品牌初始表"); entity.HasIndex(e => new { e.FromUserId, e.Status, e.ProfitMonth, e.UserId, e.ProfitType, e.BrandId }) .HasName("query"); 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.FromUserId) .HasColumnName("from_user_id") .HasComment("分润来源用户ID"); entity.Property(e => e.Level) .HasColumnName("level") .HasComment("计算时的最高等级"); entity.Property(e => e.MessageId) .HasColumnName("message_id") .HasColumnType("varchar(64)") .HasComment("处理批次号 消息ID") .HasCharSet("utf8mb3") .HasCollation("utf8mb3_general_ci"); entity.Property(e => e.ProfitAmt) .HasColumnName("profit_amt") .HasColumnType("decimal(18,2)") .HasComment("分润金额"); entity.Property(e => e.ProfitMonth) .HasColumnName("profit_month") .HasComment("分润月"); entity.Property(e => e.ProfitType) .HasColumnName("profit_type") .HasComment("分润类型 0直推 1团队 0直推 1团队 "); entity.Property(e => e.Rate) .HasColumnName("rate") .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.Status) .HasColumnName("status") .HasComment("状态 0未展示 1已展示0未展示 1已展示"); entity.Property(e => e.TradeAmt) .HasColumnName("trade_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(entity => { entity.ToTable("kxs_profit_init_before"); entity.HasComment("分润计算各品牌初始表"); entity.HasIndex(e => new { e.FromUserId, e.Status, e.ProfitMonth, e.UserId, e.ProfitType, e.BrandId }) .HasName("query"); 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.FromUserId) .HasColumnName("from_user_id") .HasComment("分润来源用户ID"); entity.Property(e => e.Level) .HasColumnName("level") .HasComment("计算时的最高等级"); entity.Property(e => e.MessageId) .HasColumnName("message_id") .HasColumnType("varchar(64)") .HasComment("处理批次号 消息ID") .HasCharSet("utf8mb3") .HasCollation("utf8mb3_general_ci"); entity.Property(e => e.ProfitAmt) .HasColumnName("profit_amt") .HasColumnType("decimal(18,2)") .HasComment("分润金额"); entity.Property(e => e.ProfitMonth) .HasColumnName("profit_month") .HasComment("分润月"); entity.Property(e => e.ProfitType) .HasColumnName("profit_type") .HasComment("分润类型 0直推 1团队 0直推 1团队 "); entity.Property(e => e.Rate) .HasColumnName("rate") .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.Status) .HasColumnName("status") .HasComment("状态 0未展示 1已展示0未展示 1已展示"); entity.Property(e => e.TradeAmt) .HasColumnName("trade_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(entity => { entity.ToTable("kxs_profit_init_before_2024"); entity.HasComment("分润计算各品牌初始表"); entity.HasIndex(e => new { e.FromUserId, e.Status, e.ProfitMonth, e.UserId, e.ProfitType, e.BrandId }) .HasName("query"); 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.FromUserId) .HasColumnName("from_user_id") .HasComment("分润来源用户ID"); entity.Property(e => e.Level) .HasColumnName("level") .HasComment("计算时的最高等级"); entity.Property(e => e.MessageId) .HasColumnName("message_id") .HasColumnType("varchar(64)") .HasComment("处理批次号 消息ID") .HasCharSet("utf8mb3") .HasCollation("utf8mb3_general_ci"); entity.Property(e => e.ProfitAmt) .HasColumnName("profit_amt") .HasColumnType("decimal(18,2)") .HasComment("分润金额"); entity.Property(e => e.ProfitMonth) .HasColumnName("profit_month") .HasComment("分润月"); entity.Property(e => e.ProfitType) .HasColumnName("profit_type") .HasComment("分润类型 0直推 1团队 0直推 1团队 "); entity.Property(e => e.Rate) .HasColumnName("rate") .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.Status) .HasColumnName("status") .HasComment("状态 0未展示 1已展示0未展示 1已展示"); entity.Property(e => e.TradeAmt) .HasColumnName("trade_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(entity => { entity.ToTable("kxs_shd_score"); entity.HasComment("股东大盘分红用户积分表"); entity.Property(e => e.Id) .HasColumnName("id") .HasComment("主键ID"); entity.Property(e => e.CenterScore) .HasColumnName("center_score") .HasComment("中级股东积分"); 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.FirstScore) .HasColumnName("first_score") .HasComment("初级股东积分"); entity.Property(e => e.HighScore) .HasColumnName("high_score") .HasComment("高级股东积分"); entity.Property(e => e.Month) .HasColumnName("month") .HasComment("统计月份"); 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(entity => { entity.ToTable("kxs_shd_trade_amt"); entity.HasComment("股东大盘分红交易表"); entity.Property(e => e.Id) .HasColumnName("id") .HasComment("主键ID"); entity.Property(e => e.BonusPool) .HasColumnName("bonus_pool") .HasColumnType("decimal(18,2)") .HasComment("总奖金池"); entity.Property(e => e.CenterBonus) .HasColumnName("center_bonus") .HasColumnType("decimal(18,2)") .HasComment("中级股东奖金池"); 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.FirstBonus) .HasColumnName("first_bonus") .HasColumnType("decimal(18,2)") .HasComment("初级奖金池"); entity.Property(e => e.HighBonus) .HasColumnName("high_bonus") .HasColumnType("decimal(18,2)") .HasComment("高级股东奖金池"); entity.Property(e => e.TradeAmt) .HasColumnName("trade_amt") .HasColumnType("decimal(18,2)") .HasComment("总交易额"); entity.Property(e => e.TradeMonth) .HasColumnName("trade_month") .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.Version) .HasColumnName("version") .HasComment("版本"); }); modelBuilder.Entity(entity => { entity.ToTable("kxs_total_debt"); entity.HasComment("用户总欠款表"); entity.Property(e => e.Id) .HasColumnName("id") .HasComment("主键ID"); entity.Property(e => e.CreateBy) .HasColumnName("create_by") .HasColumnType("varchar(128)") .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.Remark) .HasColumnName("remark") .HasColumnType("varchar(255)") .HasComment("备注") .HasCharSet("utf8mb3") .HasCollation("utf8mb3_general_ci"); entity.Property(e => e.TotalDebt) .HasColumnName("total_debt") .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(entity => { entity.ToTable("kxs_total_debt_log"); entity.HasComment("用户总欠款变动日志表"); entity.Property(e => e.Id) .HasColumnName("id") .HasComment("主键ID"); entity.Property(e => e.AfterAmount) .HasColumnName("after_amount") .HasColumnType("decimal(18,2)") .HasComment("变动后金额"); entity.Property(e => e.Amount) .HasColumnName("amount") .HasColumnType("decimal(18,2)") .HasComment("操作金额"); entity.Property(e => e.BeforeAmount) .HasColumnName("before_amount") .HasColumnType("decimal(18,2)") .HasComment("变动前金额"); entity.Property(e => e.ChangeType) .HasColumnName("change_type") .HasComment("变动类型 "); entity.Property(e => e.CreateBy) .HasColumnName("create_by") .HasColumnType("varchar(128)") .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.Kind) .HasColumnName("kind") .HasColumnType("varchar(6)") .HasComment("日志类型 add新增 sub减少") .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.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(entity => { entity.ToTable("kxs_trade_level_log"); entity.HasComment("用户交易职级日志表"); entity.HasIndex(e => new { e.UserId, e.TradeMonth }) .HasName("query") .IsUnique(); 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.LastLevel) .HasColumnName("last_level") .HasComment("上月职级"); entity.Property(e => e.Level) .HasColumnName("level") .HasComment("当前职级"); entity.Property(e => e.Remark) .HasColumnName("remark") .HasColumnType("varchar(255)") .HasComment("备注") .HasCharSet("utf8mb3") .HasCollation("utf8mb3_general_ci"); entity.Property(e => e.TradeAmt) .HasColumnName("trade_amt") .HasColumnType("decimal(18,2)") .HasComment("当前职级的交易额"); entity.Property(e => e.TradeMonth) .HasColumnName("trade_month") .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(entity => { entity.ToTable("kxs_user"); entity.HasComment("用户表"); entity.HasIndex(e => e.Phone) .HasName("phone"); entity.HasIndex(e => e.Status) .HasName("status"); entity.HasIndex(e => e.UserCode) .HasName("userCode"); 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.Avatar) .HasColumnName("avatar") .HasColumnType("varchar(255)") .HasComment("头像") .HasCharSet("utf8mb3") .HasCollation("utf8mb3_general_ci"); 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.HandPwd) .HasColumnName("hand_pwd") .HasColumnType("varchar(128)") .HasComment("手势密码") .HasCharSet("utf8mb3") .HasCollation("utf8mb3_general_ci"); entity.Property(e => e.HiddenLevel) .HasColumnName("hidden_level") .HasComment("隐藏推荐关系0默认 1隐藏"); entity.Property(e => e.IsMerchantMaker) .HasColumnName("is_merchant_maker") .HasComment("是否商户型创客 0否 1是"); entity.Property(e => e.IsMinWarehouse) .HasColumnName("is_min_warehouse") .HasComment("是否小分仓 0否 1是"); entity.Property(e => e.LogoutTime) .HasColumnName("logout_time") .HasColumnType("datetime") .HasComment("注销时间"); entity.Property(e => e.Password) .HasColumnName("password") .HasColumnType("varchar(128)") .HasComment("密码") .HasCharSet("utf8mb3") .HasCollation("utf8mb3_general_ci"); entity.Property(e => e.PayPwd) .HasColumnName("pay_pwd") .HasColumnType("varchar(128)") .HasComment("支付密码") .HasCharSet("utf8mb3") .HasCollation("utf8mb3_general_ci"); entity.Property(e => e.Phone) .HasColumnName("phone") .HasColumnType("varchar(18)") .HasComment("手机号") .HasCharSet("utf8mb3") .HasCollation("utf8mb3_general_ci"); entity.Property(e => e.Pid) .HasColumnName("pid") .HasComment("上级ID"); entity.Property(e => e.PidPath) .HasColumnName("pid_path") .HasColumnType("varchar(2000)") .HasComment("推荐人路径") .HasCharSet("utf8mb3") .HasCollation("utf8mb3_general_ci"); entity.Property(e => e.RealStatus) .HasColumnName("real_status") .HasComment("实名状态 0未实名 1已实名"); entity.Property(e => e.Remark) .HasColumnName("remark") .HasColumnType("varchar(256)") .HasComment("备注信息") .HasCharSet("utf8mb3") .HasCollation("utf8mb3_general_ci"); entity.Property(e => e.Salt) .HasColumnName("salt") .HasColumnType("varchar(255)") .HasComment("盐值") .HasCharSet("utf8mb3") .HasCollation("utf8mb3_general_ci"); entity.Property(e => e.Status) .HasColumnName("status") .HasDefaultValueSql("'1'") .HasComment("状态 0注销 1正常 2锁定不可登陆和提现"); entity.Property(e => e.ThisMonthTrade) .HasColumnName("this_month_trade") .HasColumnType("decimal(18,2)") .HasComment("本月交易额"); entity.Property(e => e.ToMerchantMakerTime) .HasColumnName("to_merchant_maker_time") .HasColumnType("datetime") .HasComment("成为商户型创客时间"); 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(18)") .HasComment("邀请码") .HasCharSet("utf8mb3") .HasCollation("utf8mb3_general_ci"); entity.Property(e => e.UserLevel) .HasColumnName("user_level") .HasComment("用户等级"); 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(entity => { entity.ToTable("kxs_user_address"); entity.HasComment("用户收货地址表"); entity.Property(e => e.Id) .HasColumnName("id") .HasComment("主键ID"); entity.Property(e => e.Address) .HasColumnName("address") .HasColumnType("varchar(255)") .HasComment("详细地址") .HasCharSet("utf8mb4") .HasCollation("utf8mb4_0900_ai_ci"); entity.Property(e => e.Area) .HasColumnName("area") .HasColumnType("varchar(64)") .HasComment("区县") .HasCharSet("utf8mb3") .HasCollation("utf8mb3_general_ci"); entity.Property(e => e.City) .HasColumnName("city") .HasColumnType("varchar(32)") .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.IsDefault) .HasColumnName("is_default") .HasComment("是否默认 0否 1是"); entity.Property(e => e.Phone) .HasColumnName("phone") .HasColumnType("varchar(18)") .HasComment("联系电话") .HasCharSet("utf8mb3") .HasCollation("utf8mb3_general_ci"); entity.Property(e => e.Province) .HasColumnName("province") .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.UserId) .HasColumnName("user_id") .HasComment("用户ID"); entity.Property(e => e.Version) .HasColumnName("version") .HasComment("版本"); }); modelBuilder.Entity(entity => { entity.ToTable("kxs_user_advance"); entity.HasComment("客小爽用户预扣款表"); entity.Property(e => e.Id) .HasColumnName("id") .HasComment("主键ID"); entity.Property(e => e.AdvanceType) .HasColumnName("advance_type") .HasComment("预扣款类型 普通预扣款=1 分期预扣款=2 机具过期预扣款=124"); entity.Property(e => e.Amount) .HasColumnName("amount") .HasColumnType("decimal(18,2)") .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.ExtField) .HasColumnName("ext_field") .HasColumnType("varchar(128)") .HasComment("扩展字段") .HasCharSet("utf8mb3") .HasCollation("utf8mb3_general_ci"); entity.Property(e => e.Kind) .HasColumnName("kind") .HasComment("待扣类别 创客预扣款=0 盟主预扣款=1 合伙人预扣款=2"); entity.Property(e => e.Remark) .HasColumnName("remark") .HasColumnType("varchar(255)") .HasComment("备注信息") .HasCharSet("utf8mb3") .HasCollation("utf8mb3_general_ci"); entity.Property(e => e.Status) .HasColumnName("status") .HasComment("扣款标识 0未扣 1已扣 2撤销|已返还 3暂停扣款"); 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(entity => { entity.ToTable("kxs_user_amount"); entity.HasComment("用户账户表"); entity.HasIndex(e => e.UserId) .HasName("user_id"); entity.Property(e => e.Id) .HasColumnName("id") .HasComment("主键ID"); entity.Property(e => e.AdvanceAmount) .HasColumnName("advance_amount") .HasColumnType("decimal(18,2)") .HasComment("预扣款"); entity.Property(e => e.Amount) .HasColumnName("amount") .HasColumnType("decimal(18,2)") .HasComment("余额"); entity.Property(e => e.CashWithdrawalAmount) .HasColumnName("cash_withdrawal_amount") .HasColumnType("decimal(18,2)") .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.FrozenAmount) .HasColumnName("frozen_amount") .HasColumnType("decimal(18,2)") .HasComment("冻结金额"); entity.Property(e => e.LeaderAdvanceAmount) .HasColumnName("leader_advance_amount") .HasColumnType("decimal(18,2)") .HasComment("盟主预扣款"); entity.Property(e => e.LeaderBalanceAmount) .HasColumnName("leader_balance_amount") .HasColumnType("decimal(18,2)") .HasComment("盟主余额"); entity.Property(e => e.LeaderReserve) .HasColumnName("leader_reserve") .HasColumnType("decimal(18,2)") .HasComment("盟主储备金"); entity.Property(e => e.PartnerAdvanceAmount) .HasColumnName("partner_advance_amount") .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.Status) .HasColumnName("status") .HasDefaultValueSql("'1'") .HasComment("账户状态 1正常 0锁定 "); entity.Property(e => e.TotalAmount) .HasColumnName("total_amount") .HasColumnType("decimal(18,2)") .HasComment("累计总收益"); entity.Property(e => e.UpdateTime) .HasColumnName("update_time") .HasColumnType("datetime") .HasComment("更新时间"); entity.Property(e => e.UseAmount) .HasColumnName("use_amount") .HasColumnType("decimal(18,2)") .HasComment("可使用余额"); entity.Property(e => e.UserId) .HasColumnName("user_id") .HasComment("用户ID"); entity.Property(e => e.Version) .HasColumnName("version") .HasComment("版本"); }); modelBuilder.Entity(entity => { entity.ToTable("kxs_user_amount_log"); entity.HasComment("用户余额记录日志表"); entity.Property(e => e.Id) .HasColumnName("id") .HasComment("主键ID"); entity.Property(e => e.AfterAmount) .HasColumnName("after_amount") .HasColumnType("decimal(18,2)") .HasComment("变动后金额"); entity.Property(e => e.AfterTotalAmount) .HasColumnName("after_total_amount") .HasColumnType("decimal(18,2)") .HasComment("变动后总收益"); entity.Property(e => e.Amount) .HasColumnName("amount") .HasColumnType("decimal(18,2)") .HasComment("操作金额"); entity.Property(e => e.BeforeAmount) .HasColumnName("before_amount") .HasColumnType("decimal(18,2)") .HasComment("变动前金额"); entity.Property(e => e.BeforeTotalAmount) .HasColumnName("before_total_amount") .HasColumnType("decimal(18,2)") .HasComment("变动前总收益"); 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.Kind) .HasColumnName("kind") .HasColumnType("varchar(6)") .HasComment("日志类型 add新增 sub减少") .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.UpdateTime) .HasColumnName("update_time") .HasColumnType("datetime") .HasComment("更新时间"); entity.Property(e => e.UserId) .HasColumnName("user_id") .HasComment("用户ID"); entity.Property(e => e.VariationCause) .HasColumnName("variation_cause") .HasColumnType("varchar(255)") .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(entity => { entity.ToTable("kxs_user_amount_log_202203"); entity.HasComment("用户余额记录日志表"); entity.Property(e => e.Id) .HasColumnName("id") .HasComment("主键ID"); entity.Property(e => e.AfterAmount) .HasColumnName("after_amount") .HasColumnType("decimal(18,2)") .HasComment("变动后金额"); entity.Property(e => e.AfterTotalAmount) .HasColumnName("after_total_amount") .HasColumnType("decimal(18,2)") .HasComment("变动后总收益"); entity.Property(e => e.Amount) .HasColumnName("amount") .HasColumnType("decimal(18,2)") .HasComment("操作金额"); entity.Property(e => e.BeforeAmount) .HasColumnName("before_amount") .HasColumnType("decimal(18,2)") .HasComment("变动前金额"); entity.Property(e => e.BeforeTotalAmount) .HasColumnName("before_total_amount") .HasColumnType("decimal(18,2)") .HasComment("变动前总收益"); 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.Kind) .HasColumnName("kind") .HasColumnType("varchar(6)") .HasComment("日志类型 add新增 sub减少") .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.UpdateTime) .HasColumnName("update_time") .HasColumnType("datetime") .HasComment("更新时间"); entity.Property(e => e.UserId) .HasColumnName("user_id") .HasComment("用户ID"); entity.Property(e => e.VariationCause) .HasColumnName("variation_cause") .HasColumnType("varchar(255)") .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(entity => { entity.ToTable("kxs_user_amount_log_202204"); entity.HasComment("用户余额记录日志表"); entity.Property(e => e.Id) .HasColumnName("id") .HasComment("主键ID"); entity.Property(e => e.AfterAmount) .HasColumnName("after_amount") .HasColumnType("decimal(18,2)") .HasComment("变动后金额"); entity.Property(e => e.AfterTotalAmount) .HasColumnName("after_total_amount") .HasColumnType("decimal(18,2)") .HasComment("变动后总收益"); entity.Property(e => e.Amount) .HasColumnName("amount") .HasColumnType("decimal(18,2)") .HasComment("操作金额"); entity.Property(e => e.BeforeAmount) .HasColumnName("before_amount") .HasColumnType("decimal(18,2)") .HasComment("变动前金额"); entity.Property(e => e.BeforeTotalAmount) .HasColumnName("before_total_amount") .HasColumnType("decimal(18,2)") .HasComment("变动前总收益"); 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.Kind) .HasColumnName("kind") .HasColumnType("varchar(6)") .HasComment("日志类型 add新增 sub减少") .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.UpdateTime) .HasColumnName("update_time") .HasColumnType("datetime") .HasComment("更新时间"); entity.Property(e => e.UserId) .HasColumnName("user_id") .HasComment("用户ID"); entity.Property(e => e.VariationCause) .HasColumnName("variation_cause") .HasColumnType("varchar(255)") .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(entity => { entity.ToTable("kxs_user_amount_log_202205"); entity.HasComment("用户余额记录日志表"); entity.Property(e => e.Id) .HasColumnName("id") .HasComment("主键ID"); entity.Property(e => e.AfterAmount) .HasColumnName("after_amount") .HasColumnType("decimal(18,2)") .HasComment("变动后金额"); entity.Property(e => e.AfterTotalAmount) .HasColumnName("after_total_amount") .HasColumnType("decimal(18,2)") .HasComment("变动后总收益"); entity.Property(e => e.Amount) .HasColumnName("amount") .HasColumnType("decimal(18,2)") .HasComment("操作金额"); entity.Property(e => e.BeforeAmount) .HasColumnName("before_amount") .HasColumnType("decimal(18,2)") .HasComment("变动前金额"); entity.Property(e => e.BeforeTotalAmount) .HasColumnName("before_total_amount") .HasColumnType("decimal(18,2)") .HasComment("变动前总收益"); 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.Kind) .HasColumnName("kind") .HasColumnType("varchar(6)") .HasComment("日志类型 add新增 sub减少") .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.UpdateTime) .HasColumnName("update_time") .HasColumnType("datetime") .HasComment("更新时间"); entity.Property(e => e.UserId) .HasColumnName("user_id") .HasComment("用户ID"); entity.Property(e => e.VariationCause) .HasColumnName("variation_cause") .HasColumnType("varchar(255)") .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(entity => { entity.ToTable("kxs_user_amount_log_202206"); entity.HasComment("用户余额记录日志表"); entity.Property(e => e.Id) .HasColumnName("id") .HasComment("主键ID"); entity.Property(e => e.AfterAmount) .HasColumnName("after_amount") .HasColumnType("decimal(18,2)") .HasComment("变动后金额"); entity.Property(e => e.AfterTotalAmount) .HasColumnName("after_total_amount") .HasColumnType("decimal(18,2)") .HasComment("变动后总收益"); entity.Property(e => e.Amount) .HasColumnName("amount") .HasColumnType("decimal(18,2)") .HasComment("操作金额"); entity.Property(e => e.BeforeAmount) .HasColumnName("before_amount") .HasColumnType("decimal(18,2)") .HasComment("变动前金额"); entity.Property(e => e.BeforeTotalAmount) .HasColumnName("before_total_amount") .HasColumnType("decimal(18,2)") .HasComment("变动前总收益"); 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.Kind) .HasColumnName("kind") .HasColumnType("varchar(6)") .HasComment("日志类型 add新增 sub减少") .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.UpdateTime) .HasColumnName("update_time") .HasColumnType("datetime") .HasComment("更新时间"); entity.Property(e => e.UserId) .HasColumnName("user_id") .HasComment("用户ID"); entity.Property(e => e.VariationCause) .HasColumnName("variation_cause") .HasColumnType("varchar(255)") .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(entity => { entity.ToTable("kxs_user_amount_log_202207"); entity.HasComment("用户余额记录日志表"); entity.Property(e => e.Id) .HasColumnName("id") .HasComment("主键ID"); entity.Property(e => e.AfterAmount) .HasColumnName("after_amount") .HasColumnType("decimal(18,2)") .HasComment("变动后金额"); entity.Property(e => e.AfterTotalAmount) .HasColumnName("after_total_amount") .HasColumnType("decimal(18,2)") .HasComment("变动后总收益"); entity.Property(e => e.Amount) .HasColumnName("amount") .HasColumnType("decimal(18,2)") .HasComment("操作金额"); entity.Property(e => e.BeforeAmount) .HasColumnName("before_amount") .HasColumnType("decimal(18,2)") .HasComment("变动前金额"); entity.Property(e => e.BeforeTotalAmount) .HasColumnName("before_total_amount") .HasColumnType("decimal(18,2)") .HasComment("变动前总收益"); 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.Kind) .HasColumnName("kind") .HasColumnType("varchar(6)") .HasComment("日志类型 add新增 sub减少") .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.UpdateTime) .HasColumnName("update_time") .HasColumnType("datetime") .HasComment("更新时间"); entity.Property(e => e.UserId) .HasColumnName("user_id") .HasComment("用户ID"); entity.Property(e => e.VariationCause) .HasColumnName("variation_cause") .HasColumnType("varchar(255)") .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(entity => { entity.ToTable("kxs_user_amount_log_202208"); entity.HasComment("用户余额记录日志表"); entity.Property(e => e.Id) .HasColumnName("id") .HasComment("主键ID"); entity.Property(e => e.AfterAmount) .HasColumnName("after_amount") .HasColumnType("decimal(18,2)") .HasComment("变动后金额"); entity.Property(e => e.AfterTotalAmount) .HasColumnName("after_total_amount") .HasColumnType("decimal(18,2)") .HasComment("变动后总收益"); entity.Property(e => e.Amount) .HasColumnName("amount") .HasColumnType("decimal(18,2)") .HasComment("操作金额"); entity.Property(e => e.BeforeAmount) .HasColumnName("before_amount") .HasColumnType("decimal(18,2)") .HasComment("变动前金额"); entity.Property(e => e.BeforeTotalAmount) .HasColumnName("before_total_amount") .HasColumnType("decimal(18,2)") .HasComment("变动前总收益"); 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.Kind) .HasColumnName("kind") .HasColumnType("varchar(6)") .HasComment("日志类型 add新增 sub减少") .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.UpdateTime) .HasColumnName("update_time") .HasColumnType("datetime") .HasComment("更新时间"); entity.Property(e => e.UserId) .HasColumnName("user_id") .HasComment("用户ID"); entity.Property(e => e.VariationCause) .HasColumnName("variation_cause") .HasColumnType("varchar(255)") .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(entity => { entity.ToTable("kxs_user_amount_log_202209"); entity.HasComment("用户余额记录日志表"); entity.Property(e => e.Id) .HasColumnName("id") .HasComment("主键ID"); entity.Property(e => e.AfterAmount) .HasColumnName("after_amount") .HasColumnType("decimal(18,2)") .HasComment("变动后金额"); entity.Property(e => e.AfterTotalAmount) .HasColumnName("after_total_amount") .HasColumnType("decimal(18,2)") .HasComment("变动后总收益"); entity.Property(e => e.Amount) .HasColumnName("amount") .HasColumnType("decimal(18,2)") .HasComment("操作金额"); entity.Property(e => e.BeforeAmount) .HasColumnName("before_amount") .HasColumnType("decimal(18,2)") .HasComment("变动前金额"); entity.Property(e => e.BeforeTotalAmount) .HasColumnName("before_total_amount") .HasColumnType("decimal(18,2)") .HasComment("变动前总收益"); 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.Kind) .HasColumnName("kind") .HasColumnType("varchar(6)") .HasComment("日志类型 add新增 sub减少") .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.UpdateTime) .HasColumnName("update_time") .HasColumnType("datetime") .HasComment("更新时间"); entity.Property(e => e.UserId) .HasColumnName("user_id") .HasComment("用户ID"); entity.Property(e => e.VariationCause) .HasColumnName("variation_cause") .HasColumnType("varchar(255)") .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(entity => { entity.ToTable("kxs_user_amount_log_202210"); entity.HasComment("用户余额记录日志表"); entity.Property(e => e.Id) .HasColumnName("id") .HasComment("主键ID"); entity.Property(e => e.AfterAmount) .HasColumnName("after_amount") .HasColumnType("decimal(18,2)") .HasComment("变动后金额"); entity.Property(e => e.AfterTotalAmount) .HasColumnName("after_total_amount") .HasColumnType("decimal(18,2)") .HasComment("变动后总收益"); entity.Property(e => e.Amount) .HasColumnName("amount") .HasColumnType("decimal(18,2)") .HasComment("操作金额"); entity.Property(e => e.BeforeAmount) .HasColumnName("before_amount") .HasColumnType("decimal(18,2)") .HasComment("变动前金额"); entity.Property(e => e.BeforeTotalAmount) .HasColumnName("before_total_amount") .HasColumnType("decimal(18,2)") .HasComment("变动前总收益"); 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.Kind) .HasColumnName("kind") .HasColumnType("varchar(6)") .HasComment("日志类型 add新增 sub减少") .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.UpdateTime) .HasColumnName("update_time") .HasColumnType("datetime") .HasComment("更新时间"); entity.Property(e => e.UserId) .HasColumnName("user_id") .HasComment("用户ID"); entity.Property(e => e.VariationCause) .HasColumnName("variation_cause") .HasColumnType("varchar(255)") .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(entity => { entity.ToTable("kxs_user_amount_log_202211"); entity.HasComment("用户余额记录日志表"); entity.Property(e => e.Id) .HasColumnName("id") .HasComment("主键ID"); entity.Property(e => e.AfterAmount) .HasColumnName("after_amount") .HasColumnType("decimal(18,2)") .HasComment("变动后金额"); entity.Property(e => e.AfterTotalAmount) .HasColumnName("after_total_amount") .HasColumnType("decimal(18,2)") .HasComment("变动后总收益"); entity.Property(e => e.Amount) .HasColumnName("amount") .HasColumnType("decimal(18,2)") .HasComment("操作金额"); entity.Property(e => e.BeforeAmount) .HasColumnName("before_amount") .HasColumnType("decimal(18,2)") .HasComment("变动前金额"); entity.Property(e => e.BeforeTotalAmount) .HasColumnName("before_total_amount") .HasColumnType("decimal(18,2)") .HasComment("变动前总收益"); 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.Kind) .HasColumnName("kind") .HasColumnType("varchar(6)") .HasComment("日志类型 add新增 sub减少") .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.UpdateTime) .HasColumnName("update_time") .HasColumnType("datetime") .HasComment("更新时间"); entity.Property(e => e.UserId) .HasColumnName("user_id") .HasComment("用户ID"); entity.Property(e => e.VariationCause) .HasColumnName("variation_cause") .HasColumnType("varchar(255)") .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(entity => { entity.ToTable("kxs_user_amount_log_202212"); entity.HasComment("用户余额记录日志表"); entity.Property(e => e.Id) .HasColumnName("id") .HasComment("主键ID"); entity.Property(e => e.AfterAmount) .HasColumnName("after_amount") .HasColumnType("decimal(18,2)") .HasComment("变动后金额"); entity.Property(e => e.AfterTotalAmount) .HasColumnName("after_total_amount") .HasColumnType("decimal(18,2)") .HasComment("变动后总收益"); entity.Property(e => e.Amount) .HasColumnName("amount") .HasColumnType("decimal(18,2)") .HasComment("操作金额"); entity.Property(e => e.BeforeAmount) .HasColumnName("before_amount") .HasColumnType("decimal(18,2)") .HasComment("变动前金额"); entity.Property(e => e.BeforeTotalAmount) .HasColumnName("before_total_amount") .HasColumnType("decimal(18,2)") .HasComment("变动前总收益"); 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.Kind) .HasColumnName("kind") .HasColumnType("varchar(6)") .HasComment("日志类型 add新增 sub减少") .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.UpdateTime) .HasColumnName("update_time") .HasColumnType("datetime") .HasComment("更新时间"); entity.Property(e => e.UserId) .HasColumnName("user_id") .HasComment("用户ID"); entity.Property(e => e.VariationCause) .HasColumnName("variation_cause") .HasColumnType("varchar(255)") .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(entity => { entity.ToTable("kxs_user_amount_log_202301"); entity.HasComment("用户余额记录日志表"); entity.Property(e => e.Id) .HasColumnName("id") .HasComment("主键ID"); entity.Property(e => e.AfterAmount) .HasColumnName("after_amount") .HasColumnType("decimal(18,2)") .HasComment("变动后金额"); entity.Property(e => e.AfterTotalAmount) .HasColumnName("after_total_amount") .HasColumnType("decimal(18,2)") .HasComment("变动后总收益"); entity.Property(e => e.Amount) .HasColumnName("amount") .HasColumnType("decimal(18,2)") .HasComment("操作金额"); entity.Property(e => e.BeforeAmount) .HasColumnName("before_amount") .HasColumnType("decimal(18,2)") .HasComment("变动前金额"); entity.Property(e => e.BeforeTotalAmount) .HasColumnName("before_total_amount") .HasColumnType("decimal(18,2)") .HasComment("变动前总收益"); 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.Kind) .HasColumnName("kind") .HasColumnType("varchar(6)") .HasComment("日志类型 add新增 sub减少") .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.UpdateTime) .HasColumnName("update_time") .HasColumnType("datetime") .HasComment("更新时间"); entity.Property(e => e.UserId) .HasColumnName("user_id") .HasComment("用户ID"); entity.Property(e => e.VariationCause) .HasColumnName("variation_cause") .HasColumnType("varchar(255)") .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(entity => { entity.ToTable("kxs_user_amount_log_202302"); entity.HasComment("用户余额记录日志表"); entity.Property(e => e.Id) .HasColumnName("id") .HasComment("主键ID"); entity.Property(e => e.AfterAmount) .HasColumnName("after_amount") .HasColumnType("decimal(18,2)") .HasComment("变动后金额"); entity.Property(e => e.AfterTotalAmount) .HasColumnName("after_total_amount") .HasColumnType("decimal(18,2)") .HasComment("变动后总收益"); entity.Property(e => e.Amount) .HasColumnName("amount") .HasColumnType("decimal(18,2)") .HasComment("操作金额"); entity.Property(e => e.BeforeAmount) .HasColumnName("before_amount") .HasColumnType("decimal(18,2)") .HasComment("变动前金额"); entity.Property(e => e.BeforeTotalAmount) .HasColumnName("before_total_amount") .HasColumnType("decimal(18,2)") .HasComment("变动前总收益"); 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.Kind) .HasColumnName("kind") .HasColumnType("varchar(6)") .HasComment("日志类型 add新增 sub减少") .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.UpdateTime) .HasColumnName("update_time") .HasColumnType("datetime") .HasComment("更新时间"); entity.Property(e => e.UserId) .HasColumnName("user_id") .HasComment("用户ID"); entity.Property(e => e.VariationCause) .HasColumnName("variation_cause") .HasColumnType("varchar(255)") .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(entity => { entity.ToTable("kxs_user_amount_log_202303"); entity.HasComment("用户余额记录日志表"); entity.Property(e => e.Id) .HasColumnName("id") .HasComment("主键ID"); entity.Property(e => e.AfterAmount) .HasColumnName("after_amount") .HasColumnType("decimal(18,2)") .HasComment("变动后金额"); entity.Property(e => e.AfterTotalAmount) .HasColumnName("after_total_amount") .HasColumnType("decimal(18,2)") .HasComment("变动后总收益"); entity.Property(e => e.Amount) .HasColumnName("amount") .HasColumnType("decimal(18,2)") .HasComment("操作金额"); entity.Property(e => e.BeforeAmount) .HasColumnName("before_amount") .HasColumnType("decimal(18,2)") .HasComment("变动前金额"); entity.Property(e => e.BeforeTotalAmount) .HasColumnName("before_total_amount") .HasColumnType("decimal(18,2)") .HasComment("变动前总收益"); 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.Kind) .HasColumnName("kind") .HasColumnType("varchar(6)") .HasComment("日志类型 add新增 sub减少") .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.UpdateTime) .HasColumnName("update_time") .HasColumnType("datetime") .HasComment("更新时间"); entity.Property(e => e.UserId) .HasColumnName("user_id") .HasComment("用户ID"); entity.Property(e => e.VariationCause) .HasColumnName("variation_cause") .HasColumnType("varchar(255)") .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(entity => { entity.ToTable("kxs_user_amount_log_202304"); entity.HasComment("用户余额记录日志表"); entity.Property(e => e.Id) .HasColumnName("id") .HasComment("主键ID"); entity.Property(e => e.AfterAmount) .HasColumnName("after_amount") .HasColumnType("decimal(18,2)") .HasComment("变动后金额"); entity.Property(e => e.AfterTotalAmount) .HasColumnName("after_total_amount") .HasColumnType("decimal(18,2)") .HasComment("变动后总收益"); entity.Property(e => e.Amount) .HasColumnName("amount") .HasColumnType("decimal(18,2)") .HasComment("操作金额"); entity.Property(e => e.BeforeAmount) .HasColumnName("before_amount") .HasColumnType("decimal(18,2)") .HasComment("变动前金额"); entity.Property(e => e.BeforeTotalAmount) .HasColumnName("before_total_amount") .HasColumnType("decimal(18,2)") .HasComment("变动前总收益"); 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.Kind) .HasColumnName("kind") .HasColumnType("varchar(6)") .HasComment("日志类型 add新增 sub减少") .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.UpdateTime) .HasColumnName("update_time") .HasColumnType("datetime") .HasComment("更新时间"); entity.Property(e => e.UserId) .HasColumnName("user_id") .HasComment("用户ID"); entity.Property(e => e.VariationCause) .HasColumnName("variation_cause") .HasColumnType("varchar(255)") .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(entity => { entity.ToTable("kxs_user_amount_log_202305"); entity.HasComment("用户余额记录日志表"); entity.Property(e => e.Id) .HasColumnName("id") .HasComment("主键ID"); entity.Property(e => e.AfterAmount) .HasColumnName("after_amount") .HasColumnType("decimal(18,2)") .HasComment("变动后金额"); entity.Property(e => e.AfterTotalAmount) .HasColumnName("after_total_amount") .HasColumnType("decimal(18,2)") .HasComment("变动后总收益"); entity.Property(e => e.Amount) .HasColumnName("amount") .HasColumnType("decimal(18,2)") .HasComment("操作金额"); entity.Property(e => e.BeforeAmount) .HasColumnName("before_amount") .HasColumnType("decimal(18,2)") .HasComment("变动前金额"); entity.Property(e => e.BeforeTotalAmount) .HasColumnName("before_total_amount") .HasColumnType("decimal(18,2)") .HasComment("变动前总收益"); 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.Kind) .HasColumnName("kind") .HasColumnType("varchar(6)") .HasComment("日志类型 add新增 sub减少") .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.UpdateTime) .HasColumnName("update_time") .HasColumnType("datetime") .HasComment("更新时间"); entity.Property(e => e.UserId) .HasColumnName("user_id") .HasComment("用户ID"); entity.Property(e => e.VariationCause) .HasColumnName("variation_cause") .HasColumnType("varchar(255)") .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(entity => { entity.ToTable("kxs_user_amount_log_202306"); entity.HasComment("用户余额记录日志表"); entity.Property(e => e.Id) .HasColumnName("id") .HasComment("主键ID"); entity.Property(e => e.AfterAmount) .HasColumnName("after_amount") .HasColumnType("decimal(18,2)") .HasComment("变动后金额"); entity.Property(e => e.AfterTotalAmount) .HasColumnName("after_total_amount") .HasColumnType("decimal(18,2)") .HasComment("变动后总收益"); entity.Property(e => e.Amount) .HasColumnName("amount") .HasColumnType("decimal(18,2)") .HasComment("操作金额"); entity.Property(e => e.BeforeAmount) .HasColumnName("before_amount") .HasColumnType("decimal(18,2)") .HasComment("变动前金额"); entity.Property(e => e.BeforeTotalAmount) .HasColumnName("before_total_amount") .HasColumnType("decimal(18,2)") .HasComment("变动前总收益"); 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.Kind) .HasColumnName("kind") .HasColumnType("varchar(6)") .HasComment("日志类型 add新增 sub减少") .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.UpdateTime) .HasColumnName("update_time") .HasColumnType("datetime") .HasComment("更新时间"); entity.Property(e => e.UserId) .HasColumnName("user_id") .HasComment("用户ID"); entity.Property(e => e.VariationCause) .HasColumnName("variation_cause") .HasColumnType("varchar(255)") .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(entity => { entity.ToTable("kxs_user_amount_log_202307"); entity.HasComment("用户余额记录日志表"); entity.Property(e => e.Id) .HasColumnName("id") .HasComment("主键ID"); entity.Property(e => e.AfterAmount) .HasColumnName("after_amount") .HasColumnType("decimal(18,2)") .HasComment("变动后金额"); entity.Property(e => e.AfterTotalAmount) .HasColumnName("after_total_amount") .HasColumnType("decimal(18,2)") .HasComment("变动后总收益"); entity.Property(e => e.Amount) .HasColumnName("amount") .HasColumnType("decimal(18,2)") .HasComment("操作金额"); entity.Property(e => e.BeforeAmount) .HasColumnName("before_amount") .HasColumnType("decimal(18,2)") .HasComment("变动前金额"); entity.Property(e => e.BeforeTotalAmount) .HasColumnName("before_total_amount") .HasColumnType("decimal(18,2)") .HasComment("变动前总收益"); 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.Kind) .HasColumnName("kind") .HasColumnType("varchar(6)") .HasComment("日志类型 add新增 sub减少") .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.UpdateTime) .HasColumnName("update_time") .HasColumnType("datetime") .HasComment("更新时间"); entity.Property(e => e.UserId) .HasColumnName("user_id") .HasComment("用户ID"); entity.Property(e => e.VariationCause) .HasColumnName("variation_cause") .HasColumnType("varchar(255)") .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(entity => { entity.ToTable("kxs_user_amount_log_202308"); entity.HasComment("用户余额记录日志表"); entity.Property(e => e.Id) .HasColumnName("id") .HasComment("主键ID"); entity.Property(e => e.AfterAmount) .HasColumnName("after_amount") .HasColumnType("decimal(18,2)") .HasComment("变动后金额"); entity.Property(e => e.AfterTotalAmount) .HasColumnName("after_total_amount") .HasColumnType("decimal(18,2)") .HasComment("变动后总收益"); entity.Property(e => e.Amount) .HasColumnName("amount") .HasColumnType("decimal(18,2)") .HasComment("操作金额"); entity.Property(e => e.BeforeAmount) .HasColumnName("before_amount") .HasColumnType("decimal(18,2)") .HasComment("变动前金额"); entity.Property(e => e.BeforeTotalAmount) .HasColumnName("before_total_amount") .HasColumnType("decimal(18,2)") .HasComment("变动前总收益"); 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.Kind) .HasColumnName("kind") .HasColumnType("varchar(6)") .HasComment("日志类型 add新增 sub减少") .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.UpdateTime) .HasColumnName("update_time") .HasColumnType("datetime") .HasComment("更新时间"); entity.Property(e => e.UserId) .HasColumnName("user_id") .HasComment("用户ID"); entity.Property(e => e.VariationCause) .HasColumnName("variation_cause") .HasColumnType("varchar(255)") .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(entity => { entity.ToTable("kxs_user_amount_log_202309"); entity.HasComment("用户余额记录日志表"); entity.Property(e => e.Id) .HasColumnName("id") .HasComment("主键ID"); entity.Property(e => e.AfterAmount) .HasColumnName("after_amount") .HasColumnType("decimal(18,2)") .HasComment("变动后金额"); entity.Property(e => e.AfterTotalAmount) .HasColumnName("after_total_amount") .HasColumnType("decimal(18,2)") .HasComment("变动后总收益"); entity.Property(e => e.Amount) .HasColumnName("amount") .HasColumnType("decimal(18,2)") .HasComment("操作金额"); entity.Property(e => e.BeforeAmount) .HasColumnName("before_amount") .HasColumnType("decimal(18,2)") .HasComment("变动前金额"); entity.Property(e => e.BeforeTotalAmount) .HasColumnName("before_total_amount") .HasColumnType("decimal(18,2)") .HasComment("变动前总收益"); 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.Kind) .HasColumnName("kind") .HasColumnType("varchar(6)") .HasComment("日志类型 add新增 sub减少") .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.UpdateTime) .HasColumnName("update_time") .HasColumnType("datetime") .HasComment("更新时间"); entity.Property(e => e.UserId) .HasColumnName("user_id") .HasComment("用户ID"); entity.Property(e => e.VariationCause) .HasColumnName("variation_cause") .HasColumnType("varchar(255)") .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(entity => { entity.ToTable("kxs_user_amount_log_202310"); entity.HasComment("用户余额记录日志表"); entity.Property(e => e.Id) .HasColumnName("id") .HasComment("主键ID"); entity.Property(e => e.AfterAmount) .HasColumnName("after_amount") .HasColumnType("decimal(18,2)") .HasComment("变动后金额"); entity.Property(e => e.AfterTotalAmount) .HasColumnName("after_total_amount") .HasColumnType("decimal(18,2)") .HasComment("变动后总收益"); entity.Property(e => e.Amount) .HasColumnName("amount") .HasColumnType("decimal(18,2)") .HasComment("操作金额"); entity.Property(e => e.BeforeAmount) .HasColumnName("before_amount") .HasColumnType("decimal(18,2)") .HasComment("变动前金额"); entity.Property(e => e.BeforeTotalAmount) .HasColumnName("before_total_amount") .HasColumnType("decimal(18,2)") .HasComment("变动前总收益"); 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.Kind) .HasColumnName("kind") .HasColumnType("varchar(6)") .HasComment("日志类型 add新增 sub减少") .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.UpdateTime) .HasColumnName("update_time") .HasColumnType("datetime") .HasComment("更新时间"); entity.Property(e => e.UserId) .HasColumnName("user_id") .HasComment("用户ID"); entity.Property(e => e.VariationCause) .HasColumnName("variation_cause") .HasColumnType("varchar(255)") .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(entity => { entity.ToTable("kxs_user_amount_log_202311"); entity.HasComment("用户余额记录日志表"); entity.Property(e => e.Id) .HasColumnName("id") .HasComment("主键ID"); entity.Property(e => e.AfterAmount) .HasColumnName("after_amount") .HasColumnType("decimal(18,2)") .HasComment("变动后金额"); entity.Property(e => e.AfterTotalAmount) .HasColumnName("after_total_amount") .HasColumnType("decimal(18,2)") .HasComment("变动后总收益"); entity.Property(e => e.Amount) .HasColumnName("amount") .HasColumnType("decimal(18,2)") .HasComment("操作金额"); entity.Property(e => e.BeforeAmount) .HasColumnName("before_amount") .HasColumnType("decimal(18,2)") .HasComment("变动前金额"); entity.Property(e => e.BeforeTotalAmount) .HasColumnName("before_total_amount") .HasColumnType("decimal(18,2)") .HasComment("变动前总收益"); 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.Kind) .HasColumnName("kind") .HasColumnType("varchar(6)") .HasComment("日志类型 add新增 sub减少") .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.UpdateTime) .HasColumnName("update_time") .HasColumnType("datetime") .HasComment("更新时间"); entity.Property(e => e.UserId) .HasColumnName("user_id") .HasComment("用户ID"); entity.Property(e => e.VariationCause) .HasColumnName("variation_cause") .HasColumnType("varchar(255)") .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(entity => { entity.ToTable("kxs_user_amount_log_202312"); entity.HasComment("用户余额记录日志表"); entity.Property(e => e.Id) .HasColumnName("id") .HasComment("主键ID"); entity.Property(e => e.AfterAmount) .HasColumnName("after_amount") .HasColumnType("decimal(18,2)") .HasComment("变动后金额"); entity.Property(e => e.AfterTotalAmount) .HasColumnName("after_total_amount") .HasColumnType("decimal(18,2)") .HasComment("变动后总收益"); entity.Property(e => e.Amount) .HasColumnName("amount") .HasColumnType("decimal(18,2)") .HasComment("操作金额"); entity.Property(e => e.BeforeAmount) .HasColumnName("before_amount") .HasColumnType("decimal(18,2)") .HasComment("变动前金额"); entity.Property(e => e.BeforeTotalAmount) .HasColumnName("before_total_amount") .HasColumnType("decimal(18,2)") .HasComment("变动前总收益"); 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.Kind) .HasColumnName("kind") .HasColumnType("varchar(6)") .HasComment("日志类型 add新增 sub减少") .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.UpdateTime) .HasColumnName("update_time") .HasColumnType("datetime") .HasComment("更新时间"); entity.Property(e => e.UserId) .HasColumnName("user_id") .HasComment("用户ID"); entity.Property(e => e.VariationCause) .HasColumnName("variation_cause") .HasColumnType("varchar(255)") .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(entity => { entity.ToTable("kxs_user_amount_log_202401"); entity.HasComment("用户余额记录日志表"); entity.Property(e => e.Id) .HasColumnName("id") .HasComment("主键ID"); entity.Property(e => e.AfterAmount) .HasColumnName("after_amount") .HasColumnType("decimal(18,2)") .HasComment("变动后金额"); entity.Property(e => e.AfterTotalAmount) .HasColumnName("after_total_amount") .HasColumnType("decimal(18,2)") .HasComment("变动后总收益"); entity.Property(e => e.Amount) .HasColumnName("amount") .HasColumnType("decimal(18,2)") .HasComment("操作金额"); entity.Property(e => e.BeforeAmount) .HasColumnName("before_amount") .HasColumnType("decimal(18,2)") .HasComment("变动前金额"); entity.Property(e => e.BeforeTotalAmount) .HasColumnName("before_total_amount") .HasColumnType("decimal(18,2)") .HasComment("变动前总收益"); 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.Kind) .HasColumnName("kind") .HasColumnType("varchar(6)") .HasComment("日志类型 add新增 sub减少") .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.UpdateTime) .HasColumnName("update_time") .HasColumnType("datetime") .HasComment("更新时间"); entity.Property(e => e.UserId) .HasColumnName("user_id") .HasComment("用户ID"); entity.Property(e => e.VariationCause) .HasColumnName("variation_cause") .HasColumnType("varchar(255)") .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(entity => { entity.ToTable("kxs_user_amount_log_202402"); entity.HasComment("用户余额记录日志表"); entity.Property(e => e.Id) .HasColumnName("id") .HasComment("主键ID"); entity.Property(e => e.AfterAmount) .HasColumnName("after_amount") .HasColumnType("decimal(18,2)") .HasComment("变动后金额"); entity.Property(e => e.AfterTotalAmount) .HasColumnName("after_total_amount") .HasColumnType("decimal(18,2)") .HasComment("变动后总收益"); entity.Property(e => e.Amount) .HasColumnName("amount") .HasColumnType("decimal(18,2)") .HasComment("操作金额"); entity.Property(e => e.BeforeAmount) .HasColumnName("before_amount") .HasColumnType("decimal(18,2)") .HasComment("变动前金额"); entity.Property(e => e.BeforeTotalAmount) .HasColumnName("before_total_amount") .HasColumnType("decimal(18,2)") .HasComment("变动前总收益"); 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.Kind) .HasColumnName("kind") .HasColumnType("varchar(6)") .HasComment("日志类型 add新增 sub减少") .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.UpdateTime) .HasColumnName("update_time") .HasColumnType("datetime") .HasComment("更新时间"); entity.Property(e => e.UserId) .HasColumnName("user_id") .HasComment("用户ID"); entity.Property(e => e.VariationCause) .HasColumnName("variation_cause") .HasColumnType("varchar(255)") .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(entity => { entity.ToTable("kxs_user_amount_log_202403"); entity.HasComment("用户余额记录日志表"); entity.Property(e => e.Id) .HasColumnName("id") .HasComment("主键ID"); entity.Property(e => e.AfterAmount) .HasColumnName("after_amount") .HasColumnType("decimal(18,2)") .HasComment("变动后金额"); entity.Property(e => e.AfterTotalAmount) .HasColumnName("after_total_amount") .HasColumnType("decimal(18,2)") .HasComment("变动后总收益"); entity.Property(e => e.Amount) .HasColumnName("amount") .HasColumnType("decimal(18,2)") .HasComment("操作金额"); entity.Property(e => e.BeforeAmount) .HasColumnName("before_amount") .HasColumnType("decimal(18,2)") .HasComment("变动前金额"); entity.Property(e => e.BeforeTotalAmount) .HasColumnName("before_total_amount") .HasColumnType("decimal(18,2)") .HasComment("变动前总收益"); 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.Kind) .HasColumnName("kind") .HasColumnType("varchar(6)") .HasComment("日志类型 add新增 sub减少") .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.UpdateTime) .HasColumnName("update_time") .HasColumnType("datetime") .HasComment("更新时间"); entity.Property(e => e.UserId) .HasColumnName("user_id") .HasComment("用户ID"); entity.Property(e => e.VariationCause) .HasColumnName("variation_cause") .HasColumnType("varchar(255)") .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(entity => { entity.ToTable("kxs_user_amount_log_202404"); entity.HasComment("用户余额记录日志表"); entity.Property(e => e.Id) .HasColumnName("id") .HasComment("主键ID"); entity.Property(e => e.AfterAmount) .HasColumnName("after_amount") .HasColumnType("decimal(18,2)") .HasComment("变动后金额"); entity.Property(e => e.AfterTotalAmount) .HasColumnName("after_total_amount") .HasColumnType("decimal(18,2)") .HasComment("变动后总收益"); entity.Property(e => e.Amount) .HasColumnName("amount") .HasColumnType("decimal(18,2)") .HasComment("操作金额"); entity.Property(e => e.BeforeAmount) .HasColumnName("before_amount") .HasColumnType("decimal(18,2)") .HasComment("变动前金额"); entity.Property(e => e.BeforeTotalAmount) .HasColumnName("before_total_amount") .HasColumnType("decimal(18,2)") .HasComment("变动前总收益"); 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.Kind) .HasColumnName("kind") .HasColumnType("varchar(6)") .HasComment("日志类型 add新增 sub减少") .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.UpdateTime) .HasColumnName("update_time") .HasColumnType("datetime") .HasComment("更新时间"); entity.Property(e => e.UserId) .HasColumnName("user_id") .HasComment("用户ID"); entity.Property(e => e.VariationCause) .HasColumnName("variation_cause") .HasColumnType("varchar(255)") .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(entity => { entity.ToTable("kxs_user_amount_log_202405"); entity.HasComment("用户余额记录日志表"); entity.Property(e => e.Id) .HasColumnName("id") .HasComment("主键ID"); entity.Property(e => e.AfterAmount) .HasColumnName("after_amount") .HasColumnType("decimal(18,2)") .HasComment("变动后金额"); entity.Property(e => e.AfterTotalAmount) .HasColumnName("after_total_amount") .HasColumnType("decimal(18,2)") .HasComment("变动后总收益"); entity.Property(e => e.Amount) .HasColumnName("amount") .HasColumnType("decimal(18,2)") .HasComment("操作金额"); entity.Property(e => e.BeforeAmount) .HasColumnName("before_amount") .HasColumnType("decimal(18,2)") .HasComment("变动前金额"); entity.Property(e => e.BeforeTotalAmount) .HasColumnName("before_total_amount") .HasColumnType("decimal(18,2)") .HasComment("变动前总收益"); 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.Kind) .HasColumnName("kind") .HasColumnType("varchar(6)") .HasComment("日志类型 add新增 sub减少") .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.UpdateTime) .HasColumnName("update_time") .HasColumnType("datetime") .HasComment("更新时间"); entity.Property(e => e.UserId) .HasColumnName("user_id") .HasComment("用户ID"); entity.Property(e => e.VariationCause) .HasColumnName("variation_cause") .HasColumnType("varchar(255)") .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(entity => { entity.ToTable("kxs_user_amount_log_202406"); entity.HasComment("用户余额记录日志表"); entity.Property(e => e.Id) .HasColumnName("id") .HasComment("主键ID"); entity.Property(e => e.AfterAmount) .HasColumnName("after_amount") .HasColumnType("decimal(18,2)") .HasComment("变动后金额"); entity.Property(e => e.AfterTotalAmount) .HasColumnName("after_total_amount") .HasColumnType("decimal(18,2)") .HasComment("变动后总收益"); entity.Property(e => e.Amount) .HasColumnName("amount") .HasColumnType("decimal(18,2)") .HasComment("操作金额"); entity.Property(e => e.BeforeAmount) .HasColumnName("before_amount") .HasColumnType("decimal(18,2)") .HasComment("变动前金额"); entity.Property(e => e.BeforeTotalAmount) .HasColumnName("before_total_amount") .HasColumnType("decimal(18,2)") .HasComment("变动前总收益"); 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.Kind) .HasColumnName("kind") .HasColumnType("varchar(6)") .HasComment("日志类型 add新增 sub减少") .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.UpdateTime) .HasColumnName("update_time") .HasColumnType("datetime") .HasComment("更新时间"); entity.Property(e => e.UserId) .HasColumnName("user_id") .HasComment("用户ID"); entity.Property(e => e.VariationCause) .HasColumnName("variation_cause") .HasColumnType("varchar(255)") .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(entity => { entity.ToTable("kxs_user_amount_log_202407"); entity.HasComment("用户余额记录日志表"); entity.Property(e => e.Id) .HasColumnName("id") .HasComment("主键ID"); entity.Property(e => e.AfterAmount) .HasColumnName("after_amount") .HasColumnType("decimal(18,2)") .HasComment("变动后金额"); entity.Property(e => e.AfterTotalAmount) .HasColumnName("after_total_amount") .HasColumnType("decimal(18,2)") .HasComment("变动后总收益"); entity.Property(e => e.Amount) .HasColumnName("amount") .HasColumnType("decimal(18,2)") .HasComment("操作金额"); entity.Property(e => e.BeforeAmount) .HasColumnName("before_amount") .HasColumnType("decimal(18,2)") .HasComment("变动前金额"); entity.Property(e => e.BeforeTotalAmount) .HasColumnName("before_total_amount") .HasColumnType("decimal(18,2)") .HasComment("变动前总收益"); 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.Kind) .HasColumnName("kind") .HasColumnType("varchar(6)") .HasComment("日志类型 add新增 sub减少") .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.UpdateTime) .HasColumnName("update_time") .HasColumnType("datetime") .HasComment("更新时间"); entity.Property(e => e.UserId) .HasColumnName("user_id") .HasComment("用户ID"); entity.Property(e => e.VariationCause) .HasColumnName("variation_cause") .HasColumnType("varchar(255)") .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(entity => { entity.ToTable("kxs_user_amount_log_202408"); entity.HasComment("用户余额记录日志表"); entity.Property(e => e.Id) .HasColumnName("id") .HasComment("主键ID"); entity.Property(e => e.AfterAmount) .HasColumnName("after_amount") .HasColumnType("decimal(18,2)") .HasComment("变动后金额"); entity.Property(e => e.AfterTotalAmount) .HasColumnName("after_total_amount") .HasColumnType("decimal(18,2)") .HasComment("变动后总收益"); entity.Property(e => e.Amount) .HasColumnName("amount") .HasColumnType("decimal(18,2)") .HasComment("操作金额"); entity.Property(e => e.BeforeAmount) .HasColumnName("before_amount") .HasColumnType("decimal(18,2)") .HasComment("变动前金额"); entity.Property(e => e.BeforeTotalAmount) .HasColumnName("before_total_amount") .HasColumnType("decimal(18,2)") .HasComment("变动前总收益"); 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.Kind) .HasColumnName("kind") .HasColumnType("varchar(6)") .HasComment("日志类型 add新增 sub减少") .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.UpdateTime) .HasColumnName("update_time") .HasColumnType("datetime") .HasComment("更新时间"); entity.Property(e => e.UserId) .HasColumnName("user_id") .HasComment("用户ID"); entity.Property(e => e.VariationCause) .HasColumnName("variation_cause") .HasColumnType("varchar(255)") .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(entity => { entity.ToTable("kxs_user_amount_log_202409"); entity.HasComment("用户余额记录日志表"); entity.Property(e => e.Id) .HasColumnName("id") .HasComment("主键ID"); entity.Property(e => e.AfterAmount) .HasColumnName("after_amount") .HasColumnType("decimal(18,2)") .HasComment("变动后金额"); entity.Property(e => e.AfterTotalAmount) .HasColumnName("after_total_amount") .HasColumnType("decimal(18,2)") .HasComment("变动后总收益"); entity.Property(e => e.Amount) .HasColumnName("amount") .HasColumnType("decimal(18,2)") .HasComment("操作金额"); entity.Property(e => e.BeforeAmount) .HasColumnName("before_amount") .HasColumnType("decimal(18,2)") .HasComment("变动前金额"); entity.Property(e => e.BeforeTotalAmount) .HasColumnName("before_total_amount") .HasColumnType("decimal(18,2)") .HasComment("变动前总收益"); 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.Kind) .HasColumnName("kind") .HasColumnType("varchar(6)") .HasComment("日志类型 add新增 sub减少") .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.UpdateTime) .HasColumnName("update_time") .HasColumnType("datetime") .HasComment("更新时间"); entity.Property(e => e.UserId) .HasColumnName("user_id") .HasComment("用户ID"); entity.Property(e => e.VariationCause) .HasColumnName("variation_cause") .HasColumnType("varchar(255)") .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(entity => { entity.ToTable("kxs_user_amount_log_202410"); entity.HasComment("用户余额记录日志表"); entity.Property(e => e.Id) .HasColumnName("id") .HasComment("主键ID"); entity.Property(e => e.AfterAmount) .HasColumnName("after_amount") .HasColumnType("decimal(18,2)") .HasComment("变动后金额"); entity.Property(e => e.AfterTotalAmount) .HasColumnName("after_total_amount") .HasColumnType("decimal(18,2)") .HasComment("变动后总收益"); entity.Property(e => e.Amount) .HasColumnName("amount") .HasColumnType("decimal(18,2)") .HasComment("操作金额"); entity.Property(e => e.BeforeAmount) .HasColumnName("before_amount") .HasColumnType("decimal(18,2)") .HasComment("变动前金额"); entity.Property(e => e.BeforeTotalAmount) .HasColumnName("before_total_amount") .HasColumnType("decimal(18,2)") .HasComment("变动前总收益"); 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.Kind) .HasColumnName("kind") .HasColumnType("varchar(6)") .HasComment("日志类型 add新增 sub减少") .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.UpdateTime) .HasColumnName("update_time") .HasColumnType("datetime") .HasComment("更新时间"); entity.Property(e => e.UserId) .HasColumnName("user_id") .HasComment("用户ID"); entity.Property(e => e.VariationCause) .HasColumnName("variation_cause") .HasColumnType("varchar(255)") .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(entity => { entity.ToTable("kxs_user_amount_log_202411"); entity.HasComment("用户余额记录日志表"); entity.Property(e => e.Id) .HasColumnName("id") .HasComment("主键ID"); entity.Property(e => e.AfterAmount) .HasColumnName("after_amount") .HasColumnType("decimal(18,2)") .HasComment("变动后金额"); entity.Property(e => e.AfterTotalAmount) .HasColumnName("after_total_amount") .HasColumnType("decimal(18,2)") .HasComment("变动后总收益"); entity.Property(e => e.Amount) .HasColumnName("amount") .HasColumnType("decimal(18,2)") .HasComment("操作金额"); entity.Property(e => e.BeforeAmount) .HasColumnName("before_amount") .HasColumnType("decimal(18,2)") .HasComment("变动前金额"); entity.Property(e => e.BeforeTotalAmount) .HasColumnName("before_total_amount") .HasColumnType("decimal(18,2)") .HasComment("变动前总收益"); 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.Kind) .HasColumnName("kind") .HasColumnType("varchar(6)") .HasComment("日志类型 add新增 sub减少") .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.UpdateTime) .HasColumnName("update_time") .HasColumnType("datetime") .HasComment("更新时间"); entity.Property(e => e.UserId) .HasColumnName("user_id") .HasComment("用户ID"); entity.Property(e => e.VariationCause) .HasColumnName("variation_cause") .HasColumnType("varchar(255)") .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(entity => { entity.ToTable("kxs_user_amount_log_202412"); entity.HasComment("用户余额记录日志表"); entity.Property(e => e.Id) .HasColumnName("id") .HasComment("主键ID"); entity.Property(e => e.AfterAmount) .HasColumnName("after_amount") .HasColumnType("decimal(18,2)") .HasComment("变动后金额"); entity.Property(e => e.AfterTotalAmount) .HasColumnName("after_total_amount") .HasColumnType("decimal(18,2)") .HasComment("变动后总收益"); entity.Property(e => e.Amount) .HasColumnName("amount") .HasColumnType("decimal(18,2)") .HasComment("操作金额"); entity.Property(e => e.BeforeAmount) .HasColumnName("before_amount") .HasColumnType("decimal(18,2)") .HasComment("变动前金额"); entity.Property(e => e.BeforeTotalAmount) .HasColumnName("before_total_amount") .HasColumnType("decimal(18,2)") .HasComment("变动前总收益"); 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.Kind) .HasColumnName("kind") .HasColumnType("varchar(6)") .HasComment("日志类型 add新增 sub减少") .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.UpdateTime) .HasColumnName("update_time") .HasColumnType("datetime") .HasComment("更新时间"); entity.Property(e => e.UserId) .HasColumnName("user_id") .HasComment("用户ID"); entity.Property(e => e.VariationCause) .HasColumnName("variation_cause") .HasColumnType("varchar(255)") .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(entity => { entity.ToTable("kxs_user_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.AwardNo) .HasColumnName("award_no") .HasColumnType("varchar(50)") .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.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") .HasComment("删除标记"); entity.Property(e => e.GrantStatus) .HasColumnName("grant_status") .HasComment("发放状态(0:初始、1:成功、2:失败)"); entity.Property(e => e.Remark) .HasColumnName("remark") .HasColumnType("varchar(100)") .HasComment("备注") .HasCharSet("utf8mb3") .HasCollation("utf8mb3_general_ci"); entity.Property(e => e.SyncStatus) .HasColumnName("sync_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.UserId) .HasColumnName("user_id") .HasComment("用户id"); entity.Property(e => e.VariationType) .HasColumnName("variation_type") .HasComment("奖励类型"); entity.Property(e => e.Version) .HasColumnName("version") .HasComment("版本号"); }); modelBuilder.Entity(entity => { entity.ToTable("kxs_user_bank"); entity.HasComment("用户银行卡表"); entity.Property(e => e.Id) .HasColumnName("id") .HasComment("主键ID"); entity.Property(e => e.BankCardName) .HasColumnName("bank_card_name") .HasColumnType("varchar(64)") .HasComment("银行卡户名") .HasCharSet("utf8mb3") .HasCollation("utf8mb3_general_ci"); entity.Property(e => e.BankCode) .HasColumnName("bank_code") .HasColumnType("varchar(32)") .HasComment("银行卡号") .HasCharSet("utf8mb3") .HasCollation("utf8mb3_general_ci"); entity.Property(e => e.BankName) .HasColumnName("bank_name") .HasColumnType("varchar(64)") .HasComment("银行名称") .HasCharSet("utf8mb3") .HasCollation("utf8mb3_general_ci"); entity.Property(e => e.BankOpen) .HasColumnName("bank_open") .HasColumnType("varchar(128)") .HasComment("开户行") .HasCharSet("utf8mb3") .HasCollation("utf8mb3_general_ci"); entity.Property(e => e.BankPhone) .HasColumnName("bank_phone") .HasColumnType("varchar(18)") .HasComment("预留手机号") .HasCharSet("utf8mb3") .HasCollation("utf8mb3_general_ci"); entity.Property(e => e.BankPic) .HasColumnName("bank_pic") .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.DelFlag) .HasColumnName("del_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("版本"); }); modelBuilder.Entity(entity => { entity.ToTable("kxs_user_by_stage"); entity.HasComment("用户分期表"); entity.Property(e => e.Id) .HasColumnName("id") .HasComment("主键ID"); 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.DeductAmount) .HasColumnName("deduct_amount") .HasColumnType("decimal(18,2)") .HasComment("已扣除金额"); entity.Property(e => e.DeductStartTime) .HasColumnName("deduct_start_time") .HasColumnType("datetime") .HasComment("扣款开始时间"); entity.Property(e => e.DelFlag) .HasColumnName("del_flag") .HasComment("删除标记,0未删除,1已删除"); entity.Property(e => e.Number) .HasColumnName("number") .HasComment("期数"); entity.Property(e => e.Remark) .HasColumnName("remark") .HasColumnType("varchar(255)") .HasComment("备注") .HasCharSet("utf8mb3") .HasCollation("utf8mb3_general_ci"); entity.Property(e => e.StageAmount) .HasColumnName("stage_amount") .HasColumnType("decimal(18,2)") .HasComment("分期金额"); entity.Property(e => e.StageSn) .HasColumnName("stage_sn") .HasColumnType("varchar(64)") .HasComment("分期单号") .HasCharSet("utf8mb3") .HasCollation("utf8mb3_general_ci"); entity.Property(e => e.Status) .HasColumnName("status") .HasComment("状态 0待扣款 1扣款中 2已扣款"); 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(entity => { entity.ToTable("kxs_user_by_stage_log"); 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.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.DeductTime) .HasColumnName("deduct_time") .HasColumnType("datetime") .HasComment("扣款时间"); entity.Property(e => e.DelFlag) .HasColumnName("del_flag") .HasComment("删除标记,0未删除,1已删除"); entity.Property(e => e.Remark) .HasColumnName("remark") .HasColumnType("varchar(255)") .HasComment("备注") .HasCharSet("utf8mb3") .HasCollation("utf8mb3_general_ci"); entity.Property(e => e.StageId) .HasColumnName("stage_id") .HasComment("分期ID"); entity.Property(e => e.Status) .HasColumnName("status") .HasComment("状态 0待扣款 1扣款中 2已扣款 3扣款失败"); entity.Property(e => e.ThisNumber) .HasColumnName("this_number") .HasComment("当前期数"); entity.Property(e => e.UpdateTime) .HasColumnName("update_time") .HasColumnType("datetime") .HasComment("更新时间"); entity.Property(e => e.Version) .HasColumnName("version") .HasComment("版本"); }); modelBuilder.Entity(entity => { entity.ToTable("kxs_user_equity"); 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.EquityType) .HasColumnName("equity_type") .HasComment("特权类型 0基础 1小盟主 2大盟主 3合伙人"); entity.Property(e => e.IconUrl) .HasColumnName("icon_url") .HasColumnType("varchar(255)") .HasComment("图标地址") .HasCharSet("utf8mb3") .HasCollation("utf8mb3_general_ci"); entity.Property(e => e.IsHide) .HasColumnName("is_hide") .HasComment("是否隐藏 0正常 1隐藏"); entity.Property(e => e.Name) .HasColumnName("name") .HasColumnType("varchar(32)") .HasComment("特权名称") .HasCharSet("utf8mb3") .HasCollation("utf8mb3_general_ci"); entity.Property(e => e.Sort) .HasColumnName("sort") .HasDefaultValueSql("'50'") .HasComment("排序"); entity.Property(e => e.UpdateTime) .HasColumnName("update_time") .HasColumnType("datetime") .HasComment("更新时间"); entity.Property(e => e.Version) .HasColumnName("version") .HasComment("版本"); }); modelBuilder.Entity(entity => { entity.ToTable("kxs_user_level_log"); entity.HasComment("用户预设职级日志表"); entity.Property(e => e.Id) .HasColumnName("id") .HasComment("主键ID"); entity.Property(e => e.CreateBy) .HasColumnName("create_by") .HasColumnType("varchar(32)") .HasComment("创建人") .HasCharSet("utf8mb3") .HasCollation("utf8mb3_general_ci"); entity.Property(e => e.CreateById) .HasColumnName("create_by_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.EndTime) .HasColumnName("end_time") .HasColumnType("datetime") .HasComment("结束时间"); entity.Property(e => e.PresetLevel) .HasColumnName("preset_level") .HasComment("预设等级"); entity.Property(e => e.Remark) .HasColumnName("remark") .HasColumnType("varchar(255)") .HasComment("备注") .HasCharSet("utf8mb3") .HasCollation("utf8mb3_general_ci"); entity.Property(e => e.StartTime) .HasColumnName("start_time") .HasColumnType("datetime") .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(entity => { entity.ToTable("kxs_user_preset_before"); entity.HasComment("用户存量预设职级表"); entity.Property(e => e.Id) .HasColumnName("id") .HasComment("主键ID"); entity.Property(e => e.CreateById) .HasColumnName("create_by_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.EndTime) .HasColumnName("end_time") .HasColumnType("datetime") .HasComment("结束时间"); entity.Property(e => e.PresetLevel) .HasColumnName("preset_level") .HasComment("预设等级"); entity.Property(e => e.StartTime) .HasColumnName("start_time") .HasColumnType("datetime") .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(entity => { entity.ToTable("kxs_user_preset_log"); entity.HasComment("用户预设职级表"); entity.Property(e => e.Id) .HasColumnName("id") .HasComment("主键ID"); entity.Property(e => e.CreateById) .HasColumnName("create_by_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.EndTime) .HasColumnName("end_time") .HasColumnType("datetime") .HasComment("结束时间"); entity.Property(e => e.PresetLevel) .HasColumnName("preset_level") .HasComment("预设等级"); entity.Property(e => e.StartTime) .HasColumnName("start_time") .HasColumnType("datetime") .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(entity => { entity.ToTable("kxs_user_profit"); entity.HasComment("用户分润表pos"); entity.HasIndex(e => e.IsTeam) .HasName("is_team"); entity.HasIndex(e => e.ProfitMonth) .HasName("month"); entity.HasIndex(e => e.UserId) .HasName("user_id"); entity.Property(e => e.Id) .HasColumnName("id") .HasComment("主键ID"); entity.Property(e => e.BrandId) .HasColumnName("brand_id") .HasComment("品牌ID"); entity.Property(e => e.BrandName) .HasColumnName("brand_name") .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") .HasColumnType("varchar(1)") .HasDefaultValueSql("'0'") .HasComment("删除标记,0未删除,1已删除") .HasCharSet("utf8mb3") .HasCollation("utf8mb3_general_ci"); entity.Property(e => e.IsTeam) .HasColumnName("is_team") .HasComment("分润来源 0 直营 1团队"); entity.Property(e => e.ProfitAmt) .HasColumnName("profit_amt") .HasColumnType("decimal(18,2)") .HasComment("分润金额"); entity.Property(e => e.ProfitMonth) .HasColumnName("profit_month") .HasComment("分润月"); entity.Property(e => e.Remark) .HasColumnName("remark") .HasColumnType("varchar(255)") .HasComment("备注") .HasCharSet("utf8mb3") .HasCollation("utf8mb3_general_ci"); entity.Property(e => e.Status) .HasColumnName("status") .HasComment("状态 0待入账 1已入账"); entity.Property(e => e.TradeType) .HasColumnName("trade_type") .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("版本"); }); modelBuilder.Entity(entity => { entity.ToTable("kxs_user_profit_lkb"); entity.HasComment("用户分润表来客吧"); entity.HasIndex(e => new { e.ProfitMonth, e.Status, e.UserId }) .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") .HasColumnType("varchar(1)") .HasDefaultValueSql("'0'") .HasComment("删除标记,0未删除,1已删除") .HasCharSet("utf8mb3") .HasCollation("utf8mb3_general_ci"); entity.Property(e => e.IsTeam) .HasColumnName("is_team") .HasComment("分润来源 0 直营 1团队"); entity.Property(e => e.ProfitAmt) .HasColumnName("profit_amt") .HasColumnType("decimal(18,2)") .HasComment("分润金额"); entity.Property(e => e.ProfitMonth) .HasColumnName("profit_month") .HasComment("分润月"); entity.Property(e => e.Remark) .HasColumnName("remark") .HasColumnType("varchar(255)") .HasComment("备注") .HasCharSet("utf8mb3") .HasCollation("utf8mb3_general_ci"); entity.Property(e => e.Status) .HasColumnName("status") .HasComment("状态 0待入账 1已入账"); entity.Property(e => e.TradeType) .HasColumnName("trade_type") .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("版本"); }); modelBuilder.Entity(entity => { entity.ToTable("kxs_user_profit_zlb"); entity.HasComment("用户分润表助力宝"); entity.HasIndex(e => new { e.ProfitMonth, e.Status, e.UserId }) .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") .HasColumnType("varchar(1)") .HasDefaultValueSql("'0'") .HasComment("删除标记,0未删除,1已删除") .HasCharSet("utf8mb3") .HasCollation("utf8mb3_general_ci"); entity.Property(e => e.IsTeam) .HasColumnName("is_team") .HasComment("分润来源 0 直营 1团队"); entity.Property(e => e.ProfitAmt) .HasColumnName("profit_amt") .HasColumnType("decimal(18,2)") .HasComment("分润金额"); entity.Property(e => e.ProfitMonth) .HasColumnName("profit_month") .HasComment("分润月"); entity.Property(e => e.Remark) .HasColumnName("remark") .HasColumnType("varchar(255)") .HasComment("备注") .HasCharSet("utf8mb3") .HasCollation("utf8mb3_general_ci"); entity.Property(e => e.Status) .HasColumnName("status") .HasComment("状态 0待入账 1已入账"); entity.Property(e => e.TradeAmt) .HasColumnName("trade_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(entity => { entity.ToTable("kxs_user_re_real"); entity.HasComment("创客重新实名开放表"); entity.Property(e => e.Id) .HasColumnName("id") .HasComment("主键ID"); 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.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.UserCode) .HasColumnName("user_code") .HasColumnType("varchar(12)") .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(entity => { entity.ToTable("kxs_user_real"); entity.HasComment("用户实名信息表"); entity.HasIndex(e => e.UserId) .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.IdCard) .HasColumnName("id_card") .HasColumnType("varchar(32)") .HasComment("身份证号") .HasCharSet("utf8mb3") .HasCollation("utf8mb3_general_ci"); entity.Property(e => e.IdCardFront) .HasColumnName("id_card_front") .HasColumnType("varchar(255)") .HasComment("身份证人像正面") .HasCharSet("utf8mb3") .HasCollation("utf8mb3_general_ci"); entity.Property(e => e.IdCardHand) .HasColumnName("id_card_hand") .HasColumnType("varchar(255)") .HasComment("手持身份证照片") .HasCharSet("utf8mb3") .HasCollation("utf8mb3_general_ci"); entity.Property(e => e.IdCardRear) .HasColumnName("id_card_rear") .HasColumnType("varchar(255)") .HasComment("身份证国徽背面") .HasCharSet("utf8mb3") .HasCollation("utf8mb3_general_ci"); entity.Property(e => e.RealName) .HasColumnName("real_name") .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.UserId) .HasColumnName("user_id") .HasComment("用户ID"); entity.Property(e => e.Version) .HasColumnName("version") .HasComment("版本"); }); modelBuilder.Entity(entity => { entity.ToTable("kxs_user_real_level"); 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.Level) .HasColumnName("level") .HasColumnType("varchar(32)") .HasComment("当前等级") .HasCharSet("utf8mb3") .HasCollation("utf8mb3_general_ci"); entity.Property(e => e.Month) .HasColumnName("month") .HasColumnType("varchar(32)") .HasComment("计算月份") .HasCharSet("utf8mb3") .HasCollation("utf8mb3_general_ci"); entity.Property(e => e.Pid) .HasColumnName("pid") .HasComment("上级id"); 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(entity => { entity.ToTable("kxs_user_withdrawal"); entity.HasComment("用户提现申请表"); entity.HasIndex(e => e.ApplyStatus) .HasName("apply_status"); entity.HasIndex(e => e.CreateTime) .HasName("create_time"); entity.HasIndex(e => e.Status) .HasName("status"); entity.HasIndex(e => new { e.WithdrawalType, e.UserId }) .HasName("query"); entity.Property(e => e.Id) .HasColumnName("id") .HasComment("主键ID"); entity.Property(e => e.ApplyAmount) .HasColumnName("apply_amount") .HasColumnType("decimal(18,2)") .HasComment("申请金额"); entity.Property(e => e.ApplyNo) .HasColumnName("apply_no") .HasColumnType("varchar(64)") .HasComment("申请单号") .HasCharSet("utf8mb3") .HasCollation("utf8mb3_general_ci"); entity.Property(e => e.ApplyStatus) .HasColumnName("apply_status") .HasComment("提交代付状态 0未提交 1已提交"); entity.Property(e => e.BankCode) .HasColumnName("bank_code") .HasColumnType("varchar(32)") .HasComment("银行卡号") .HasCharSet("utf8mb3") .HasCollation("utf8mb3_general_ci"); entity.Property(e => e.BankName) .HasColumnName("bank_name") .HasColumnType("varchar(64)") .HasComment("银行名称") .HasCharSet("utf8mb3") .HasCollation("utf8mb3_general_ci"); entity.Property(e => e.BeforeAmt) .HasColumnName("before_amt") .HasColumnType("decimal(18,2)") .HasComment("提现前余额"); entity.Property(e => e.ChannelName) .HasColumnName("channel_name") .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.RealAmount) .HasColumnName("real_amount") .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(1000)") .HasComment("代付返回信息json") .HasCharSet("utf8mb3") .HasCollation("utf8mb3_general_ci"); entity.Property(e => e.ServiceAmount) .HasColumnName("service_amount") .HasColumnType("decimal(18,2)") .HasComment("手续费"); entity.Property(e => e.Status) .HasColumnName("status") .HasComment("状态 0处理中 1成功 2失败"); entity.Property(e => e.TaxAmount) .HasColumnName("tax_amount") .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("版本"); entity.Property(e => e.WithdrawalType) .HasColumnName("withdrawal_type") .HasComment("提现类型"); }); modelBuilder.Entity(entity => { entity.ToTable("kxs_user_yuepay"); 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.OutTradeNo) .HasColumnName("out_trade_no") .HasColumnType("varchar(64)") .HasComment("订单交易编号") .HasCharSet("utf8mb3") .HasCollation("utf8mb3_general_ci"); entity.Property(e => e.PassbackParams) .HasColumnName("passback_params") .HasColumnType("varchar(500)") .HasComment("公共参数 原路返回") .HasCharSet("utf8mb3") .HasCollation("utf8mb3_general_ci"); entity.Property(e => e.RefundAmount) .HasColumnName("refund_amount") .HasColumnType("decimal(18,2)") .HasComment("退款金额"); entity.Property(e => e.Subject) .HasColumnName("subject") .HasColumnType("varchar(255)") .HasComment("订单标题") .HasCharSet("utf8mb3") .HasCollation("utf8mb3_general_ci"); entity.Property(e => e.TradeAmount) .HasColumnName("trade_amount") .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.TradeStatus) .HasColumnName("trade_status") .HasDefaultValueSql("'1'") .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(entity => { entity.ToTable("kxs_withdrawal_config"); 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.ToUserId) .HasColumnName("to_user_id") .HasComment("提现到账用户ID"); 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(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); } }