mirror of
https://github.com/bitwarden/server.git
synced 2025-05-29 23:34:53 -05:00

* [PM-19282] Update SsoUser ExternalId column size to 300 * [PM-19282] Add migration to update SsoUser ExternalId column size to 300 for MySQL, PostgreSQL, and SQLite * [PM-19282] Update SsoUser ExternalId column size conditionally based on existing schema * Bumped date on migration script name
21 lines
504 B
C#
21 lines
504 B
C#
using System.ComponentModel.DataAnnotations;
|
|
using Bit.Core.Entities;
|
|
|
|
namespace Bit.Core.Auth.Entities;
|
|
|
|
public class SsoUser : ITableObject<long>
|
|
{
|
|
public long Id { get; set; }
|
|
public Guid UserId { get; set; }
|
|
public Guid? OrganizationId { get; set; }
|
|
[MaxLength(300)]
|
|
public string ExternalId { get; set; }
|
|
public DateTime CreationDate { get; internal set; } = DateTime.UtcNow;
|
|
|
|
public void SetNewId()
|
|
{
|
|
// int will be auto-populated
|
|
Id = 0;
|
|
}
|
|
}
|