using Edu.Common.Enum.WeChat;
using System;
using VT.FW.DB;

namespace Edu.Model.Entity.WeChat
{
    /// <summary>
    /// 企业微信客户字段扩展类
    /// </summary>
    [Serializable]
    [DB(ConnectionName = "DefaultConnection")]
    public class RB_WeChat_CustomerField
    {
        /// <summary>
        /// Id
        /// </summary>
        public int Id { get; set; }

        /// <summary>
        /// 类型  枚举
        /// </summary>
        public CustomerFieldTypeEnum Type { get; set; }

        /// <summary>
        /// 字段名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 必填  1是
        /// </summary>
        public int Required { get; set; }

        /// <summary>
        /// 部门id （0表示通用）
        /// </summary>
        public int DeptId { get; set; }

        /// <summary>
        /// 字数
        /// </summary>
        public int WordNum { get; set; }

        /// <summary>
        /// 输入类型  多选  英文逗号分隔
        /// </summary>
        public string InputType { get; set; }

        /// <summary>
        /// 列表选项  json格式 key-value
        /// </summary>
        public string Options { get; set; }

        /// <summary>
        /// 小数位数
        /// </summary>
        public int Digits { get; set; }

        /// <summary>
        /// 排序
        /// </summary>
        public int Sort { get; set; }

        /// <summary>
        /// 是否启用  1是
        /// </summary>
        public int Enable { get; set; }

        /// <summary>
        /// 删除状态
        /// </summary>
        public int Status { get; set; }

        /// <summary>
        /// 集团编号
        /// </summary>
        public int Group_Id { get; set; }

        /// <summary>
        /// 创建人
        /// </summary>
        public int CreateBy { get; set; }

        /// <summary>
        /// 创建日期
        /// </summary>
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 修改人
        /// </summary>
        public int UpdateBy { get; set; }

        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime UpdateTime { get; set; }

        /// <summary>
        /// 是否系统字段  1是
        /// </summary>
        public int IsSystem { get; set; }

        /// <summary>
        /// 是否默认字段  1是  （默认字段无法删除）
        /// </summary>
        public int IsDefault { get; set; }

        /// <summary>
        /// 是否锁定字段  1是   (锁定字段无法禁用)
        /// </summary>
        public int IsLock { get; set; }
    }
}
