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_User_LoginLogs : IBaseModel
{
///
/// id
///
[Key]
[BsonRepresentation(MongoDB.Bson.BsonType.ObjectId)]
public string id { get; set; }
///
/// 登录id
///
public string loginid { get; set; }
///
/// 登录名称
///
public string loginname { get; set; }
///
/// 版本号
///
public string result { get; set; }
///
/// 登录ip
///
public string loginip { get; set; }
///
/// 登录主机名称
///
public string loginhostname { get; set; }
///
/// 登录时间
///
public DateTime logintime { get; set; } = DateTime.Now.ToLocalTime();
///
/// 退出时间
///
public DateTime? loginouttime { get; set; }
///
/// 状态(预留)
///
public int statetype { get; set; } = 0;
///
/// 是否删除(0正常 -1删除)
///
public int isdelete { get; set; } = 0;
///
/// 备注
///
public string content { get; set; }
}
}