mirror of
https://github.com/bitwarden/server
synced 2025-12-16 16:23:31 +00:00
21 lines
579 B
C#
21 lines
579 B
C#
using System;
|
|
using Bit.Core.Utilities;
|
|
|
|
namespace Bit.Core.Models.Table
|
|
{
|
|
public class CollectionUser : IDataObject<Guid>
|
|
{
|
|
public Guid Id { get; set; }
|
|
public Guid CollectionId { get; set; }
|
|
public Guid OrganizationUserId { get; set; }
|
|
public bool ReadOnly { get; set; }
|
|
public DateTime CreationDate { get; internal set; } = DateTime.UtcNow;
|
|
public DateTime RevisionDate { get; internal set; } = DateTime.UtcNow;
|
|
|
|
public void SetNewId()
|
|
{
|
|
Id = CoreHelpers.GenerateComb();
|
|
}
|
|
}
|
|
}
|