mirror of
https://github.com/bitwarden/server.git
synced 2025-04-29 08:42:19 -05:00

* 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
22 lines
841 B
C#
22 lines
841 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Threading.Tasks;
|
|
using Bit.Core.Models.Data;
|
|
using Bit.Core.Models.Table;
|
|
|
|
namespace Bit.Core.Repositories
|
|
{
|
|
public interface IUserRepository : IRepository<User, Guid>
|
|
{
|
|
Task<User> GetByEmailAsync(string email);
|
|
Task<User> GetBySsoUserAsync(string externalId, Guid? organizationId);
|
|
Task<UserKdfInformation> GetKdfInformationByEmailAsync(string email);
|
|
Task<ICollection<User>> SearchAsync(string email, int skip, int take);
|
|
Task<ICollection<User>> GetManyByPremiumAsync(bool premium);
|
|
Task<string> GetPublicKeyAsync(Guid id);
|
|
Task<DateTime> GetAccountRevisionDateAsync(Guid id);
|
|
Task UpdateStorageAsync(Guid id);
|
|
Task UpdateRenewalReminderDateAsync(Guid id, DateTime renewalReminderDate);
|
|
}
|
|
}
|