Finished #633 (First part of the queuing)

This commit is contained in:
Jamie.Rees 2016-11-08 14:15:33 +00:00
commit 2bd7ece9d0
10 changed files with 460 additions and 155 deletions

View file

@ -38,5 +38,12 @@ namespace PlexRequests.Store.Models
public byte[] Content { get; set; }
public FaultType FaultType { get; set; }
}
public enum FaultType
{
RequestFault,
MissingInformation
}
}

View file

@ -138,6 +138,7 @@ CREATE TABLE IF NOT EXISTS RequestQueue
Id INTEGER PRIMARY KEY AUTOINCREMENT,
PrimaryIdentifier INTEGER NOT NULL,
Type INTEGER NOT NULL,
FaultType INTEGER NOT NULL,
Content BLOB NOT NULL
);
CREATE UNIQUE INDEX IF NOT EXISTS PlexUsers_Id ON PlexUsers (Id);