//
using Housewives.Api.Data;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
#nullable disable
namespace Housewives.Api.Migrations
{
[DbContext(typeof(HousewivesDbContext))]
[Migration("20220906055340_InitialCreate")]
partial class InitialCreate
{
protected override void BuildTargetModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder
.HasAnnotation("ProductVersion", "6.0.8")
.HasAnnotation("Relational:MaxIdentifierLength", 128);
SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder, 1L, 1);
modelBuilder.Entity("Housewives.Api.Entities.Housewife", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"), 1L, 1);
b.Property("ImageUrl")
.IsRequired()
.HasColumnType("nvarchar(max)");
b.Property("Name")
.IsRequired()
.HasColumnType("nvarchar(max)");
b.Property("Series")
.IsRequired()
.HasColumnType("nvarchar(max)");
b.HasKey("Id");
b.ToTable("Housewives");
b.HasData(
new
{
Id = 1,
ImageUrl = "https://i.dailymail.co.uk/1s/2022/06/02/08/58580139-10877237-image-a-10_1654154206127.jpg",
Name = "Chanel Ayan",
Series = "The Real Housewives of Dubai"
},
new
{
Id = 2,
ImageUrl = "https://imgix.bustle.com/uploads/image/2022/6/1/7cbf222b-98cf-4c0b-9643-483ef07f19b9-nup_196331_01313.JPG?w=800&fit=crop&crop=focalpoint&auto=format%2Ccompress&fp-x=0.5787&fp-y=0.22",
Name = "Sara Al Madani",
Series = "The Real Housewives of Dubai"
},
new
{
Id = 3,
ImageUrl = "https://www.bravotv.com/sites/bravo/files/media_mpx/thumbnails/bravo-video.nbcuni.com/image/NBCU_Bravo/561/911/161202_3434774_This_Is_How_Dorit_and_Lisa_Vanderpump_Became.jpg",
Name = "Lisa Vanderpump",
Series = "The Real Housewives of Beverly Hills"
},
new
{
Id = 4,
ImageUrl = "https://static.wikia.nocookie.net/realitytv-girl/images/4/42/Heather_Gay.jpg/revision/latest?cb=20210509144203",
Name = "Heathere Gay",
Series = "The Real Housewives of Salt Lake City"
});
});
modelBuilder.Entity("Housewives.Api.Entities.Quote", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"), 1L, 1);
b.Property("Episode")
.HasColumnType("int");
b.Property("HousewifeId")
.HasColumnType("int");
b.Property("Phrase")
.IsRequired()
.HasColumnType("nvarchar(max)");
b.Property("Season")
.HasColumnType("int");
b.HasKey("Id");
b.ToTable("Quotes");
b.HasData(
new
{
Id = 1,
Episode = 9,
HousewifeId = 1,
Phrase = "But I'm going to enjoy my life just like I was born today.",
Season = 1
},
new
{
Id = 2,
Episode = 11,
HousewifeId = 1,
Phrase = "Be careful who you surround yourself with. You might pick their fashion sense.",
Season = 1
},
new
{
Id = 3,
Episode = 3,
HousewifeId = 2,
Phrase = "You're bleeding on people who did not cut you.",
Season = 1
},
new
{
Id = 4,
Episode = 0,
HousewifeId = 3,
Phrase = "I'm passionate about dogs, just not about crazy bitches.",
Season = 6
},
new
{
Id = 5,
Episode = 0,
HousewifeId = 3,
Phrase = "Life isn't all diamonds and rose, but it should be.",
Season = 3
},
new
{
Id = 6,
Episode = 4,
HousewifeId = 4,
Phrase = "For me, the fairytale is the be seen for exactly who I am, and to still be loved.",
Season = 1
});
});
modelBuilder.Entity("Housewives.Api.Entities.Tag", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Id"), 1L, 1);
b.Property("Name")
.IsRequired()
.HasColumnType("nvarchar(max)");
b.HasKey("Id");
b.ToTable("Tags");
b.HasData(
new
{
Id = 1,
Name = "Advice"
},
new
{
Id = 2,
Name = "Funny"
});
});
#pragma warning restore 612, 618
}
}
}