feat: add payment sdk and tenant secret foundation
This commit is contained in:
@@ -11,6 +11,18 @@ public sealed class TenantAuthProvider : AuditableTenantEntity
|
||||
public JsonElement ConfigPublic { get; set; } = JsonDefaults.Object();
|
||||
}
|
||||
|
||||
public sealed class TenantSecret : AuditableTenantEntity
|
||||
{
|
||||
public string Purpose { get; set; } = string.Empty;
|
||||
public string Provider { get; set; } = string.Empty;
|
||||
public string SecretKey { get; set; } = string.Empty;
|
||||
public string SecretRef { get; set; } = string.Empty;
|
||||
public TenantSecretStatus Status { get; set; } = TenantSecretStatus.Active;
|
||||
public JsonElement SecretPayload { get; set; } = JsonDefaults.Object();
|
||||
public DateTimeOffset? RotatedAt { get; set; }
|
||||
public DateTimeOffset? ExpiresAt { get; set; }
|
||||
}
|
||||
|
||||
public sealed class SmsVerificationCode : Entity
|
||||
{
|
||||
public Guid TenantId { get; set; }
|
||||
@@ -140,6 +152,7 @@ public sealed class TenantStudentFollowup : AuditableTenantEntity
|
||||
}
|
||||
|
||||
public enum TenantAuthProviderStatus { Active, Disabled, Testing }
|
||||
public enum TenantSecretStatus { Active, Disabled, Rotating }
|
||||
public enum SmsPurpose { Login, BindPhone, ResetPassword }
|
||||
public enum SmsVerificationStatus { Pending, Sent, Verified, Expired, Blocked }
|
||||
public enum AuthLoginResult { Sent, Success, Failed, Blocked }
|
||||
|
||||
Reference in New Issue
Block a user