using OASystem.Domain.Attributes;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace OASystem.Domain.Entities.Customer
{
    /// 
    /// 客户证件表
    /// 
    [SugarTable("Crm_CustomerCert")]
    public class Crm_CustomerCert:EntityBase
    {
        /// 
        /// 客户信息表Id
        /// 
        [SugarColumn(IsNullable =true,ColumnDataType ="int")]
        public int DcId { get; set; }
        /// 
        /// 证件类型表Id
        /// 
        [SugarColumn(IsNullable = true, ColumnDataType = "int")]
        public int SdId { get; set; }
        /// 
        /// 护照类型 Id(数据类型表Id)
        /// SdId == 74 该字段有值
        /// 
        [SugarColumn(IsNullable = true, ColumnDataType = "int")]
        public int PassportType { get; set; } = 0;
        /// 
        /// 证件号
        /// 
        [SugarColumn(IsNullable = true, ColumnDataType = "varchar(30)")]
        [Encrypted]
        public string CertNo { get; set; }
        /// 
        /// 签发国
        /// 
        [SugarColumn(IsNullable = true, ColumnDataType = "varchar(50)")]
        public string Country { get; set; }
        
        /// 
        /// 签发地区
        /// 
        [SugarColumn(IsNullable = true, ColumnDataType = "varchar(50)")]
        public string Area { get; set; }
        /// 
        /// 目的地国家
        /// 
        [SugarColumn(IsNullable = true, ColumnDataType = "varchar(50)")]
        public string TargetCountry { get; set; }
        /// 
        /// 有效期起始时间
        /// 
        [SugarColumn(IsNullable = true, ColumnDataType = "DateTime")]
        public DateTime? IssueDt { get; set; } = null;
        /// 
        /// 有效期截止时间
        /// 
        [SugarColumn(IsNullable = true, ColumnDataType = "DateTime")]
        public DateTime? ExpiryDt { get; set; } = null;
        /// 
        /// 身份证户籍地址
        /// 
        [SugarColumn(IsNullable = true, ColumnDataType = "varchar(100)")]
        public string IDCardAddress { get; set; }
    }
}