//
using System;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
using OFBButte.Database;
namespace OFBButte.Database.Migrations
{
[DbContext(typeof(OFBContext))]
partial class OFBContextModelSnapshot : ModelSnapshot
{
protected override void BuildModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder
.HasAnnotation("ProductVersion", "2.2.6-servicing-10079")
.HasAnnotation("Relational:MaxIdentifierLength", 64);
modelBuilder.Entity("OFBButte.Entities.EmailVerificationCode", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
b.Property("Code");
b.Property("CreatedDate");
b.HasKey("Id");
b.ToTable("EmailVerificationCodes");
});
modelBuilder.Entity("OFBButte.Entities.MissionaryChild", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
b.Property("MissionarySupportId");
b.Property("Name");
b.HasKey("Id");
b.HasIndex("MissionarySupportId");
b.ToTable("MissionaryChild");
});
modelBuilder.Entity("OFBButte.Entities.MissionaryCollegeRecommendation", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
b.Property("MissionarySupportId");
b.Property("Name");
b.HasKey("Id");
b.HasIndex("MissionarySupportId");
b.ToTable("MissionaryCollegeRecommendation");
});
modelBuilder.Entity("OFBButte.Entities.MissionarySupport", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
b.Property("AdmittedWrong");
b.Property("Alcohol");
b.Property("AloneOrTeam");
b.Property("BibleVersionOpinion");
b.Property("BibleVersionsUsed");
b.Property("BillsOnTime");
b.Property("CallToField");
b.Property("CellPhone");
b.Property("Charasmaticism");
b.Property("ChildrenSchool");
b.Property("ContemporaryMusic");
b.Property("CorrectWrongOfAnotherMissionary");
b.Property("CurrentMonthlySupport");
b.Property("DailyBible");
b.Property("Dance");
b.Property("Divorced");
b.Property("EvaluationOfNationals");
b.Property("FellowshipAssociation");
b.Property("FemaleDressStandard");
b.Property("FemaleShorts");
b.Property("FemaleSlacks");
b.Property("FieldOfService");
b.Property("FieldPhone");
b.Property("FinancialStatementPrevYear");
b.Property("Fundamentalist");
b.Property("GroundsForRemarry");
b.Property("HomePhone");
b.Property("LateBillActionTaken");
b.Property("LateBills");
b.Property("MaleHair");
b.Property("MarryADivorcee");
b.Property("MasonicLodge");
b.Property("MonthlySupportNeeded");
b.Property("MovieTheaters");
b.Property("Name");
b.Property("NumberLedToChrist");
b.Property("NumberWeeklyTracts");
b.Property("NumberWitnessedTo");
b.Property("Plans");
b.Property("PotentialHarvest");
b.Property("Predestination");
b.Property("RateOfSuccess");
b.Property("RepentanceDefinition");
b.Property("RepentanceNecessary");
b.Property("RestAndRelaxation");
b.Property("SendingChurch");
b.Property("Smoking");
b.Property("SwimmingClothing");
b.Property("Television");
b.Property("Testimony");
b.Property("TimeInCountry");
b.Property("Tongues");
b.Property("WifesName");
b.Property("WorldlyMusic");
b.HasKey("Id");
b.ToTable("MissionarySupportForms");
});
modelBuilder.Entity("OFBButte.Entities.PasswordResetCode", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
b.Property("Code");
b.Property("CreatedDate");
b.HasKey("Id");
b.ToTable("PasswordResetCodes");
});
modelBuilder.Entity("OFBButte.Entities.Profile", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
b.Property("City");
b.Property("Country");
b.Property("FirstName");
b.Property("LastName");
b.Property("ModifiedDate");
b.Property("ProfileFederationCodeId");
b.Property("State");
b.Property("Street");
b.Property("Zip");
b.HasKey("Id");
b.HasIndex("ProfileFederationCodeId");
b.ToTable("Profiles");
});
modelBuilder.Entity("OFBButte.Entities.ProfileFederationCode", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
b.Property("Code");
b.Property("CreatedDate");
b.HasKey("Id");
b.ToTable("ProfileFederationCodes");
});
modelBuilder.Entity("OFBButte.Entities.User", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd();
b.Property("CreatedDate");
b.Property("DeletedDate");
b.Property("Email")
.IsRequired();
b.Property("EmailVerificationCodeId");
b.Property("EmailVerifiedDate");
b.Property("PassswordResetCodeId");
b.Property("Password")
.IsRequired();
b.Property("ProfileId");
b.HasKey("Id");
b.HasIndex("Email");
b.HasIndex("EmailVerificationCodeId");
b.HasIndex("PassswordResetCodeId");
b.HasIndex("ProfileId");
b.ToTable("Users");
});
modelBuilder.Entity("OFBButte.Entities.MissionaryChild", b =>
{
b.HasOne("OFBButte.Entities.MissionarySupport")
.WithMany("Children")
.HasForeignKey("MissionarySupportId");
});
modelBuilder.Entity("OFBButte.Entities.MissionaryCollegeRecommendation", b =>
{
b.HasOne("OFBButte.Entities.MissionarySupport")
.WithMany("CollegeRecommendations")
.HasForeignKey("MissionarySupportId");
});
modelBuilder.Entity("OFBButte.Entities.Profile", b =>
{
b.HasOne("OFBButte.Entities.ProfileFederationCode", "ProfileFederationCode")
.WithMany()
.HasForeignKey("ProfileFederationCodeId");
});
modelBuilder.Entity("OFBButte.Entities.User", b =>
{
b.HasOne("OFBButte.Entities.EmailVerificationCode", "EmailVerificationCode")
.WithMany()
.HasForeignKey("EmailVerificationCodeId");
b.HasOne("OFBButte.Entities.PasswordResetCode", "PassswordResetCode")
.WithMany()
.HasForeignKey("PassswordResetCodeId");
b.HasOne("OFBButte.Entities.Profile", "Profile")
.WithMany()
.HasForeignKey("ProfileId");
});
#pragma warning restore 612, 618
}
}
}