mirror of
https://github.com/bitwarden/server.git
synced 2025-07-01 08:02:49 -05:00
Sso user table, model and repo stubbed out (#837)
* Sso user table, model and repo stubbed out * switch to nullable org id, bigint id * update GetBySsoUserAsync * cleanup migrator file * fix EF user repo * fix pg repo * is `IS NULL` checks * unique indexes * update migration scripts * add another unique index * remove old script
This commit is contained in:
18
src/Core/Models/Table/SsoUser.cs
Normal file
18
src/Core/Models/Table/SsoUser.cs
Normal file
@ -0,0 +1,18 @@
|
||||
using System;
|
||||
|
||||
namespace Bit.Core.Models.Table
|
||||
{
|
||||
public class SsoUser : ITableObject<long>
|
||||
{
|
||||
public long Id { get; set; }
|
||||
public Guid UserId { get; set; }
|
||||
public Guid? OrganizationId { get; set; }
|
||||
public string ExternalId { get; set; }
|
||||
public DateTime CreationDate { get; internal set; } = DateTime.UtcNow;
|
||||
|
||||
public void SetNewId()
|
||||
{
|
||||
// nothing - int will be auto-populated
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user