2017-03-07 23:06:14 -05:00
|
|
|
|
using System;
|
|
|
|
|
|
using Bit.Core.Utilities;
|
|
|
|
|
|
|
2017-03-08 21:45:08 -05:00
|
|
|
|
namespace Bit.Core.Models.Table
|
2017-03-07 23:06:14 -05:00
|
|
|
|
{
|
2017-07-14 09:05:15 -04:00
|
|
|
|
public class Collection : ITableObject<Guid>
|
2017-03-07 23:06:14 -05:00
|
|
|
|
{
|
|
|
|
|
|
public Guid Id { get; set; }
|
|
|
|
|
|
public Guid OrganizationId { 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();
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|