Files
server/src/Core/Models/Table/Cipher.cs

24 lines
702 B
C#
Raw Normal View History

2015-12-08 22:57:38 -05:00
using System;
using Bit.Core.Utilities;
2015-12-08 22:57:38 -05:00
2017-03-08 21:45:08 -05:00
namespace Bit.Core.Models.Table
2015-12-08 22:57:38 -05:00
{
public class Cipher : IDataObject<Guid>
2015-12-08 22:57:38 -05:00
{
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 string Favorites { get; set; }
public string Folders { get; set; }
2015-12-08 22:57:38 -05:00
public DateTime CreationDate { get; internal set; } = DateTime.UtcNow;
public DateTime RevisionDate { get; internal set; } = DateTime.UtcNow;
public void SetNewId()
{
Id = CoreHelpers.GenerateComb();
}
2015-12-08 22:57:38 -05:00
}
}