using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace OpenAuth.Repository.Domain
{
    [SugarTable("excel_importfileds")]
    public class ExcelImportFileds
    {
        #region 实体成员
        /// <summary>
        /// 导入模板Id
        /// </summary>
        public string ImportId { get; set; }
        /// <summary>
        /// 字段名字
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// excel名字
        /// </summary>
        public string ColName { get; set; }
        /// <summary>
        /// 字段类型
        /// </summary>
        public string CsType { get; set; }
        /// <summary>
        /// 唯一性验证:0要,1需要
        /// </summary>
        public int? OnlyOne { get; set; }
        /// <summary>
        /// 关联类型0:无关联,1:GUID,2:数据字典3:数据表;4:固定数值;5:操作人ID;6:操作人名字;7:操作时间;
        /// </summary>
        public int? RelationType { get; set; }
        /// <summary>
        /// 数据字典编号
        /// </summary>
        public string DataItemCode { get; set; }
        /// <summary>
        /// 固定数据
        /// </summary>
        public string Value { get; set; }
        /// <summary>
        /// 关联数据源
        /// </summary>
        public string DSourceId { get; set; }
        /// <summary>
        /// 关联数据源导入对应字段
        /// </summary>
        public string DSourceExcelId { get; set; }
        /// <summary>
        /// 关联数据源保存字段
        /// </summary>
        public string DSourceDBId { get; set; }
        /// <summary>
        /// 排序
        /// </summary>
        public int? SortCode { get; set; }
        #endregion
    }
}
