//-----------------------------------------------------------------------
//
// Copyright (c) lanedirt. All rights reserved.
// Licensed under the MIT license. See LICENSE.md file in the project root for full license information.
//
//-----------------------------------------------------------------------
namespace AliasServerDb;
using System.ComponentModel.DataAnnotations;
using Microsoft.AspNetCore.Identity;
///
/// Alias vault user extending IdentityUser with fields for SRP authentication.
///
public class AliasVaultUser : IdentityUser
{
///
/// Gets or sets the salt used for SRP authentication.
///
[StringLength(100)]
public string Salt { get; set; } = null!;
///
/// Gets or sets the verifier used for SRP authentication.
///
[StringLength(1000)]
public string Verifier { get; set; } = null!;
///
/// Gets or sets created timestamp.
///
public DateTime CreatedAt { get; set; }
///
/// Gets or sets updated timestamp.
///
public DateTime UpdatedAt { get; set; }
///
/// Gets or sets the collection of vaults.
///
public virtual ICollection Vaults { get; set; } = [];
///
/// Gets or sets the collection of EmailClaims.
///
public virtual ICollection EmailClaims { get; set; } = [];
///
/// Gets or sets the collection of EncryptionKeys.
///
public virtual ICollection EncryptionKeys { get; set; } = [];
}