38 lines
961 B
C#
38 lines
961 B
C#
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace CampusErrand.Models;
|
|
|
|
/// <summary>
|
|
/// 跑腿认证表
|
|
/// </summary>
|
|
public class RunnerCertification
|
|
{
|
|
[Key]
|
|
public int Id { get; set; }
|
|
|
|
/// <summary>用户 ID</summary>
|
|
public int UserId { get; set; }
|
|
|
|
/// <summary>真实姓名</summary>
|
|
[MaxLength(32)]
|
|
public string RealName { get; set; } = string.Empty;
|
|
|
|
/// <summary>手机号</summary>
|
|
[MaxLength(20)]
|
|
public string Phone { get; set; } = string.Empty;
|
|
|
|
/// <summary>状态</summary>
|
|
public CertificationStatus Status { get; set; } = CertificationStatus.Pending;
|
|
|
|
/// <summary>申请时间</summary>
|
|
public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
|
|
|
|
/// <summary>审核时间</summary>
|
|
public DateTime? ReviewedAt { get; set; }
|
|
|
|
// 导航属性
|
|
[ForeignKey(nameof(UserId))]
|
|
public User? User { get; set; }
|
|
}
|