同步数据模型和数据库对应关系2
continuous-integration/drone/push Build is passing

This commit is contained in:
hang
2024-09-19 23:45:43 +08:00
parent 19f4385055
commit 42e4fe59ec
73 changed files with 1760 additions and 1934 deletions
+13 -16
View File
@@ -1,29 +1,26 @@
using IRaCIS.Core.Domain.Share;
using Microsoft.EntityFrameworkCore;
using System;
using System.ComponentModel.DataAnnotations.Schema;
namespace IRaCIS.Core.Domain.Models
namespace IRaCIS.Core.Domain.Models;
[Comment("后台 - 验证码记录")]
[Table("VerificationCode")]
public class VerificationCode : BaseAddAuditEntity
{
[Table("VerificationCode")]
public class VerificationCode:BaseAddAuditEntity
{
public Guid UserId { get; set; } = Guid.Empty;
//验证码
public string Code { get; set; } = string.Empty;
public Guid UserId { get; set; } = Guid.Empty;
//什么类型的验证码 邮箱|手机
public string Code { get; set; } = string.Empty;
public VerifyType CodeType { get; set; }
[Comment("邮箱|手机")]
public VerifyType CodeType { get; set; }
public bool HasSend { get; set; }
public bool HasSend { get; set; }
//发送的邮箱或者手机
public string EmailOrPhone { get; set; }=string.Empty;
public string EmailOrPhone { get; set; } = string.Empty;
//过期时间
public DateTime ExpirationTime { get; set; }
public DateTime ExpirationTime { get; set; }
}
}