// using System; using KanSan.Base; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; namespace KanSan.Base.Migrations { [DbContext(typeof(KanSanContext))] [Migration("20200221084801_InitialCommit")] partial class InitialCommit { protected override void BuildTargetModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder .HasAnnotation("ProductVersion", "3.1.1"); modelBuilder.Entity("KanSan.Base.Models.Baustelle", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property("BaustelleNummer") .HasColumnType("TEXT"); b.Property("GuidNr") .HasColumnType("TEXT"); b.Property("OrtTeil") .HasColumnType("TEXT"); b.Property("ProjektID") .HasColumnType("INTEGER"); b.HasKey("ID"); b.HasIndex("ProjektID"); b.ToTable("Baustelle"); }); modelBuilder.Entity("KanSan.Base.Models.Kunde", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property("GuidNr") .HasColumnType("TEXT"); b.Property("Nachname") .HasColumnType("TEXT"); b.Property("Ort") .HasColumnType("TEXT"); b.Property("PLZ") .HasColumnType("TEXT"); b.Property("Strasse") .HasColumnType("TEXT"); b.Property("Vorname") .HasColumnType("TEXT"); b.HasKey("ID"); b.ToTable("Kunden"); }); modelBuilder.Entity("KanSan.Base.Models.Projekt", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property("GuidNr") .HasColumnType("TEXT"); b.Property("KundeID") .HasColumnType("INTEGER"); b.Property("Ort") .HasColumnType("TEXT"); b.Property("Projektnummer") .HasColumnType("TEXT"); b.HasKey("ID"); b.HasIndex("KundeID"); b.ToTable("Projekte"); }); modelBuilder.Entity("KanSan.Base.Models.Sewer", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property("BaustelleID") .HasColumnType("INTEGER"); b.Property("DN") .HasColumnType("INTEGER"); b.Property("GuidNr") .HasColumnType("TEXT"); b.Property("Material") .HasColumnType("INTEGER"); b.Property("ObjektNummer") .HasColumnType("TEXT"); b.Property("PunktObenID") .HasColumnType("INTEGER"); b.Property("PunktTypeOben") .HasColumnType("INTEGER"); b.Property("PunktTypeUnten") .HasColumnType("INTEGER"); b.Property("PunktUntenID") .HasColumnType("INTEGER"); b.Property("SewerType") .HasColumnType("INTEGER"); b.Property("StrasseName") .HasColumnType("TEXT"); b.HasKey("ID"); b.HasIndex("BaustelleID"); b.HasIndex("PunktObenID"); b.HasIndex("PunktUntenID"); b.ToTable("Kanaele"); }); modelBuilder.Entity("KanSan.Base.Models.SewerPoint", b => { b.Property("ID") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property("GuidNr") .HasColumnType("TEXT"); b.Property("Objektnummer") .HasColumnType("TEXT"); b.HasKey("ID"); b.ToTable("SewerPoints"); }); modelBuilder.Entity("KanSan.Base.Models.Baustelle", b => { b.HasOne("KanSan.Base.Models.Projekt", "Projekt") .WithMany() .HasForeignKey("ProjektID"); }); modelBuilder.Entity("KanSan.Base.Models.Projekt", b => { b.HasOne("KanSan.Base.Models.Kunde", "Kunde") .WithMany("Baustellen") .HasForeignKey("KundeID"); }); modelBuilder.Entity("KanSan.Base.Models.Sewer", b => { b.HasOne("KanSan.Base.Models.Baustelle", "Baustelle") .WithMany("Kanaele") .HasForeignKey("BaustelleID"); b.HasOne("KanSan.Base.Models.SewerPoint", "PunktOben") .WithMany() .HasForeignKey("PunktObenID"); b.HasOne("KanSan.Base.Models.SewerPoint", "PunktUnten") .WithMany() .HasForeignKey("PunktUntenID"); }); #pragma warning restore 612, 618 } } }