diff options
author | Sergey Chebotar <s.chebotar@gmail.com> | 2023-02-21 07:52:11 +0300 |
---|---|---|
committer | Sergey Chebotar <s.chebotar@gmail.com> | 2023-02-21 07:52:11 +0300 |
commit | 0107d5b518f586bc2172b4e89f0cab7619e76670 (patch) | |
tree | 60a93c8b8c9ebb2bef218280a2ee8d6f4e6a7019 /Migrations/20230221044417_Init.Designer.cs | |
parent | 3c83f9f4b01b5965e04739e5f8accf3235f8f699 (diff) |
Add decription to figure model
Diffstat (limited to 'Migrations/20230221044417_Init.Designer.cs')
-rw-r--r-- | Migrations/20230221044417_Init.Designer.cs | 83 |
1 files changed, 83 insertions, 0 deletions
diff --git a/Migrations/20230221044417_Init.Designer.cs b/Migrations/20230221044417_Init.Designer.cs new file mode 100644 index 0000000..658e6b7 --- /dev/null +++ b/Migrations/20230221044417_Init.Designer.cs @@ -0,0 +1,83 @@ +// <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))] + [Migration("20230221044417_Init")] + 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>("Description") + .IsRequired() + .HasColumnType("TEXT"); + + 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 + } + } +} |