mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-20 21:33:15 -07:00
Some more work. Need to stop the form submitting on a request
This commit is contained in:
parent
9a78f790a6
commit
96a3970a53
7 changed files with 106 additions and 8 deletions
|
@ -58,6 +58,7 @@
|
|||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="SettingsModel.cs" />
|
||||
<Compile Include="GenericRepository.cs" />
|
||||
<Compile Include="RequestedModel.cs" />
|
||||
<Compile Include="UserRepository.cs" />
|
||||
<Compile Include="Sql.Designer.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
|
|
18
RequestPlex.Store/RequestedModel.cs
Normal file
18
RequestPlex.Store/RequestedModel.cs
Normal file
|
@ -0,0 +1,18 @@
|
|||
using Dapper.Contrib.Extensions;
|
||||
|
||||
namespace RequestPlex.Store
|
||||
{
|
||||
[Table("Requested")]
|
||||
public class RequestedModel : Entity
|
||||
{
|
||||
// ReSharper disable once IdentifierTypo
|
||||
public int Tmdbid { get; set; }
|
||||
public RequestType Type { get; set; }
|
||||
}
|
||||
|
||||
public enum RequestType
|
||||
{
|
||||
Movie,
|
||||
TvShow
|
||||
}
|
||||
}
|
|
@ -12,4 +12,11 @@ CREATE TABLE IF NOT EXISTS Settings
|
|||
(
|
||||
Id INTEGER PRIMARY KEY AUTOINCREMENT,
|
||||
Port INTEGER NOT NULL
|
||||
);
|
||||
|
||||
CREATE TABLE IF NOT EXISTS Requested
|
||||
(
|
||||
Id INTEGER PRIMARY KEY AUTOINCREMENT,
|
||||
Type INTEGER NOT NULL,
|
||||
Tmdbid INTEGER NOT NULL
|
||||
);
|
Loading…
Add table
Add a link
Reference in a new issue