//--------------------------------------------------------------------
// 此代码由T4模板自动生成 byzhouhang 20210918
// 生成时间 2023-07-04 16:10:43
// 对此文件的更改可能会导致不正确的行为,并且如果重新生成代码,这些更改将会丢失。
using System;
using IRaCIS.Core.Domain.Share;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace IRaCIS.Core.Domain.Models
{
///
///UserLog
///
[Table("UserLog")]
public class UserLog : Entity, IAuditAdd
{
public string IP { get; set; }
public DateTime CreateTime { get; set; }
public Guid CreateUserId { get; set; }
public string LoginName { get; set; }
public UserOptType OptType { get; set; }
public string LoginPassword { get; set; }
public bool IsSuccess { get; set; }
}
///
/// 登录或者登出 锁定类型
///
public enum UserOptType
{
///
/// 用户登录
///
Login = 1,
///
/// 用户登出
///
LoginOut = 2,
///
/// 密码错误
///
PasswordError = 3,
///
/// 账号锁定
///
AccountLocked = 4
}
}