mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-21 13:53:19 -07:00
Added User Management support for Emby #435
This commit is contained in:
parent
4feb3cd462
commit
4193cb88fd
23 changed files with 354 additions and 118 deletions
|
@ -32,7 +32,7 @@ namespace Ombi.Store.Models.Emby
|
|||
[Table(nameof(EmbyUsers))]
|
||||
public class EmbyUsers : Entity
|
||||
{
|
||||
public string PlexUserId { get; set; }
|
||||
public string EmbyUserId { get; set; }
|
||||
public string UserAlias { get; set; }
|
||||
public int Permissions { get; set; }
|
||||
public int Features { get; set; }
|
||||
|
|
|
@ -33,7 +33,7 @@ using Ombi.Helpers;
|
|||
|
||||
namespace Ombi.Store.Repository
|
||||
{
|
||||
public class BaseExternalUserRepository<T> : BaseGenericRepository<T>, IExternalUserRepository<T> where T : class
|
||||
public class BaseExternalUserRepository<T> : BaseGenericRepository<T>, IExternalUserRepository<T> where T : Entity
|
||||
{
|
||||
public BaseExternalUserRepository(ISqliteConfiguration config, ICacheProvider cache) : base(config,cache)
|
||||
{
|
||||
|
|
|
@ -5,7 +5,7 @@ using System.Threading.Tasks;
|
|||
|
||||
namespace Ombi.Store.Repository
|
||||
{
|
||||
public interface IExternalUserRepository<T> where T : class
|
||||
public interface IExternalUserRepository<T> where T : Entity
|
||||
{
|
||||
T Get(string id);
|
||||
T Get(int id);
|
||||
|
|
|
@ -128,7 +128,7 @@ CREATE UNIQUE INDEX IF NOT EXISTS PlexUsers_Id ON PlexUsers (Id);
|
|||
CREATE TABLE IF NOT EXISTS EmbyUsers
|
||||
(
|
||||
Id INTEGER PRIMARY KEY AUTOINCREMENT,
|
||||
PlexUserId varchar(100) NOT NULL,
|
||||
EmbyUserId varchar(100) NOT NULL,
|
||||
UserAlias varchar(100) NOT NULL,
|
||||
Permissions INTEGER,
|
||||
Features INTEGER,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue