mirror of
https://github.com/bitwarden/server
synced 2025-12-17 00:33:23 +00:00
22 lines
612 B
C#
22 lines
612 B
C#
using System;
|
|
using Bit.Core.Utilities;
|
|
|
|
namespace Bit.Core.Models.Table
|
|
{
|
|
public class Cipher : IDataObject<Guid>
|
|
{
|
|
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();
|
|
}
|
|
}
|
|
}
|