//
using System;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
using MvcMovie.Data;
namespace MvcMovie.Migrations
{
[DbContext(typeof(MvcMovieContext))]
partial class MvcMovieContextModelSnapshot : ModelSnapshot
{
protected override void BuildModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder
.HasAnnotation("Relational:MaxIdentifierLength", 64)
.HasAnnotation("ProductVersion", "5.0.5");
modelBuilder.Entity("MvcMovie.Models.AppRole", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("varbinary(16)");
b.Property("Name")
.HasColumnType("text");
b.HasKey("Id");
b.ToTable("Roles");
});
modelBuilder.Entity("MvcMovie.Models.AppUser", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("varbinary(16)");
b.Property("AuthenticationType")
.HasColumnType("text");
b.Property("Email")
.HasColumnType("text");
b.Property("EmailConfirmed")
.HasColumnType("tinyint(1)");
b.Property("IsAuthenticated")
.HasColumnType("tinyint(1)");
b.Property("Name")
.HasColumnType("text");
b.Property("NormalizedUserName")
.HasColumnType("text");
b.Property("PasswordHash")
.HasColumnType("text");
b.Property("UserName")
.HasColumnType("text");
b.HasKey("Id");
b.ToTable("Users");
});
modelBuilder.Entity("MvcMovie.Models.Movie", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int");
b.Property("Director")
.IsRequired()
.HasMaxLength(60)
.HasColumnType("varchar(60)");
b.Property("Genre")
.IsRequired()
.HasMaxLength(30)
.HasColumnType("varchar(30)");
b.Property("Title")
.IsRequired()
.HasMaxLength(60)
.HasColumnType("varchar(60)");
b.Property("Year")
.HasColumnType("int");
b.HasKey("Id");
b.ToTable("Movie");
});
#pragma warning restore 612, 618
}
}
}