Files
IM/backend/IM_API/Models/LoginLog.cs
T
2026-02-12 21:53:26 +08:00

34 lines
787 B
C#
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
namespace IM_API.Models;
public partial class LoginLog
{
public int Id { get; set; }
/// <summary>
/// 设备类型(通Devices/DType
/// </summary>
public sbyte Dtype { get; set; }
/// <summary>
/// 登录时间
/// </summary>
[Column(TypeName = "datetimeoffset")]
public DateTimeOffset Logined { get; set; }
/// <summary>
/// 登录用户
/// </summary>
public int UserId { get; set; }
/// <summary>
/// 登录状态(0:登陆成功,1:未验证,2:已被拒绝)
/// </summary>
public sbyte State { get; set; }
public virtual User User { get; set; } = null!;
}