2023-01-31 15:55:44 +03:00
|
|
|
|
// <auto-generated />
|
|
|
|
|
using System;
|
|
|
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
|
|
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
|
|
|
|
using MyDarling.Models;
|
|
|
|
|
|
|
|
|
|
#nullable disable
|
|
|
|
|
|
|
|
|
|
namespace MyDarling.Migrations
|
|
|
|
|
{
|
|
|
|
|
[DbContext(typeof(DataContext))]
|
2023-02-01 07:49:31 +03:00
|
|
|
|
[Migration("20230201044832_Init")]
|
2023-01-31 15:55:44 +03:00
|
|
|
|
partial class Init
|
|
|
|
|
{
|
|
|
|
|
/// <inheritdoc />
|
|
|
|
|
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
|
|
|
|
{
|
|
|
|
|
#pragma warning disable 612, 618
|
|
|
|
|
modelBuilder.HasAnnotation("ProductVersion", "7.0.2");
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("MyDarling.Models.Figure", b =>
|
|
|
|
|
{
|
|
|
|
|
b.Property<int>("Id")
|
|
|
|
|
.ValueGeneratedOnAdd()
|
|
|
|
|
.HasColumnType("INTEGER");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("FilePath")
|
|
|
|
|
.IsRequired()
|
|
|
|
|
.HasColumnType("TEXT");
|
|
|
|
|
|
|
|
|
|
b.Property<int?>("UnderwearBundleId")
|
|
|
|
|
.HasColumnType("INTEGER");
|
|
|
|
|
|
|
|
|
|
b.HasKey("Id");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("UnderwearBundleId");
|
|
|
|
|
|
|
|
|
|
b.ToTable("Figures");
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("MyDarling.Models.UnderwearBundle", b =>
|
|
|
|
|
{
|
|
|
|
|
b.Property<int>("Id")
|
|
|
|
|
.ValueGeneratedOnAdd()
|
|
|
|
|
.HasColumnType("INTEGER");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Description")
|
|
|
|
|
.IsRequired()
|
|
|
|
|
.HasColumnType("TEXT");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Name")
|
|
|
|
|
.IsRequired()
|
|
|
|
|
.HasColumnType("TEXT");
|
|
|
|
|
|
|
|
|
|
b.Property<decimal>("Price")
|
|
|
|
|
.HasColumnType("TEXT");
|
|
|
|
|
|
|
|
|
|
b.HasKey("Id");
|
|
|
|
|
|
|
|
|
|
b.ToTable("UnderwearBundles");
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("MyDarling.Models.Figure", b =>
|
|
|
|
|
{
|
|
|
|
|
b.HasOne("MyDarling.Models.UnderwearBundle", null)
|
|
|
|
|
.WithMany("Figures")
|
|
|
|
|
.HasForeignKey("UnderwearBundleId");
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("MyDarling.Models.UnderwearBundle", b =>
|
|
|
|
|
{
|
|
|
|
|
b.Navigation("Figures");
|
|
|
|
|
});
|
|
|
|
|
#pragma warning restore 612, 618
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|