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

namespace MadRunFabric.Model.ConfigurationApi.Model
{
    [BsonIgnoreExtraElements]
    public class Sys_AuthorizationU3D : IBaseModel<string>
    {
        /// <summary>
        /// id
        /// </summary>
        [Key]
        [BsonRepresentation(MongoDB.Bson.BsonType.ObjectId)]
        public string id { get; set; }
        /// <summary>
        /// 加密字符串
        /// </summary>
        public string authorizationcode { get; set; }
        /// <summary>
        /// 项目名称id
        /// </summary>
        [BsonRepresentation(MongoDB.Bson.BsonType.ObjectId)]
        public string projectid { get; set; } = "";
        /// <summary>
        /// 到期日期
        /// </summary>
        public DateTime duedate { get; set; }
        /// <summary>
        /// 客户端ip地址
        /// </summary>
        public string ip { get; set; }
        /// <summary>
        /// 是否启用(0禁用1启用)
        /// </summary>
        public int isopen { get; set; } = 0;
        /// <summary>
        /// 添加时间
        /// </summary>
        public DateTime createtime { get; set; } = DateTime.Now;
        /// <summary>
        /// 是否删除(0正常1删除)
        /// </summary>
        public int isdelete { get; set; } = 0;
        /// <summary>
        /// 删除时间
        /// </summary>
        public DateTime? deletetime { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string remark { get; set; }
    }
}
