ChouBox/ChouBox.Model/Entities/UserVerificationCodes.cs
2025-04-24 00:57:14 +08:00

71 lines
1.6 KiB
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;
namespace ChouBox.Model.Entities;
/// <summary>
/// 用户验证码表
/// </summary>
public partial class UserVerificationCodes
{
/// <summary>
/// 主键ID
/// </summary>
public ulong Id { get; set; }
/// <summary>
/// 用户ID可为空表示未登录用户
/// </summary>
public ulong? UserId { get; set; }
/// <summary>
/// 账号(手机号/邮箱)
/// </summary>
public string Account { get; set; } = null!;
/// <summary>
/// 验证码
/// </summary>
public string Code { get; set; } = null!;
/// <summary>
/// 验证码类型1-注册2-登录3-找回密码4-修改手机5-修改邮箱6-其他
/// </summary>
public sbyte CodeType { get; set; }
/// <summary>
/// 发送渠道sms-短信email-邮件
/// </summary>
public string Channel { get; set; } = null!;
/// <summary>
/// 请求IP地址
/// </summary>
public string? IpAddress { get; set; }
/// <summary>
/// 状态0-未使用1-已使用2-已失效
/// </summary>
public sbyte Status { get; set; }
/// <summary>
/// 创建时间
/// </summary>
public DateTime CreatedAt { get; set; }
/// <summary>
/// 更新时间
/// </summary>
public DateTime UpdatedAt { get; set; }
/// <summary>
/// 过期时间
/// </summary>
public DateTime ExpiredAt { get; set; }
/// <summary>
/// 使用时间
/// </summary>
public DateTime? UsedAt { get; set; }
}