Updated DB Schema and added new initial create

This commit is contained in:
2019-01-30 22:49:01 +01:00
parent 273b960979
commit 15e2a650b9
14 changed files with 188 additions and 84 deletions

View File

@@ -17,7 +17,7 @@ namespace Tv7Playlist.Data
var entityTypeBuilder = modelBuilder.Entity<PlaylistEntry>();
entityTypeBuilder.HasKey(e => e.Id);
entityTypeBuilder.HasIndex(e => e.TrackNumber).IsUnique();
entityTypeBuilder.HasIndex(e => e.ChannelNumberImport).IsUnique();
entityTypeBuilder.HasIndex(e => e.Name);
}
}