1
0
mirror of https://github.com/bitwarden/server.git synced 2025-07-03 17:12:49 -05:00

added groups apis

This commit is contained in:
Kyle Spearrin
2017-05-08 14:08:44 -04:00
parent a03c19d693
commit fdf7546f33
16 changed files with 323 additions and 7 deletions

View File

@ -0,0 +1,19 @@
using System;
using Bit.Core.Utilities;
namespace Bit.Core.Models.Table
{
public class Group : IDataObject<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();
}
}
}