using System; using Bit.Core.Utilities; namespace Bit.Core.Models.Table { public class Cipher : IDataObject { public Guid Id { get; set; } public Guid? UserId { get; set; } public Guid? OrganizationId { get; set; } public Enums.CipherType Type { get; set; } public string Data { get; set; } public DateTime CreationDate { get; internal set; } = DateTime.UtcNow; public DateTime RevisionDate { get; internal set; } = DateTime.UtcNow; public void SetNewId() { Id = CoreHelpers.GenerateComb(); } } }