51 lines
1.4 KiB
C#
51 lines
1.4 KiB
C#
// <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("20190124230424_InitialCreate")]
|
|
partial class InitialCreate
|
|
{
|
|
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
|
|
}
|
|
}
|
|
}
|