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

21 lines
570 B
C#
Raw Normal View History

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; }
2019-03-07 15:18:27 -05:00
public string ExternalId { get; set; }
2017-03-07 23:06:14 -05:00
public DateTime CreationDate { get; internal set; } = DateTime.UtcNow;
public DateTime RevisionDate { get; internal set; } = DateTime.UtcNow;
public void SetNewId()
{
Id = CoreHelpers.GenerateComb();
}
}
}