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>
    /// 楼层 （Sys_Building楼，Sys_Floor楼层）
    /// </summary>
    public class Sys_Floor : IBaseModel<string>
    {
        /// <summary>
        /// 自增id
        /// </summary>
        [Key]
        [BsonRepresentation(MongoDB.Bson.BsonType.ObjectId)]
        public string id { get; set; }
        /// <summary>
        /// 楼层名称
        /// </summary>
        public string floorname { get; set; }
        /// <summary>
        /// 楼Id
        /// </summary>
        [BsonRepresentation(MongoDB.Bson.BsonType.ObjectId)]
        public string buildid { get; set; }
        /// <summary>
        /// 排序
        /// </summary>
        public int sortnum { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string remark { get; set; }
        /// <summary>
        /// 添加人工号
        /// </summary>
        public string createtby { get; set; }
        /// <summary>
        /// 添加时间
        /// </summary>
        public DateTime createtime
        {
            set { _createtime = value; }
            get { return _createtime; }
        }
        private DateTime _createtime;
        /// <summary>
        /// 是否删除（0正常 -1删除）
        /// </summary>
        public int isdelete { get; set; } = 0;
        /// <summary>
        /// 删除人工号
        /// </summary>
        public string deleteby { get; set; }
        /// <summary>
        /// 删除时间
        /// </summary>
        public DateTime deletetime
        {
            set { _deletetime = value; }
            get { return _deletetime; }
        }
        private DateTime _deletetime;
    }
}
