mirror of
https://github.com/bitwarden/server.git
synced 2025-04-24 22:32:22 -05:00
21 lines
499 B
C#
21 lines
499 B
C#
using System.ComponentModel.DataAnnotations;
|
|
using Bit.Core.Utilities;
|
|
|
|
namespace Bit.Core.Entities;
|
|
|
|
public class Installation : ITableObject<Guid>
|
|
{
|
|
public Guid Id { get; set; }
|
|
[MaxLength(256)]
|
|
public string Email { get; set; }
|
|
[MaxLength(150)]
|
|
public string Key { get; set; }
|
|
public bool Enabled { get; set; }
|
|
public DateTime CreationDate { get; internal set; } = DateTime.UtcNow;
|
|
|
|
public void SetNewId()
|
|
{
|
|
Id = CoreHelpers.GenerateComb();
|
|
}
|
|
}
|