mirror of
https://github.com/bitwarden/server
synced 2025-12-23 11:43:23 +00:00
20 lines
523 B
C#
20 lines
523 B
C#
using System;
|
|
using Bit.Core.Utilities;
|
|
|
|
namespace Bit.Core.Models.Table
|
|
{
|
|
public class Collection : ITableObject<Guid>
|
|
{
|
|
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();
|
|
}
|
|
}
|
|
}
|