1
0
mirror of https://github.com/bitwarden/server.git synced 2025-04-05 05:00:19 -05:00
bitwarden/util/Seeder/Services/IDatabaseService.cs

15 lines
408 B
C#

using Bit.Core.Entities;
using Bit.Core.Vault.Entities;
namespace Bit.Seeder.Services;
public interface IDatabaseService
{
Task ClearDatabaseAsync();
Task SaveUsersAsync(IEnumerable<User> users);
Task SaveCiphersAsync(IEnumerable<Cipher> ciphers);
Task<List<User>> GetUsersAsync();
Task<List<Cipher>> GetCiphersAsync();
Task<List<Cipher>> GetCiphersByUserIdAsync(Guid userId);
}