mirror of
https://github.com/bitwarden/server.git
synced 2025-04-06 05:28:15 -05:00
20 lines
515 B
C#
20 lines
515 B
C#
using System;
|
|
using Bit.Core.Utilities;
|
|
|
|
namespace Bit.Core.Domains
|
|
{
|
|
public class Subvault : IDataObject<Guid>
|
|
{
|
|
public Guid Id { get; set; }
|
|
public Guid OrganizationId { get; set; }
|
|
public string Name { get; set; }
|
|
public DateTime CreationDate { get; internal set; } = DateTime.UtcNow;
|
|
public DateTime RevisionDate { get; internal set; } = DateTime.UtcNow;
|
|
|
|
public void SetNewId()
|
|
{
|
|
Id = CoreHelpers.GenerateComb();
|
|
}
|
|
}
|
|
}
|