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

namespace MadRunFabric.Model
{
    /// <summary>
    /// 项目通讯录表
    /// </summary>
    public class Pro_Project_User : IBaseModel<string>
    {
        /// <summary>
        /// id
        /// </summary>
        [Key]
        [BsonRepresentation(MongoDB.Bson.BsonType.ObjectId)]
        public string id { get; set; }

        /// <summary>
        /// 项目id
        /// </summary>
        [BsonRepresentation(MongoDB.Bson.BsonType.ObjectId)]
        public string projectid { get; set; }

        /// <summary>
        /// 类型1甲方2诺达
        /// </summary>
        public int type { get; set; }

        /// <summary>
        /// 姓名
        /// </summary>
        public string name { get; set; }

        /// <summary>
        /// 性别
        /// </summary>
        public string sex { get; set; }

        /// <summary>
        /// 手机号
        /// </summary>
        public string mobilephone { get; set; }

        /// <summary>
        /// 固话
        /// </summary>
        public string telephone { get; set; }

        /// <summary>
        /// 头像
        /// </summary>
        public string imgurl { get; set; }

        /// <summary>
        /// 小图头像
        /// </summary>
        public string imgsmallurl { get; set; }

        /// <summary>
        /// 部门/科室
        /// </summary>
        public string department { get; set; }

        /// <summary>
        /// 岗位/职位
        /// </summary>
        public string position { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string remark { get; set; }

        /// <summary>
        /// 添加人工号
        /// </summary>
        public string createby { 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; }
    }
}
