using System;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata;

namespace MySystem.JavaUserModels
{
    public partial class WebCMSEntities : DbContext
    {
        public WebCMSEntities()
        {
        }

        public WebCMSEntities(DbContextOptions<WebCMSEntities> options)
            : base(options)
        {
        }

        public virtual DbSet<KxsBankChangeLog> KxsBankChangeLog { get; set; }
        public virtual DbSet<KxsBase> KxsBase { get; set; }
        public virtual DbSet<KxsCashResult> KxsCashResult { get; set; }
        public virtual DbSet<KxsChangeType> KxsChangeType { get; set; }
        public virtual DbSet<KxsChangeTypeKind> KxsChangeTypeKind { get; set; }
        public virtual DbSet<KxsGdOpenInfo> KxsGdOpenInfo { get; set; }
        public virtual DbSet<KxsInviteKing> KxsInviteKing { get; set; }
        public virtual DbSet<KxsLeader> KxsLeader { get; set; }
        public virtual DbSet<KxsLeaderAccountLog> KxsLeaderAccountLog { get; set; }
        public virtual DbSet<KxsLeaderAmountLog> KxsLeaderAmountLog { get; set; }
        public virtual DbSet<KxsLeaderByOrder> KxsLeaderByOrder { get; set; }
        public virtual DbSet<KxsLeaderByOrderInfo> KxsLeaderByOrderInfo { get; set; }
        public virtual DbSet<KxsLeaderLimitLog> KxsLeaderLimitLog { get; set; }
        public virtual DbSet<KxsLevelConfig> KxsLevelConfig { get; set; }
        public virtual DbSet<KxsPartner> KxsPartner { get; set; }
        public virtual DbSet<KxsPartnerAmountLog> KxsPartnerAmountLog { get; set; }
        public virtual DbSet<KxsProfitBase> KxsProfitBase { get; set; }
        public virtual DbSet<KxsProfitConfig> KxsProfitConfig { get; set; }
        public virtual DbSet<KxsProfitInit> KxsProfitInit { get; set; }
        public virtual DbSet<KxsProfitInit2024> KxsProfitInit2024 { get; set; }
        public virtual DbSet<KxsProfitInitBefore> KxsProfitInitBefore { get; set; }
        public virtual DbSet<KxsProfitInitBefore2024> KxsProfitInitBefore2024 { get; set; }
        public virtual DbSet<KxsShdLeader> KxsShdLeader { get; set; }
        public virtual DbSet<KxsShdLeaderCheck> KxsShdLeaderCheck { get; set; }
        public virtual DbSet<KxsShdScore> KxsShdScore { get; set; }
        public virtual DbSet<KxsShdTradeAmt> KxsShdTradeAmt { get; set; }
        public virtual DbSet<KxsTotalDebt> KxsTotalDebt { get; set; }
        public virtual DbSet<KxsTotalDebtLog> KxsTotalDebtLog { get; set; }
        public virtual DbSet<KxsTradeLevelLog> KxsTradeLevelLog { get; set; }
        public virtual DbSet<KxsUser> KxsUser { get; set; }
        public virtual DbSet<KxsUserAddress> KxsUserAddress { get; set; }
        public virtual DbSet<KxsUserAdvance> KxsUserAdvance { get; set; }
        public virtual DbSet<KxsUserAmount> KxsUserAmount { get; set; }
        public virtual DbSet<KxsUserAmountLog> KxsUserAmountLog { get; set; }
        public virtual DbSet<KxsUserAmountLog202203> KxsUserAmountLog202203 { get; set; }
        public virtual DbSet<KxsUserAmountLog202204> KxsUserAmountLog202204 { get; set; }
        public virtual DbSet<KxsUserAmountLog202205> KxsUserAmountLog202205 { get; set; }
        public virtual DbSet<KxsUserAmountLog202206> KxsUserAmountLog202206 { get; set; }
        public virtual DbSet<KxsUserAmountLog202207> KxsUserAmountLog202207 { get; set; }
        public virtual DbSet<KxsUserAmountLog202208> KxsUserAmountLog202208 { get; set; }
        public virtual DbSet<KxsUserAmountLog202209> KxsUserAmountLog202209 { get; set; }
        public virtual DbSet<KxsUserAmountLog202210> KxsUserAmountLog202210 { get; set; }
        public virtual DbSet<KxsUserAmountLog202211> KxsUserAmountLog202211 { get; set; }
        public virtual DbSet<KxsUserAmountLog202212> KxsUserAmountLog202212 { get; set; }
        public virtual DbSet<KxsUserAmountLog202301> KxsUserAmountLog202301 { get; set; }
        public virtual DbSet<KxsUserAmountLog202302> KxsUserAmountLog202302 { get; set; }
        public virtual DbSet<KxsUserAmountLog202303> KxsUserAmountLog202303 { get; set; }
        public virtual DbSet<KxsUserAmountLog202304> KxsUserAmountLog202304 { get; set; }
        public virtual DbSet<KxsUserAmountLog202305> KxsUserAmountLog202305 { get; set; }
        public virtual DbSet<KxsUserAmountLog202306> KxsUserAmountLog202306 { get; set; }
        public virtual DbSet<KxsUserAmountLog202307> KxsUserAmountLog202307 { get; set; }
        public virtual DbSet<KxsUserAmountLog202308> KxsUserAmountLog202308 { get; set; }
        public virtual DbSet<KxsUserAmountLog202309> KxsUserAmountLog202309 { get; set; }
        public virtual DbSet<KxsUserAmountLog202310> KxsUserAmountLog202310 { get; set; }
        public virtual DbSet<KxsUserAmountLog202311> KxsUserAmountLog202311 { get; set; }
        public virtual DbSet<KxsUserAmountLog202312> KxsUserAmountLog202312 { get; set; }
        public virtual DbSet<KxsUserAmountLog202401> KxsUserAmountLog202401 { get; set; }
        public virtual DbSet<KxsUserAmountLog202402> KxsUserAmountLog202402 { get; set; }
        public virtual DbSet<KxsUserAmountLog202403> KxsUserAmountLog202403 { get; set; }
        public virtual DbSet<KxsUserAmountLog202404> KxsUserAmountLog202404 { get; set; }
        public virtual DbSet<KxsUserAmountLog202405> KxsUserAmountLog202405 { get; set; }
        public virtual DbSet<KxsUserAmountLog202406> KxsUserAmountLog202406 { get; set; }
        public virtual DbSet<KxsUserAmountLog202407> KxsUserAmountLog202407 { get; set; }
        public virtual DbSet<KxsUserAmountLog202408> KxsUserAmountLog202408 { get; set; }
        public virtual DbSet<KxsUserAmountLog202409> KxsUserAmountLog202409 { get; set; }
        public virtual DbSet<KxsUserAmountLog202410> KxsUserAmountLog202410 { get; set; }
        public virtual DbSet<KxsUserAmountLog202411> KxsUserAmountLog202411 { get; set; }
        public virtual DbSet<KxsUserAmountLog202412> KxsUserAmountLog202412 { get; set; }
        public virtual DbSet<KxsUserAmountLog202501> KxsUserAmountLog202501 { get; set; }
        public virtual DbSet<KxsUserAward> KxsUserAward { get; set; }
        public virtual DbSet<KxsUserBank> KxsUserBank { get; set; }
        public virtual DbSet<KxsUserByStage> KxsUserByStage { get; set; }
        public virtual DbSet<KxsUserByStageLog> KxsUserByStageLog { get; set; }
        public virtual DbSet<KxsUserEquity> KxsUserEquity { get; set; }
        public virtual DbSet<KxsUserLevelLog> KxsUserLevelLog { get; set; }
        public virtual DbSet<KxsUserPresetBefore> KxsUserPresetBefore { get; set; }
        public virtual DbSet<KxsUserPresetLog> KxsUserPresetLog { get; set; }
        public virtual DbSet<KxsUserProfit> KxsUserProfit { get; set; }
        public virtual DbSet<KxsUserProfitLkb> KxsUserProfitLkb { get; set; }
        public virtual DbSet<KxsUserProfitZlb> KxsUserProfitZlb { get; set; }
        public virtual DbSet<KxsUserReReal> KxsUserReReal { get; set; }
        public virtual DbSet<KxsUserReal> KxsUserReal { get; set; }
        public virtual DbSet<KxsUserRealLevel> KxsUserRealLevel { get; set; }
        public virtual DbSet<KxsUserWithdrawal> KxsUserWithdrawal { get; set; }
        public virtual DbSet<KxsUserYuepay> KxsUserYuepay { get; set; }
        public virtual DbSet<KxsWithdrawalConfig> KxsWithdrawalConfig { get; set; }
        public virtual DbSet<UndoLog> UndoLog { get; set; }

        protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
        {
            if (!optionsBuilder.IsConfigured)
            {
                optionsBuilder.UseMySql(Library.ConfigurationManager.AppSettings["JavaUserSqlConnStr"].ToString(), x => x.ServerVersion("5.7.17-mysql"));
            }
        }

        protected override void OnModelCreating(ModelBuilder modelBuilder)
        {
            modelBuilder.Entity<KxsBankChangeLog>(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<KxsBase>(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<KxsCashResult>(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<KxsChangeType>(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<KxsChangeTypeKind>(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<KxsGdOpenInfo>(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<KxsInviteKing>(entity =>
            {
                entity.ToTable("kxs_invite_king");

                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.Kind)
                    .HasColumnName("kind")
                    .HasDefaultValueSql("'1'")
                    .HasComment("分类 1手机推荐王 2旅游推荐王");

                entity.Property(e => e.StepNum)
                    .HasColumnName("step_num")
                    .HasComment("达标数量");

                entity.Property(e => e.TradeMonth)
                    .HasColumnName("trade_month")
                    .HasComment("月份");

                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<KxsLeader>(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<KxsLeaderAccountLog>(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<KxsLeaderAmountLog>(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<KxsLeaderByOrder>(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<KxsLeaderByOrderInfo>(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<KxsLeaderLimitLog>(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<KxsLevelConfig>(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<KxsPartner>(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<KxsPartnerAmountLog>(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<KxsProfitBase>(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<KxsProfitConfig>(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<KxsProfitInit>(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<KxsProfitInit2024>(entity =>
            {
                entity.ToTable("kxs_profit_init_2024");

                entity.HasComment("分润计算各品牌初始表");

                entity.HasIndex(e => e.BrandId)
                    .HasName("brand_id");

                entity.HasIndex(e => e.FromUserId)
                    .HasName("from_user_id");

                entity.HasIndex(e => e.ProfitMonth)
                    .HasName("month");

                entity.HasIndex(e => e.ProfitType)
                    .HasName("profit_type");

                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.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<KxsProfitInitBefore>(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<KxsProfitInitBefore2024>(entity =>
            {
                entity.ToTable("kxs_profit_init_before_2024");

                entity.HasComment("分润计算各品牌初始表");

                entity.HasIndex(e => e.BrandId)
                    .HasName("brand_id");

                entity.HasIndex(e => e.FromUserId)
                    .HasName("from_user_id");

                entity.HasIndex(e => e.ProfitMonth)
                    .HasName("month");

                entity.HasIndex(e => e.ProfitType)
                    .HasName("profit_type");

                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.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<KxsShdLeader>(entity =>
            {
                entity.ToTable("kxs_shd_leader");

                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.ShdType)
                    .HasColumnName("shd_type")
                    .HasComment("类型 0-培养奖 1-领导奖");

                entity.Property(e => e.SourceBonusAmt)
                    .HasColumnName("source_bonus_amt")
                    .HasColumnType("decimal(18,2)")
                    .HasComment("达标奖励金额");

                entity.Property(e => e.SourceUserId)
                    .HasColumnName("source_user_id")
                    .HasComment("达标创客ID");

                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.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<KxsShdLeaderCheck>(entity =>
            {
                entity.ToTable("kxs_shd_leader_check");

                entity.HasComment("领导奖原始数据");

                entity.Property(e => e.Id)
                    .HasColumnName("id")
                    .HasComment("主键ID");

                entity.Property(e => e.BigMarketCount)
                    .HasColumnName("big_market_count")
                    .HasComment("大市场数");

                entity.Property(e => e.CreateBy)
                    .HasColumnName("create_by")
                    .HasColumnType("varchar(50)")
                    .HasComment("添加人")
                    .HasCharSet("utf8mb4")
                    .HasCollation("utf8mb4_0900_ai_ci");

                entity.Property(e => e.CreateTime)
                    .HasColumnName("create_time")
                    .HasColumnType("datetime")
                    .HasComment("新增时间");

                entity.Property(e => e.DeepStaCount)
                    .HasColumnName("deep_sta_count")
                    .HasComment("深度达标市场");

                entity.Property(e => e.DelFlag)
                    .HasColumnName("del_flag")
                    .HasColumnType("varchar(1)")
                    .HasDefaultValueSql("'0'")
                    .HasComment("删除标记，0未删除，1已删除")
                    .HasCharSet("utf8mb4")
                    .HasCollation("utf8mb4_0900_ai_ci");

                entity.Property(e => e.LeaderType)
                    .HasColumnName("leader_type")
                    .HasComment("盟主等级");

                entity.Property(e => e.Pid)
                    .HasColumnName("pid")
                    .HasComment("创客父级");

                entity.Property(e => e.PidPath)
                    .HasColumnName("pid_path")
                    .HasColumnType("varchar(2000)")
                    .HasComment("推荐人路径")
                    .HasCharSet("utf8mb4")
                    .HasCollation("utf8mb4_0900_ai_ci");

                entity.Property(e => e.SmallTradeAmount)
                    .HasColumnName("small_trade_amount")
                    .HasColumnType("decimal(18,2)")
                    .HasComment("小市场交易额");

                entity.Property(e => e.StaCount)
                    .HasColumnName("sta_count")
                    .HasComment("达标市场");

                entity.Property(e => e.StatMonth)
                    .HasColumnName("stat_month")
                    .HasColumnType("varchar(6)")
                    .HasComment("统计月份")
                    .HasCharSet("utf8mb4")
                    .HasCollation("utf8mb4_0900_ai_ci");

                entity.Property(e => e.TotalTradeAmount)
                    .HasColumnName("total_trade_amount")
                    .HasColumnType("decimal(18,2)")
                    .HasComment("总交易额");

                entity.Property(e => e.UpdateBy)
                    .HasColumnName("update_by")
                    .HasColumnType("varchar(50)")
                    .HasComment("更新人")
                    .HasCharSet("utf8mb4")
                    .HasCollation("utf8mb4_0900_ai_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<KxsShdScore>(entity =>
            {
                entity.ToTable("kxs_shd_score");

                entity.HasComment("股东大盘分红用户积分表");

                entity.Property(e => e.Id)
                    .HasColumnName("id")
                    .HasComment("主键ID");

                entity.Property(e => e.CenterBonusAmt)
                    .HasColumnName("center_bonus_amt")
                    .HasColumnType("decimal(18,2)")
                    .HasComment("中级股东奖金");

                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.EyasBonusAmt)
                    .HasColumnName("eyas_bonus_amt")
                    .HasColumnType("decimal(18,2)")
                    .HasComment("雏鹰奖金");

                entity.Property(e => e.EyasScore)
                    .HasColumnName("eyas_score")
                    .HasComment("雏鹰积分");

                entity.Property(e => e.FirstBonusAmt)
                    .HasColumnName("first_bonus_amt")
                    .HasColumnType("decimal(18,2)")
                    .HasComment("初级股东奖金");

                entity.Property(e => e.FirstScore)
                    .HasColumnName("first_score")
                    .HasComment("初级股东积分");

                entity.Property(e => e.HighBonusAmt)
                    .HasColumnName("high_bonus_amt")
                    .HasColumnType("decimal(18,2)")
                    .HasComment("高级股东奖金");

                entity.Property(e => e.HighScore)
                    .HasColumnName("high_score")
                    .HasComment("高级股东积分");

                entity.Property(e => e.Month)
                    .HasColumnName("month")
                    .HasComment("统计月份");

                entity.Property(e => e.PrivateBonusAmt)
                    .HasColumnName("private_bonus_amt")
                    .HasColumnType("decimal(18,2)")
                    .HasComment("私董会分红奖励");

                entity.Property(e => e.PrivateScore)
                    .HasColumnName("private_score")
                    .HasComment("私董会积分");

                entity.Property(e => e.ShdBonusAmt)
                    .HasColumnName("shd_bonus_amt")
                    .HasColumnType("decimal(18,2)")
                    .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<KxsShdTradeAmt>(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.EyasBonusPool)
                    .HasColumnName("eyas_bonus_pool")
                    .HasColumnType("decimal(18,2)")
                    .HasComment("雏鹰计划奖金池");

                entity.Property(e => e.EyasTradeAmt)
                    .HasColumnName("eyas_trade_amt")
                    .HasColumnType("decimal(18,2)")
                    .HasComment("雏鹰计划总交易额新政");

                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.PrivateBonusPool)
                    .HasColumnName("private_bonus_pool")
                    .HasColumnType("decimal(18,2)")
                    .HasComment("私董会奖金池");

                entity.Property(e => e.PrivateTradeAmt)
                    .HasColumnName("private_trade_amt")
                    .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<KxsTotalDebt>(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<KxsTotalDebtLog>(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<KxsTradeLevelLog>(entity =>
            {
                entity.ToTable("kxs_trade_level_log");

                entity.HasComment("用户交易职级日志表");

                entity.HasIndex(e => new { e.UserId, e.TradeMonth, e.Version })
                    .HasName("query")
                    .IsUnique();

                entity.Property(e => e.Id)
                    .HasColumnName("id")
                    .HasComment("主键ID");

                entity.Property(e => e.BeforePreLevel)
                    .HasColumnName("before_pre_level")
                    .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.LastLevel)
                    .HasColumnName("last_level")
                    .HasComment("上月职级");

                entity.Property(e => e.LeaderLevel)
                    .HasColumnName("leader_level")
                    .HasComment("盟主职级");

                entity.Property(e => e.Level)
                    .HasColumnName("level")
                    .HasComment("当前职级");

                entity.Property(e => e.PidPath)
                    .HasColumnName("pid_path")
                    .HasColumnType("varchar(500)")
                    .HasComment("上月层级")
                    .HasCharSet("utf8mb3")
                    .HasCollation("utf8mb3_general_ci");

                entity.Property(e => e.PreLevel)
                    .HasColumnName("pre_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<KxsUser>(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<KxsUserAddress>(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<KxsUserAdvance>(entity =>
            {
                entity.ToTable("kxs_user_advance");

                entity.HasComment("客小爽用户预扣款表");

                entity.HasIndex(e => e.Status)
                    .HasName("status");

                entity.HasIndex(e => e.UserId)
                    .HasName("user_id");

                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<KxsUserAmount>(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<KxsUserAmountLog>(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<KxsUserAmountLog202203>(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<KxsUserAmountLog202204>(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<KxsUserAmountLog202205>(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<KxsUserAmountLog202206>(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<KxsUserAmountLog202207>(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<KxsUserAmountLog202208>(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<KxsUserAmountLog202209>(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<KxsUserAmountLog202210>(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<KxsUserAmountLog202211>(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<KxsUserAmountLog202212>(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<KxsUserAmountLog202301>(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<KxsUserAmountLog202302>(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<KxsUserAmountLog202303>(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<KxsUserAmountLog202304>(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<KxsUserAmountLog202305>(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<KxsUserAmountLog202306>(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<KxsUserAmountLog202307>(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<KxsUserAmountLog202308>(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<KxsUserAmountLog202309>(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<KxsUserAmountLog202310>(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<KxsUserAmountLog202311>(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<KxsUserAmountLog202312>(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<KxsUserAmountLog202401>(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<KxsUserAmountLog202402>(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<KxsUserAmountLog202403>(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<KxsUserAmountLog202404>(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<KxsUserAmountLog202405>(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<KxsUserAmountLog202406>(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<KxsUserAmountLog202407>(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<KxsUserAmountLog202408>(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<KxsUserAmountLog202409>(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<KxsUserAmountLog202410>(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<KxsUserAmountLog202411>(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<KxsUserAmountLog202412>(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<KxsUserAmountLog202501>(entity =>
            {
                entity.ToTable("kxs_user_amount_log_202501");

                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<KxsUserAward>(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<KxsUserBank>(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<KxsUserByStage>(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<KxsUserByStageLog>(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<KxsUserEquity>(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<KxsUserLevelLog>(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<KxsUserPresetBefore>(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<KxsUserPresetLog>(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<KxsUserProfit>(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<KxsUserProfitLkb>(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<KxsUserProfitZlb>(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<KxsUserReReal>(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<KxsUserReal>(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<KxsUserRealLevel>(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<KxsUserWithdrawal>(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<KxsUserYuepay>(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<KxsWithdrawalConfig>(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<UndoLog>(entity =>
            {
                entity.HasNoKey();

                entity.ToTable("undo_log");

                entity.HasComment("AT transaction mode undo table");

                entity.HasIndex(e => e.LogCreated)
                    .HasName("ix_log_created");

                entity.HasIndex(e => new { e.Xid, e.BranchId })
                    .HasName("ux_undo_log")
                    .IsUnique();

                entity.Property(e => e.BranchId)
                    .HasColumnName("branch_id")
                    .HasComment("branch transaction id");

                entity.Property(e => e.Context)
                    .IsRequired()
                    .HasColumnName("context")
                    .HasColumnType("varchar(128)")
                    .HasComment("undo_log context,such as serialization")
                    .HasCharSet("utf8mb4")
                    .HasCollation("utf8mb4_0900_ai_ci");

                entity.Property(e => e.LogCreated)
                    .HasColumnName("log_created")
                    .HasComment("create datetime");

                entity.Property(e => e.LogModified)
                    .HasColumnName("log_modified")
                    .HasComment("modify datetime");

                entity.Property(e => e.LogStatus)
                    .HasColumnName("log_status")
                    .HasComment("0:normal status,1:defense status");

                entity.Property(e => e.RollbackInfo)
                    .IsRequired()
                    .HasColumnName("rollback_info")
                    .HasComment("rollback info");

                entity.Property(e => e.Xid)
                    .IsRequired()
                    .HasColumnName("xid")
                    .HasColumnType("varchar(128)")
                    .HasComment("global transaction id")
                    .HasCharSet("utf8mb4")
                    .HasCollation("utf8mb4_0900_ai_ci");
            });

            OnModelCreatingPartial(modelBuilder);
        }

        partial void OnModelCreatingPartial(ModelBuilder modelBuilder);
    }
}
