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

namespace MadRunFabric.Model
{
    public class Sys_Post_System : 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 postid { get; set; }

        /// <summary>
        /// 系统id
        /// </summary>
        [BsonRepresentation(MongoDB.Bson.BsonType.ObjectId)]
        public string systemid { get; set; }

        /// <summary>
        /// 添加人
        /// </summary>
        public string createby { get; set; }

        /// <summary>
        /// 添加时间
        /// </summary>
        public DateTime createtime
        {
            get
            {
                return _createtime;
            }
            set
            {
                _createtime = value;
            }
        }
        private DateTime _createtime = 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
            {
                return _deletetime;
            }
            set
            {
                _deletetime = value;
            }
        }
        private DateTime _deletetime;
    }
}
