Datenbank umgebaut
This commit is contained in:
166
KanSan/Migrations/20200216122731_InitialCommit.Designer.cs
generated
Normal file
166
KanSan/Migrations/20200216122731_InitialCommit.Designer.cs
generated
Normal file
@@ -0,0 +1,166 @@
|
||||
// <auto-generated />
|
||||
using System;
|
||||
using KanSan;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
||||
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
||||
|
||||
namespace KanSan.Migrations
|
||||
{
|
||||
[DbContext(typeof(KanSanContext))]
|
||||
[Migration("20200216122731_InitialCommit")]
|
||||
partial class InitialCommit
|
||||
{
|
||||
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
||||
{
|
||||
#pragma warning disable 612, 618
|
||||
modelBuilder
|
||||
.HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn)
|
||||
.HasAnnotation("ProductVersion", "3.1.1")
|
||||
.HasAnnotation("Relational:MaxIdentifierLength", 63);
|
||||
|
||||
modelBuilder.Entity("KanSan.Klassen.Baustelle", b =>
|
||||
{
|
||||
b.Property<Guid>("ID")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("uuid");
|
||||
|
||||
b.Property<Guid?>("KundeID")
|
||||
.HasColumnType("uuid");
|
||||
|
||||
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.Klassen.Kunde", b =>
|
||||
{
|
||||
b.Property<Guid>("ID")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("uuid");
|
||||
|
||||
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.Klassen.Leistungsverzeichnis", b =>
|
||||
{
|
||||
b.Property<Guid>("ID")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("uuid");
|
||||
|
||||
b.Property<string>("Beschreibung")
|
||||
.HasColumnType("text");
|
||||
|
||||
b.HasKey("ID");
|
||||
|
||||
b.ToTable("Leistungsverzeichnisses");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("KanSan.Klassen.LeistungsverzeichnisBaustelle", b =>
|
||||
{
|
||||
b.Property<int>("LeistungsverzeichnisBaustelleID")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("integer")
|
||||
.HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
|
||||
|
||||
b.Property<Guid?>("BaustelleID")
|
||||
.HasColumnType("uuid");
|
||||
|
||||
b.Property<Guid?>("LeistungsverzeichnissID")
|
||||
.HasColumnType("uuid");
|
||||
|
||||
b.HasKey("LeistungsverzeichnisBaustelleID");
|
||||
|
||||
b.HasIndex("BaustelleID");
|
||||
|
||||
b.HasIndex("LeistungsverzeichnissID");
|
||||
|
||||
b.ToTable("LeistungsverzeichnisBaustelle");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("KanSan.Klassen.LeistungsverzeichnisPosition", b =>
|
||||
{
|
||||
b.Property<Guid>("ID")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("uuid");
|
||||
|
||||
b.Property<string>("Position")
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<string>("PositionBeschreibung")
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<string>("PositionEinheit")
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<decimal>("PositionEinheitspreis")
|
||||
.HasColumnType("numeric");
|
||||
|
||||
b.Property<Guid?>("ref_leistungsverzeichnisID")
|
||||
.HasColumnType("uuid");
|
||||
|
||||
b.HasKey("ID");
|
||||
|
||||
b.HasIndex("ref_leistungsverzeichnisID");
|
||||
|
||||
b.ToTable("LeistungsverzeichnisPosition");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("KanSan.Klassen.Baustelle", b =>
|
||||
{
|
||||
b.HasOne("KanSan.Klassen.Kunde", null)
|
||||
.WithMany("Baustellen")
|
||||
.HasForeignKey("KundeID");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("KanSan.Klassen.LeistungsverzeichnisBaustelle", b =>
|
||||
{
|
||||
b.HasOne("KanSan.Klassen.Baustelle", "Baustelle")
|
||||
.WithMany()
|
||||
.HasForeignKey("BaustelleID");
|
||||
|
||||
b.HasOne("KanSan.Klassen.Leistungsverzeichnis", "Leistungsverzeichniss")
|
||||
.WithMany()
|
||||
.HasForeignKey("LeistungsverzeichnissID");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("KanSan.Klassen.LeistungsverzeichnisPosition", b =>
|
||||
{
|
||||
b.HasOne("KanSan.Klassen.Leistungsverzeichnis", "ref_leistungsverzeichnis")
|
||||
.WithMany("Positionen")
|
||||
.HasForeignKey("ref_leistungsverzeichnisID");
|
||||
});
|
||||
#pragma warning restore 612, 618
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user