2022-06-29 19:46:41 -04:00
|
|
|
|
using Bit.Core.Utilities;
|
2017-03-18 00:01:11 -04:00
|
|
|
|
|
2022-08-29 15:53:48 -04:00
|
|
|
|
namespace Bit.Core.Entities
|
2017-03-18 00:01:11 -04:00
|
|
|
|
{
|
2022-08-29 15:53:48 -04:00
|
|
|
|
public class Folder : ITableObject<Guid>
|
2022-08-29 14:53:16 -04:00
|
|
|
|
{
|
2022-08-29 15:53:48 -04:00
|
|
|
|
public Guid Id { get; set; }
|
|
|
|
|
|
public Guid UserId { 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();
|
|
|
|
|
|
}
|
2017-03-18 00:01:11 -04:00
|
|
|
|
}
|
|
|
|
|
|
}
|