using System.ComponentModel.DataAnnotations; namespace Bit.Core.Entities; public class SsoUser : ITableObject { 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; } }