88 lines
2.7 KiB
C#
88 lines
2.7 KiB
C#
// <auto-generated />
|
|
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("20200220200339_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<int>("ID")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<Guid>("GuidNr")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int?>("KundeID")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("Ort")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Projektnummer")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Strasse")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("ID");
|
|
|
|
b.HasIndex("KundeID");
|
|
|
|
b.ToTable("Baustellen");
|
|
});
|
|
|
|
modelBuilder.Entity("KanSan.Base.Models.Kunde", b =>
|
|
{
|
|
b.Property<int>("ID")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<Guid>("GuidNr")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Nachname")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Ort")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("PLZ")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Strasse")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Vorname")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("ID");
|
|
|
|
b.ToTable("Kunden");
|
|
});
|
|
|
|
modelBuilder.Entity("KanSan.Base.Models.Baustelle", b =>
|
|
{
|
|
b.HasOne("KanSan.Base.Models.Kunde", "Kunde")
|
|
.WithMany("Baustellen")
|
|
.HasForeignKey("KundeID");
|
|
});
|
|
#pragma warning restore 612, 618
|
|
}
|
|
}
|
|
}
|