using MadRunFabric.Common;
using MongoDB.Bson.Serialization.Attributes;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace MadRunFabric.Model
{
    /// <summary>
    ///  用户表 - 普通排班（保洁，保安） - 公示系统展示
    /// </summary>
    [BsonIgnoreExtraElements]
    public class Sys_Work_User : IBaseModel<string>
    {
        /// <summary>
        /// id
        /// </summary>
        [Key]
        [BsonRepresentation(MongoDB.Bson.BsonType.ObjectId)]
        public string id { get; set; }
        /// <summary>
        /// 项目
        /// </summary>
        [BsonRepresentation(MongoDB.Bson.BsonType.ObjectId)]
        public string projectid { get; set; }
        /// <summary>
        /// 角色分类（字典）
        /// </summary>
        [BsonRepresentation(MongoDB.Bson.BsonType.ObjectId)]
        public string usertype { get; set; }
        ///// <summary>
        ///// 用户工号
        ///// </summary>
        //public string usercode { get; set; }
        /// <summary>
        /// 姓名
        /// </summary>
        public string username { get; set; }
        /// <summary>
        /// 性别（男/女/未知）
        /// </summary>
        public string sex { get; set; }
        /// <summary>
        /// 手机
        /// </summary>
        public string mobile { get; set; } = "";
        /// <summary>
        /// 备注说明
        /// </summary>
        public string remark { get; set; }
        ///// <summary>
        ///// 家庭电话
        ///// </summary>
        //public string homephone { get; set; } = "";
        ///// <summary>
        ///// 出生日期
        ///// </summary>
        //public string birthday { get; set; } = "";

        ///// <summary>
        ///// 头像 ------------------------------------------------
        ///// </summary>
        //public string head_img { get; set; } = "";
        ///// <summary>
        ///// 头像
        ///// </summary>
        //public string head_small_img { get; set; } = "";
        ///// <summary>
        ///// 身份证号码
        ///// </summary>
        //public string idcardno { get; set; }
        ///// <summary>
        ///// 身份证图片
        ///// </summary>
        //public List<FileBaseModel> idcard { get; set; }

        ///// <summary>
        ///// 入职时间 ------------------------------------------------
        ///// </summary>
        //public string entrytime { get; set; }
        ///// <summary>
        ///// 转岗时间
        ///// </summary>
        //public string transfertime { get; set; }
        ///// <summary>
        ///// 离职时间
        ///// </summary>
        //public string quittime { get; set; }

        /// <summary>
        /// 添加人工号 ------------------------------------------------
        /// </summary>
        public string createby { get; set; }
        /// <summary>
        /// 添加人名字
        /// </summary>
        public string createname { get; set; }
        /// <summary>
        /// 添加时间
        /// </summary>
        public DateTime createtime { get; set; } = DateTime.Now;
        /// <summary>
        /// 是否删除(0正常1删除)
        /// </summary>
        public int isdelete { get; set; } = 0;
        /// <summary>
        /// 删除人
        /// </summary>
        public string deleteby { get; set; }
        /// <summary>
        /// 删除日期
        /// </summary>
        public DateTime? deletetime { get; set; }
    }
}
