using Admin.Core.Common.BaseModel;
using FreeSql.DataAnnotations;
namespace Admin.Core.Model.Admin
{
///
/// 日志
///
public abstract class LogAbstract : EntityAdd, ITenant
{
///
/// 租户Id
///
[Column(Position = -10, CanUpdate = false)]
public long? TenantId { get; set; }
///
/// 昵称
///
[Column(StringLength = 60)]
public string NickName { get; set; }
///
/// IP
///
[Column(StringLength = 100)]
public string IP { get; set; }
///
/// 浏览器
///
[Column(StringLength = 100)]
public string Browser { get; set; }
///
/// 操作系统
///
[Column(StringLength = 100)]
public string Os { get; set; }
///
/// 设备
///
[Column(StringLength = 50)]
public string Device { get; set; }
///
/// 浏览器信息
///
[Column(StringLength = -1)]
public string BrowserInfo { get; set; }
///
/// 耗时(毫秒)
///
public long ElapsedMilliseconds { get; set; }
///
/// 操作状态
///
public bool Status { get; set; }
///
/// 操作消息
///
[Column(StringLength = 500)]
public string Msg { get; set; }
///
/// 操作结果
///
[Column(StringLength = -1)]
public string Result { get; set; }
}
}