using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Models.Models.Engineering
{
    /// <summary>
    /// 团队成员变更日志
    /// </summary>
    public class TBL_Engineerning_TeamMember_Log
    {

        [Key, Column(TypeName = "int"), Comment("自增长"), DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        /// <summary>
        /// 自增ID
        /// </summary>
        public int ID { get; set; }

        [Column(TypeName = "datetime(3)"), Comment("发生时间，精确到秒")]
        /// <summary>
        /// 发生时间，精确到秒
        /// </summary>
        public DateTime DateTime { get; set; }
        /// <summary>
        /// 链接到用户权限管理系统
        /// </summary>
        [Column(TypeName = "nvarchar(50)"), Comment("链接到用户权限管理系统")]

        public int UserID { get; set; }
        /// <summary>
        /// 处理人（谁对本条记录进行的操作）
        /// </summary>
        [Column(TypeName = "nvarchar(50)"), Comment("处理人（谁对本条记录进行的操作）")]
        public string Handler { get; set; }
        /// <summary>
        /// 事件（加入团队、移除团队）
        /// </summary>
        [Column(TypeName = "int"), Comment("事件（加入团队、移除团队）")]

        public int Event { get; set; }
        /// <summary>
        /// 当前状态（True = 属于团队成功，  False= 不属于团队成员）
        /// </summary>
        /// 
        [Column(TypeName = "bit"), Comment(" 当前状态（True = 属于团队成功，  False= 不属于团队成员）")]
        public bool CurrentStatus { get; set; }
        /// <summary>
        /// 备注信息
        /// </summary>
        /// 
        [Column(TypeName = "nvarchar(255)"), Comment("备注信息")]
        public string Remark { get; set; }

    }
}
