1
0
mirror of https://github.com/bitwarden/server synced 2025-12-20 18:23:44 +00:00

folder repo

This commit is contained in:
Kyle Spearrin
2017-03-18 00:01:11 -04:00
parent 3e0c0224b5
commit 3932ed5d67
3 changed files with 44 additions and 0 deletions

View File

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