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

namespace MadRunFabric.Model
{
    /// <summary>
    /// 非工作日表
    /// </summary>
    public class Sys_WorkOFFDays : IBaseModel<string>
    {
        /// <summary>
        /// id
        /// </summary>
        [Key]
        [BsonRepresentation(MongoDB.Bson.BsonType.ObjectId)]
        public string id { get; set; }

        /// <summary>
        /// 休息日日期
        /// </summary>
        public DateTime offdate { get; set; } = DateTime.Now.ToLocalTime();
        /// <summary>
        /// 状态，0在用，1删除
        /// </summary>
        public int offstate { get; set; } = 0;
        /// <summary>
        /// 备注
        /// </summary>
        public string remark { get; set; } = "";
        /// <summary>
        /// 添加时间
        /// </summary>
        public DateTime createtime { get; set; } = DateTime.Now.ToLocalTime();
        /// <summary>
        /// 添加人
        /// </summary>
        public string createby { get; set; } = "";
        /// <summary>
        /// 是否删除：0未删除，1已删除
        /// </summary>
        public bool isdelete { get; set; } = false;
    }
}