//-----------------------------------------------------------------------
//
// 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;
///
/// Password entity.
///
public class Password : SyncableEntity
{
///
/// Gets or sets the password primary key.
///
[Key]
public Guid Id { get; set; }
///
/// Gets or sets the password value.
///
[StringLength(255)]
public string? Value { get; set; }
///
/// Gets or sets the credential foreign key.
///
public Guid CredentialId { get; set; }
///
/// Gets or sets the credential navigation property.
///
[ForeignKey("CredentialId")]
public virtual Credential Credential { get; set; } = null!;
}