Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.
//-----------------------------------------------------------------------
// <copyright file="VaultManifest.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 AliasServerDb;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
/// <summary>
/// The current revision of a logical vault manifest. Exactly one row per logical manifest; superseded revisions are
/// archived in <see cref="VaultManifestsHistory"/> before this row is updated in place, so this table can never hold
/// two rows for the same manifest. A user's logical vault is assembled from one or more manifests: the single manifest
/// owned by their personal group, plus any number owned by the shared groups they belong to.
/// </summary>
public class VaultManifest : VaultManifestBase
{
/// <summary>
/// Gets or sets the stable identifier of the logical manifest. Constant across every revision of the manifest.
/// </summary>
[Key]
public Guid ManifestId { get; set; }
/// <summary>
/// Gets or sets the group that owns this manifest.
/// </summary>
public Guid OwnerGroupId { get; set; }
/// <summary>
/// Gets or sets the navigation property to the owning group.
/// </summary>
[ForeignKey("OwnerGroupId")]
public virtual Group OwnerGroup { get; set; } = null!;
}