//-----------------------------------------------------------------------
//
// Copyright (c) aliasvault. All rights reserved.
// Licensed under the AGPLv3 license. See LICENSE.md file in the project root for full license information.
//
//-----------------------------------------------------------------------
namespace AliasClientDb;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using AliasClientDb.Abstracts;
///
/// The alias entity.
///
public class Alias : SyncableEntity
{
///
/// Gets or sets the alias primary key.
///
[Key]
public Guid Id { get; set; }
///
/// Gets or sets the gender.
///
[StringLength(255)]
[Column(TypeName = "VARCHAR")]
public string? Gender { get; set; }
///
/// Gets or sets the first name.
///
[StringLength(255)]
[Column(TypeName = "VARCHAR")]
public string? FirstName { get; set; }
///
/// Gets or sets the last name.
///
[StringLength(255)]
[Column(TypeName = "VARCHAR")]
public string? LastName { get; set; }
///
/// Gets or sets the nickname.
///
[StringLength(255)]
[Column(TypeName = "VARCHAR")]
public string? NickName { get; set; }
///
/// Gets or sets the birthdate.
///
public DateTime BirthDate { get; set; }
///
/// Gets or sets the generated email.
///
[StringLength(255)]
public string? Email { get; set; }
///
/// Gets or sets the credential objects.
///
public virtual ICollection Credentials { get; set; } = [];
}