added new fields to the playlist entry, migrations and started with the api controller to manage the list

This commit is contained in:
2019-01-24 23:14:07 +01:00
parent 6920d410b5
commit 6c6d107550
8 changed files with 221 additions and 7 deletions

View File

@@ -0,0 +1,50 @@
// <auto-generated />
using System;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
using Tv7Playlist.Data;
namespace Tv7Playlist.Data.Migrations
{
[DbContext(typeof(PlaylistContext))]
[Migration("20190124221302_AddedEnabledAvailableNameOverride")]
partial class AddedEnabledAvailableNameOverride
{
protected override void BuildTargetModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder
.HasAnnotation("ProductVersion", "2.2.0-rtm-35687");
modelBuilder.Entity("Tv7Playlist.Data.PlaylistEntry", b =>
{
b.Property<Guid>("Id")
.ValueGeneratedOnAdd();
b.Property<bool>("IsAvailable");
b.Property<bool>("IsEnabled");
b.Property<string>("Name");
b.Property<string>("NameOverride");
b.Property<int>("TrackNumber");
b.Property<string>("Url");
b.HasKey("Id");
b.HasIndex("Name");
b.HasIndex("TrackNumber")
.IsUnique();
b.ToTable("PlaylistEntries");
});
#pragma warning restore 612, 618
}
}
}