//----------------------------------------------------------------------- // // 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 AliasClientDb.Abstracts; /// /// The EncryptionKey entity. /// public class EncryptionKey : SyncableEntity { /// /// Gets or sets the encryption key primary key. /// [Key] public Guid Id { get; set; } /// /// Gets or sets the public key. /// [StringLength(2000)] public string PublicKey { get; set; } = null!; /// /// Gets or sets the private key. /// [StringLength(2000)] public string PrivateKey { get; set; } = null!; /// /// Gets or sets a value indicating whether this public/private key is the primary key to use by default. /// public bool IsPrimary { get; set; } }