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_DictionaryBase : IBaseModel<string>
    {
        /// <summary>
        /// 自动id
        /// </summary>
        [Key]
        [BsonRepresentation(MongoDB.Bson.BsonType.ObjectId)]
        public string id { get; set; }
        /// <summary>
        /// 字典编号
        /// </summary>
        public string dictionarycode { get; set; }
        /// <summary>
        /// 字典名称
        /// </summary>
        public string dictionaryname { get; set; }
        /// <summary>
        /// 排序
        /// </summary>
        public int sort { get; set; } = 0;
        /// <summary>
        /// 字典描述
        /// </summary>
        public string describe { get; set; }
        /// <summary>
        /// 状态
        /// </summary>
        public bool statetype { get; set; } = true;
    }
}
