72 lines
2.3 KiB
C#
72 lines
2.3 KiB
C#
// <auto-generated />
|
|
using Microsoft.EntityFrameworkCore;
|
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
|
using UTB.Eshop.Web.Models.Database;
|
|
|
|
namespace UTB.Eshop.Web.Migrations.MySql
|
|
{
|
|
[DbContext(typeof(EshopDbContext))]
|
|
[Migration("20211108072118_MySql_1.0.1")]
|
|
partial class MySql_101
|
|
{
|
|
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
|
{
|
|
#pragma warning disable 612, 618
|
|
modelBuilder
|
|
.HasAnnotation("Relational:MaxIdentifierLength", 64)
|
|
.HasAnnotation("ProductVersion", "5.0.11");
|
|
|
|
modelBuilder.Entity("UTB.Eshop.Web.Models.Entity.CarouselItem", b =>
|
|
{
|
|
b.Property<int>("ID")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("ImageAlt")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)");
|
|
|
|
b.Property<string>("ImageSource")
|
|
.IsRequired()
|
|
.HasMaxLength(255)
|
|
.HasColumnType("varchar(255)");
|
|
|
|
b.HasKey("ID");
|
|
|
|
b.ToTable("CarouselItem");
|
|
});
|
|
|
|
modelBuilder.Entity("UTB.Eshop.Web.Models.Entity.Product", b =>
|
|
{
|
|
b.Property<int>("ID")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("Description")
|
|
.IsRequired()
|
|
.HasColumnType("longtext");
|
|
|
|
b.Property<string>("ImageSource")
|
|
.HasColumnType("longtext");
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasColumnType("longtext");
|
|
|
|
b.Property<double>("Price")
|
|
.HasColumnType("double");
|
|
|
|
b.Property<int>("Quantity")
|
|
.HasColumnType("int");
|
|
|
|
b.HasKey("ID");
|
|
|
|
b.ToTable("Product");
|
|
});
|
|
#pragma warning restore 612, 618
|
|
}
|
|
}
|
|
}
|