1
0
mirror of https://github.com/bitwarden/server.git synced 2025-05-22 12:04:27 -05:00
2017-02-28 22:51:29 -05:00

23 lines
643 B
C#

using System;
using Bit.Core.Utilities;
namespace Bit.Core.Domains
{
public class Cipher : IDataObject<Guid>
{
public Guid Id { get; set; }
public Guid UserId { get; set; }
public Guid? FolderId { get; set; }
public Enums.CipherType Type { get; set; }
public bool Favorite { 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();
}
}
}