Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.
//-----------------------------------------------------------------------
// <copyright file="Setting.cs" company="aliasvault">
// Copyright (c) aliasvault. All rights reserved.
// Licensed under the AGPLv3 license. See LICENSE.md file in the project root for full license information.
// </copyright>
//-----------------------------------------------------------------------
namespace AliasClientDb;
using System.ComponentModel.DataAnnotations;
using AliasClientDb.Abstracts;
/// <summary>
/// A single setting, scoped to the manifest it belongs to.
/// </summary>
public class Setting : ManifestScopedEntity
{
/// <summary>
/// Gets or sets the setting key, which names the setting within its manifest.
/// </summary>
[Key]
[StringLength(255)]
public string Key { get; set; } = null!;
/// <summary>
/// Gets or sets the setting value. The field type is a string, but it can be used to store any type of data
/// via serialization.
/// </summary>
public string? Value { get; set; }
}