using RG3.PF.Abstractions.Enums;
using RG3.PF.Abstractions.Interfaces;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace RG3.PF.Abstractions.Entity
{
    /// <summary>
    /// 切片配置  2021-08-23 cbg
    /// </summary>
    public class ShredBasis : IEntity
    {

        /// <summary>
        /// OwnerId
        /// </summary>
        public string OwnerId { get; set; }
        /// <summary>
        /// SysId
        /// </summary>
        public string SysId { get; set; }

        /// <summary>
        /// 原始库名  用于告知第三方处理库 以及查询时候逻辑处理
        /// </summary>
        public string DbName { get; set; }

        /// <summary>
        /// 原始表名 用于告知第三方处理库  以及查询时候逻辑处理
        /// </summary>
        public string TableName { get; set; }

        /// <summary>
        /// 存储如  mkey 或者 mapperKey  ,  数据在 db.provider.shreding.json
        /// </summary>
        public string ShredKey { get; set; }

        /// <summary>
        /// shreding_resource_data_his.i_table_mysql
        /// </summary>
        public string ShredTableMKey { get; set; }

        /// <summary>
        /// shreding_resource_data_his.i_db_mysql
        /// </summary>
        public string ShredDbMKey { get; set; }

        ///// <summary>
        ///// 是否切片
        ///// </summary>
        //public bool? Shreding { get; set; }


        /// <summary>
        /// 切片列   如时间列、自增列、数值列
        /// </summary>
        public string ShredColumn { get; set; }

        /// <summary>
        /// 主键列   自增列、雪花算法列
        /// </summary>
        public string ShredPrimary { get; set; }



        ///// <summary>
        ///// 切片列   如时间列、自增列、数值列
        ///// </summary>
        //public string ShredTableColumn { get; set; }

        ///// <summary>
        ///// 主键列   自增列、雪花算法列
        ///// </summary>
        //public string ShredTablePrimary { get; set; }


        ///// <summary>
        ///// 切片列   如时间列、自增列、数值列
        ///// </summary>
        //public string ShredDbColumn { get; set; }

        ///// <summary>
        ///// 主键列   自增列、雪花算法列
        ///// </summary>
        //public string ShredDbPrimary { get; set; }


        /// <summary>
        /// 读取  db.provider 里面 write索引
        /// </summary>
        public int WriteDbIndex { get; set; }

        /// <summary>
        /// 读取  db.provider 里面 read索引
        /// </summary>
        public int ReadDbIndex { get; set; }

    }
}
文档更新时间: 2021-09-14 22:17   作者:admin