//
using System;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
using Weiferl.Databas.EF;
#nullable disable
namespace Weiferl.Databas.EF.Migrations
{
[DbContext(typeof(HardwareShopContext))]
[Migration("20230708180749_added_user")]
partial class added_user
{
///
protected override void BuildTargetModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder
.UseCollation("utf8mb3_general_ci")
.HasAnnotation("ProductVersion", "7.0.8")
.HasAnnotation("Relational:MaxIdentifierLength", 64);
MySqlModelBuilderExtensions.HasCharSet(modelBuilder, "utf8mb3");
modelBuilder.Entity("Weiferl.Databas.EF.Models.Cpu", b =>
{
b.Property("CpuId")
.ValueGeneratedOnAdd()
.HasColumnType("int(11)")
.HasColumnName("Cpu_ID");
b.Property("Hersteller")
.HasMaxLength(10)
.HasColumnType("varchar(10)");
b.Property("KatName")
.HasMaxLength(50)
.HasColumnType("varchar(50)")
.HasColumnName("Kat_Name");
b.Property("Kerne")
.HasColumnType("int(11)");
b.Property("Modell")
.HasMaxLength(50)
.HasColumnType("varchar(50)");
b.Property("Preis")
.HasPrecision(8, 2)
.HasColumnType("decimal(8,2)");
b.Property("Sockel")
.HasMaxLength(50)
.HasColumnType("varchar(50)");
b.Property("Threads")
.HasColumnType("int(11)");
b.HasKey("CpuId")
.HasName("PRIMARY");
b.ToTable("cpus", (string)null);
});
modelBuilder.Entity("Weiferl.Databas.EF.Models.Festplatten", b =>
{
b.Property("FestpId")
.ValueGeneratedOnAdd()
.HasColumnType("int(11)")
.HasColumnName("Festp_ID");
b.Property("Größe")
.HasColumnType("int(11)");
b.Property("Hersteller")
.HasMaxLength(100)
.HasColumnType("varchar(100)");
b.Property("KatName")
.HasMaxLength(50)
.HasColumnType("varchar(50)")
.HasColumnName("Kat_Name");
b.Property("Modell")
.HasMaxLength(100)
.HasColumnType("varchar(100)");
b.Property("Preis")
.HasPrecision(8, 2)
.HasColumnType("decimal(8,2)");
b.HasKey("FestpId")
.HasName("PRIMARY");
b.ToTable("festplatten", (string)null);
});
modelBuilder.Entity("Weiferl.Databas.EF.Models.Grafikkarten", b =>
{
b.Property("GraId")
.ValueGeneratedOnAdd()
.HasColumnType("int(11)")
.HasColumnName("Gra_ID");
b.Property("Chip")
.HasMaxLength(10)
.HasColumnType("varchar(10)");
b.Property("Hersteller")
.HasMaxLength(100)
.HasColumnType("varchar(100)");
b.Property("KatName")
.HasMaxLength(50)
.HasColumnType("varchar(50)")
.HasColumnName("Kat_Name");
b.Property("Modell")
.HasMaxLength(100)
.HasColumnType("varchar(100)");
b.Property("Preis")
.HasPrecision(8, 2)
.HasColumnType("decimal(8,2)");
b.HasKey("GraId")
.HasName("PRIMARY");
b.ToTable("grafikkarten", (string)null);
});
modelBuilder.Entity("Weiferl.Databas.EF.Models.Hersteller", b =>
{
b.Property("HerId")
.ValueGeneratedOnAdd()
.HasColumnType("int(11)")
.HasColumnName("Her_ID");
b.Property("Hersteller1")
.HasMaxLength(100)
.HasColumnType("varchar(100)")
.HasColumnName("Hersteller");
b.HasKey("HerId")
.HasName("PRIMARY");
b.ToTable("hersteller", (string)null);
});
modelBuilder.Entity("Weiferl.Databas.EF.Models.Kategorie", b =>
{
b.Property("KatId")
.ValueGeneratedOnAdd()
.HasColumnType("int(11)")
.HasColumnName("Kat_ID");
b.Property("KatName")
.HasMaxLength(50)
.HasColumnType("varchar(50)")
.HasColumnName("Kat_Name");
b.HasKey("KatId")
.HasName("PRIMARY");
b.ToTable("kategorie", (string)null);
});
modelBuilder.Entity("Weiferl.Databas.EF.Models.Mainboard", b =>
{
b.Property("MainId")
.ValueGeneratedOnAdd()
.HasColumnType("int(11)")
.HasColumnName("Main_ID");
b.Property("Formfaktor")
.HasMaxLength(10)
.HasColumnType("varchar(10)");
b.Property("Hersteller")
.HasMaxLength(50)
.HasColumnType("varchar(50)");
b.Property("KatName")
.HasMaxLength(50)
.HasColumnType("varchar(50)")
.HasColumnName("Kat_Name");
b.Property("Modell")
.HasMaxLength(50)
.HasColumnType("varchar(50)");
b.Property("Preis")
.HasPrecision(8, 2)
.HasColumnType("decimal(8,2)");
b.Property("Sockel")
.HasMaxLength(20)
.HasColumnType("varchar(20)");
b.HasKey("MainId")
.HasName("PRIMARY");
b.ToTable("mainboard", (string)null);
});
modelBuilder.Entity("Weiferl.Databas.EF.Models.Ram", b =>
{
b.Property("RamId")
.ValueGeneratedOnAdd()
.HasColumnType("int(11)")
.HasColumnName("Ram_ID");
b.Property("Größe")
.HasColumnType("int(11)");
b.Property("Hersteller")
.HasMaxLength(50)
.HasColumnType("varchar(50)");
b.Property("KatName")
.HasMaxLength(50)
.HasColumnType("varchar(50)")
.HasColumnName("Kat_Name");
b.Property("Mhz")
.HasColumnType("int(11)");
b.Property("Modell")
.HasMaxLength(50)
.HasColumnType("varchar(50)");
b.Property("Preis")
.HasPrecision(8, 2)
.HasColumnType("decimal(8,2)");
b.HasKey("RamId")
.HasName("PRIMARY");
b.ToTable("ram", (string)null);
});
modelBuilder.Entity("Weiferl.Databas.EF.Models.User", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int");
b.Property("Birthday")
.HasColumnType("datetime(6)");
b.Property("Email")
.IsRequired()
.HasColumnType("longtext");
b.Property("Firstname")
.IsRequired()
.HasColumnType("longtext");
b.Property("IsDeleted")
.HasColumnType("tinyint(1)");
b.Property("Lastname")
.IsRequired()
.HasColumnType("longtext");
b.Property("UserId")
.HasColumnType("char(36)");
b.HasKey("Id");
b.ToTable("User");
});
#pragma warning restore 612, 618
}
}
}