mirror of
https://github.com/aliasvault/aliasvault.git
synced 2026-03-20 23:52:31 -04:00
56 lines
1.5 KiB
C#
56 lines
1.5 KiB
C#
//-----------------------------------------------------------------------
|
|
// <copyright file="Vault.cs" company="lanedirt">
|
|
// Copyright (c) lanedirt. All rights reserved.
|
|
// Licensed under the MIT 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>
|
|
/// Vault object.
|
|
/// </summary>
|
|
public class Vault
|
|
{
|
|
/// <summary>
|
|
/// Gets or sets Login ID.
|
|
/// </summary>
|
|
[Key]
|
|
public Guid Id { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets user ID foreign key.
|
|
/// </summary>
|
|
[StringLength(255)]
|
|
public string UserId { get; set; } = null!;
|
|
|
|
/// <summary>
|
|
/// Gets or sets foreign key to the AliasVaultUser object.
|
|
/// </summary>
|
|
[ForeignKey("UserId")]
|
|
public virtual AliasVaultUser User { get; set; } = null!;
|
|
|
|
/// <summary>
|
|
/// Gets or sets the encrypted vault blob.
|
|
/// </summary>
|
|
public string VaultBlob { get; set; } = null!;
|
|
|
|
/// <summary>
|
|
/// Gets or sets the vault data model version.
|
|
/// </summary>
|
|
[StringLength(255)]
|
|
public string Version { get; set; } = null!;
|
|
|
|
/// <summary>
|
|
/// Gets or sets created timestamp.
|
|
/// </summary>
|
|
public DateTime CreatedAt { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets updated timestamp.
|
|
/// </summary>
|
|
public DateTime UpdatedAt { get; set; }
|
|
}
|