280 lines
9.6 KiB
C#
280 lines
9.6 KiB
C#
// <auto-generated />
|
|
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
|
|
{
|
|
/// <inheritdoc />
|
|
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<int>("CpuId")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int(11)")
|
|
.HasColumnName("Cpu_ID");
|
|
|
|
b.Property<string>("Hersteller")
|
|
.HasMaxLength(10)
|
|
.HasColumnType("varchar(10)");
|
|
|
|
b.Property<string>("KatName")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasColumnName("Kat_Name");
|
|
|
|
b.Property<int?>("Kerne")
|
|
.HasColumnType("int(11)");
|
|
|
|
b.Property<string>("Modell")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)");
|
|
|
|
b.Property<decimal?>("Preis")
|
|
.HasPrecision(8, 2)
|
|
.HasColumnType("decimal(8,2)");
|
|
|
|
b.Property<string>("Sockel")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)");
|
|
|
|
b.Property<int?>("Threads")
|
|
.HasColumnType("int(11)");
|
|
|
|
b.HasKey("CpuId")
|
|
.HasName("PRIMARY");
|
|
|
|
b.ToTable("cpus", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Weiferl.Databas.EF.Models.Festplatten", b =>
|
|
{
|
|
b.Property<int>("FestpId")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int(11)")
|
|
.HasColumnName("Festp_ID");
|
|
|
|
b.Property<int?>("Größe")
|
|
.HasColumnType("int(11)");
|
|
|
|
b.Property<string>("Hersteller")
|
|
.HasMaxLength(100)
|
|
.HasColumnType("varchar(100)");
|
|
|
|
b.Property<string>("KatName")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasColumnName("Kat_Name");
|
|
|
|
b.Property<string>("Modell")
|
|
.HasMaxLength(100)
|
|
.HasColumnType("varchar(100)");
|
|
|
|
b.Property<decimal?>("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<int>("GraId")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int(11)")
|
|
.HasColumnName("Gra_ID");
|
|
|
|
b.Property<string>("Chip")
|
|
.HasMaxLength(10)
|
|
.HasColumnType("varchar(10)");
|
|
|
|
b.Property<string>("Hersteller")
|
|
.HasMaxLength(100)
|
|
.HasColumnType("varchar(100)");
|
|
|
|
b.Property<string>("KatName")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasColumnName("Kat_Name");
|
|
|
|
b.Property<string>("Modell")
|
|
.HasMaxLength(100)
|
|
.HasColumnType("varchar(100)");
|
|
|
|
b.Property<decimal?>("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<int>("HerId")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int(11)")
|
|
.HasColumnName("Her_ID");
|
|
|
|
b.Property<string>("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<int>("KatId")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int(11)")
|
|
.HasColumnName("Kat_ID");
|
|
|
|
b.Property<string>("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<int>("MainId")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int(11)")
|
|
.HasColumnName("Main_ID");
|
|
|
|
b.Property<string>("Formfaktor")
|
|
.HasMaxLength(10)
|
|
.HasColumnType("varchar(10)");
|
|
|
|
b.Property<string>("Hersteller")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)");
|
|
|
|
b.Property<string>("KatName")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasColumnName("Kat_Name");
|
|
|
|
b.Property<string>("Modell")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)");
|
|
|
|
b.Property<decimal?>("Preis")
|
|
.HasPrecision(8, 2)
|
|
.HasColumnType("decimal(8,2)");
|
|
|
|
b.Property<string>("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<int>("RamId")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int(11)")
|
|
.HasColumnName("Ram_ID");
|
|
|
|
b.Property<int?>("Größe")
|
|
.HasColumnType("int(11)");
|
|
|
|
b.Property<string>("Hersteller")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)");
|
|
|
|
b.Property<string>("KatName")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)")
|
|
.HasColumnName("Kat_Name");
|
|
|
|
b.Property<int?>("Mhz")
|
|
.HasColumnType("int(11)");
|
|
|
|
b.Property<string>("Modell")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("varchar(50)");
|
|
|
|
b.Property<decimal?>("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<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
b.Property<DateTime?>("Birthday")
|
|
.HasColumnType("datetime(6)");
|
|
|
|
b.Property<string>("Email")
|
|
.IsRequired()
|
|
.HasColumnType("longtext");
|
|
|
|
b.Property<string>("Firstname")
|
|
.IsRequired()
|
|
.HasColumnType("longtext");
|
|
|
|
b.Property<bool>("IsDeleted")
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
b.Property<string>("Lastname")
|
|
.IsRequired()
|
|
.HasColumnType("longtext");
|
|
|
|
b.Property<Guid>("UserId")
|
|
.HasColumnType("char(36)");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("User");
|
|
});
|
|
#pragma warning restore 612, 618
|
|
}
|
|
}
|
|
}
|