mirror of
https://github.com/bitwarden/server.git
synced 2025-04-24 22:32:22 -05:00
20 lines
473 B
C#
20 lines
473 B
C#
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace Bit.Core.Entities;
|
|
|
|
public class SsoUser : ITableObject<long>
|
|
{
|
|
public long Id { get; set; }
|
|
public Guid UserId { get; set; }
|
|
public Guid? OrganizationId { get; set; }
|
|
[MaxLength(50)]
|
|
public string ExternalId { get; set; }
|
|
public DateTime CreationDate { get; internal set; } = DateTime.UtcNow;
|
|
|
|
public void SetNewId()
|
|
{
|
|
// int will be auto-populated
|
|
Id = 0;
|
|
}
|
|
}
|