//
using System;
using BrightGlimmer.Data;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
namespace BrightGlimmer.Data.Migrations
{
[DbContext(typeof(SqliteContext))]
[Migration("20190420001348_CreateDatabase")]
partial class CreateDatabase
{
protected override void BuildTargetModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder
.HasAnnotation("ProductVersion", "2.2.4-servicing-10062");
modelBuilder.Entity("BrightGlimmer.Data.Domain.Phone", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
b.Property("AreaCode");
b.Property("Number");
b.Property("StudentId");
b.Property("Type");
b.HasKey("Id");
b.HasIndex("StudentId");
b.ToTable("Phone");
});
modelBuilder.Entity("BrightGlimmer.Data.Domain.Student", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
b.Property("Email");
b.Property("FirstName");
b.Property("LastName");
b.Property("MiddleName");
b.HasKey("Id");
b.ToTable("Students");
});
modelBuilder.Entity("BrightGlimmer.Data.Domain.Phone", b =>
{
b.HasOne("BrightGlimmer.Data.Domain.Student")
.WithMany("Phones")
.HasForeignKey("StudentId");
});
#pragma warning restore 612, 618
}
}
}