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>
    public class User_Pro_Staff : IBaseModel<string>
    {
        /// <summary>
        /// id
        /// </summary>
        [Key]
        [BsonRepresentation(MongoDB.Bson.BsonType.ObjectId)]
        public string id { get; set; }

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

        /// <summary>
        /// 项目ID
        /// </summary>
        [BsonRepresentation(MongoDB.Bson.BsonType.ObjectId)]
        public string project_id { get; set; }
        /// <summary>
        /// 联系方式
        /// </summary>
        public string staff_phone { get; set; }

        /// <summary>
        /// 技能证书图片列表
        /// </summary>
        public List<FileBaseModel> staff_certify_imgs { get; set; } = null;
        /// <summary>
        /// 入职时间
        /// </summary>
        public DateTime staff_entry { get; set; }
        /// <summary>
        /// 转岗时间
        /// </summary>
        public DateTime staff_transfer { get; set; }
        /// <summary>
        /// 离职时间
        /// </summary>
        public DateTime staff_resign { get; set; }
        /// <summary>
        /// 是否删除
        /// </summary>
        public int isdelete { get; set; } = 0;
    }
}
