You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
386 lines
12 KiB
386 lines
12 KiB
// <auto-generated /> |
|
using System; |
|
using EVABackend.Models; |
|
using Microsoft.EntityFrameworkCore; |
|
using Microsoft.EntityFrameworkCore.Infrastructure; |
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion; |
|
|
|
namespace EVABackend.Migrations.EVA |
|
{ |
|
[DbContext(typeof(EVAContext))] |
|
partial class EVAContextModelSnapshot : ModelSnapshot |
|
{ |
|
protected override void BuildModel(ModelBuilder modelBuilder) |
|
{ |
|
#pragma warning disable 612, 618 |
|
modelBuilder |
|
.HasAnnotation("ProductVersion", "2.1.8-servicing-32085"); |
|
|
|
modelBuilder.Entity("EVABackend.Models.Antrag", b => |
|
{ |
|
b.Property<int>("Id") |
|
.ValueGeneratedOnAdd(); |
|
|
|
b.Property<int>("KursId"); |
|
|
|
b.Property<int?>("SchuelerId"); |
|
|
|
b.Property<int?>("UnterrichtTypId"); |
|
|
|
b.HasKey("Id"); |
|
|
|
b.HasIndex("SchuelerId"); |
|
|
|
b.HasIndex("UnterrichtTypId"); |
|
|
|
b.ToTable("Antraege"); |
|
}); |
|
|
|
modelBuilder.Entity("EVABackend.Models.AntragInstrument", b => |
|
{ |
|
b.Property<int?>("InstrumentId"); |
|
|
|
b.Property<int?>("AntragId"); |
|
|
|
b.HasKey("InstrumentId", "AntragId"); |
|
|
|
b.HasIndex("AntragId"); |
|
|
|
b.ToTable("AntragInstrument"); |
|
}); |
|
|
|
modelBuilder.Entity("EVABackend.Models.Dozent", b => |
|
{ |
|
b.Property<int>("Id") |
|
.ValueGeneratedOnAdd(); |
|
|
|
b.Property<string>("BLZ") |
|
.IsRequired(); |
|
|
|
b.Property<string>("Bankname") |
|
.IsRequired(); |
|
|
|
b.Property<string>("EMail") |
|
.IsRequired(); |
|
|
|
b.Property<DateTime>("Geburtsdatum"); |
|
|
|
b.Property<string>("Geburtsort") |
|
.IsRequired(); |
|
|
|
b.Property<string>("KontoNr") |
|
.IsRequired(); |
|
|
|
b.Property<string>("Name") |
|
.IsRequired(); |
|
|
|
b.Property<string>("Ort") |
|
.IsRequired(); |
|
|
|
b.Property<int>("PLZ"); |
|
|
|
b.Property<string>("Strasse") |
|
.IsRequired(); |
|
|
|
b.Property<decimal>("Stundensatz"); |
|
|
|
b.Property<string>("Telefon") |
|
.IsRequired(); |
|
|
|
b.Property<string>("Vorname") |
|
.IsRequired(); |
|
|
|
b.HasKey("Id"); |
|
|
|
b.ToTable("Donzenten"); |
|
}); |
|
|
|
modelBuilder.Entity("EVABackend.Models.DozentInstrument", b => |
|
{ |
|
b.Property<int?>("InstrumentId"); |
|
|
|
b.Property<int?>("DozentId"); |
|
|
|
b.HasKey("InstrumentId", "DozentId"); |
|
|
|
b.HasIndex("DozentId"); |
|
|
|
b.ToTable("DozentInstrument"); |
|
}); |
|
|
|
modelBuilder.Entity("EVABackend.Models.Instrument", b => |
|
{ |
|
b.Property<int>("Id") |
|
.ValueGeneratedOnAdd(); |
|
|
|
b.Property<string>("Name") |
|
.IsRequired(); |
|
|
|
b.HasKey("Id"); |
|
|
|
b.ToTable("Instrumente"); |
|
}); |
|
|
|
modelBuilder.Entity("EVABackend.Models.Kurs", b => |
|
{ |
|
b.Property<int>("Id") |
|
.ValueGeneratedOnAdd(); |
|
|
|
b.Property<bool>("Bestaetigt"); |
|
|
|
b.Property<int>("Kuendigungsfrist"); |
|
|
|
b.Property<int>("Laufzeit"); |
|
|
|
b.Property<string>("Name") |
|
.IsRequired(); |
|
|
|
b.Property<int?>("UnterrichtsTypId"); |
|
|
|
b.HasKey("Id"); |
|
|
|
b.HasIndex("UnterrichtsTypId"); |
|
|
|
b.ToTable("Kurse"); |
|
}); |
|
|
|
modelBuilder.Entity("EVABackend.Models.KursInstrument", b => |
|
{ |
|
b.Property<int?>("InstrumentId"); |
|
|
|
b.Property<int?>("KursId"); |
|
|
|
b.HasKey("InstrumentId", "KursId"); |
|
|
|
b.HasIndex("KursId"); |
|
|
|
b.ToTable("KursInstrument"); |
|
}); |
|
|
|
modelBuilder.Entity("EVABackend.Models.KursSchueler", b => |
|
{ |
|
b.Property<int>("SchuelerId"); |
|
|
|
b.Property<int>("KursId"); |
|
|
|
b.Property<int?>("DozentId"); |
|
|
|
b.HasKey("SchuelerId", "KursId"); |
|
|
|
b.HasIndex("DozentId"); |
|
|
|
b.HasIndex("KursId"); |
|
|
|
b.ToTable("KursSchueler"); |
|
}); |
|
|
|
modelBuilder.Entity("EVABackend.Models.Raum", b => |
|
{ |
|
b.Property<int>("Id") |
|
.ValueGeneratedOnAdd(); |
|
|
|
b.Property<bool>("Belegt"); |
|
|
|
b.Property<string>("Name") |
|
.IsRequired(); |
|
|
|
b.HasKey("Id"); |
|
|
|
b.ToTable("Raeume"); |
|
}); |
|
|
|
modelBuilder.Entity("EVABackend.Models.RaumInstrument", b => |
|
{ |
|
b.Property<int?>("InstrumentId"); |
|
|
|
b.Property<int?>("RaumId"); |
|
|
|
b.HasKey("InstrumentId", "RaumId"); |
|
|
|
b.HasIndex("RaumId"); |
|
|
|
b.ToTable("RaumInstrument"); |
|
}); |
|
|
|
modelBuilder.Entity("EVABackend.Models.Schueler", b => |
|
{ |
|
b.Property<int>("Id") |
|
.ValueGeneratedOnAdd(); |
|
|
|
b.Property<string>("BLZ") |
|
.IsRequired(); |
|
|
|
b.Property<string>("Bankname") |
|
.IsRequired(); |
|
|
|
b.Property<string>("EMail") |
|
.IsRequired(); |
|
|
|
b.Property<DateTime>("Geburtsdatum"); |
|
|
|
b.Property<string>("Geburtsort") |
|
.IsRequired(); |
|
|
|
b.Property<bool>("IstErmaessigt"); |
|
|
|
b.Property<string>("KontoNr") |
|
.IsRequired(); |
|
|
|
b.Property<string>("Name") |
|
.IsRequired(); |
|
|
|
b.Property<string>("Ort") |
|
.IsRequired(); |
|
|
|
b.Property<int>("PLZ"); |
|
|
|
b.Property<string>("Strasse") |
|
.IsRequired(); |
|
|
|
b.Property<string>("Telefon") |
|
.IsRequired(); |
|
|
|
b.Property<string>("Vorname") |
|
.IsRequired(); |
|
|
|
b.HasKey("Id"); |
|
|
|
b.ToTable("Schueler"); |
|
}); |
|
|
|
modelBuilder.Entity("EVABackend.Models.Unterricht", b => |
|
{ |
|
b.Property<int>("Id") |
|
.ValueGeneratedOnAdd(); |
|
|
|
b.Property<int?>("KursId"); |
|
|
|
b.Property<string>("Notiz"); |
|
|
|
b.Property<int?>("RaumId"); |
|
|
|
b.Property<DateTime>("Startzeit"); |
|
|
|
b.HasKey("Id"); |
|
|
|
b.HasIndex("KursId"); |
|
|
|
b.HasIndex("RaumId"); |
|
|
|
b.ToTable("Unterrichte"); |
|
}); |
|
|
|
modelBuilder.Entity("EVABackend.Models.UnterrichtTyp", b => |
|
{ |
|
b.Property<int>("Id") |
|
.ValueGeneratedOnAdd(); |
|
|
|
b.Property<string>("Name") |
|
.IsRequired(); |
|
|
|
b.HasKey("Id"); |
|
|
|
b.ToTable("UnterrichtTypen"); |
|
}); |
|
|
|
modelBuilder.Entity("EVABackend.Models.Antrag", b => |
|
{ |
|
b.HasOne("EVABackend.Models.Schueler", "Schueler") |
|
.WithMany() |
|
.HasForeignKey("SchuelerId"); |
|
|
|
b.HasOne("EVABackend.Models.UnterrichtTyp", "UnterrichtTyp") |
|
.WithMany() |
|
.HasForeignKey("UnterrichtTypId"); |
|
}); |
|
|
|
modelBuilder.Entity("EVABackend.Models.AntragInstrument", b => |
|
{ |
|
b.HasOne("EVABackend.Models.Antrag", "Antrag") |
|
.WithMany("Instrumente") |
|
.HasForeignKey("AntragId") |
|
.OnDelete(DeleteBehavior.Cascade); |
|
|
|
b.HasOne("EVABackend.Models.Instrument", "Instrument") |
|
.WithMany() |
|
.HasForeignKey("InstrumentId") |
|
.OnDelete(DeleteBehavior.Cascade); |
|
}); |
|
|
|
modelBuilder.Entity("EVABackend.Models.DozentInstrument", b => |
|
{ |
|
b.HasOne("EVABackend.Models.Dozent", "Dozent") |
|
.WithMany("Instrumente") |
|
.HasForeignKey("DozentId") |
|
.OnDelete(DeleteBehavior.Cascade); |
|
|
|
b.HasOne("EVABackend.Models.Instrument", "Instrument") |
|
.WithMany() |
|
.HasForeignKey("InstrumentId") |
|
.OnDelete(DeleteBehavior.Cascade); |
|
}); |
|
|
|
modelBuilder.Entity("EVABackend.Models.Kurs", b => |
|
{ |
|
b.HasOne("EVABackend.Models.UnterrichtTyp", "UnterrichtsTyp") |
|
.WithMany() |
|
.HasForeignKey("UnterrichtsTypId"); |
|
}); |
|
|
|
modelBuilder.Entity("EVABackend.Models.KursInstrument", b => |
|
{ |
|
b.HasOne("EVABackend.Models.Instrument", "Instrument") |
|
.WithMany() |
|
.HasForeignKey("InstrumentId") |
|
.OnDelete(DeleteBehavior.Cascade); |
|
|
|
b.HasOne("EVABackend.Models.Kurs", "Kurs") |
|
.WithMany("Instrumente") |
|
.HasForeignKey("KursId") |
|
.OnDelete(DeleteBehavior.Cascade); |
|
}); |
|
|
|
modelBuilder.Entity("EVABackend.Models.KursSchueler", b => |
|
{ |
|
b.HasOne("EVABackend.Models.Dozent") |
|
.WithMany("KursSchueler") |
|
.HasForeignKey("DozentId"); |
|
|
|
b.HasOne("EVABackend.Models.Kurs", "Kurs") |
|
.WithMany("KursSchueler") |
|
.HasForeignKey("KursId") |
|
.OnDelete(DeleteBehavior.Cascade); |
|
|
|
b.HasOne("EVABackend.Models.Schueler", "Schueler") |
|
.WithMany("KursSchueler") |
|
.HasForeignKey("SchuelerId") |
|
.OnDelete(DeleteBehavior.Cascade); |
|
}); |
|
|
|
modelBuilder.Entity("EVABackend.Models.RaumInstrument", b => |
|
{ |
|
b.HasOne("EVABackend.Models.Instrument", "Instrument") |
|
.WithMany() |
|
.HasForeignKey("InstrumentId") |
|
.OnDelete(DeleteBehavior.Cascade); |
|
|
|
b.HasOne("EVABackend.Models.Raum", "Raum") |
|
.WithMany("Instrumente") |
|
.HasForeignKey("RaumId") |
|
.OnDelete(DeleteBehavior.Cascade); |
|
}); |
|
|
|
modelBuilder.Entity("EVABackend.Models.Unterricht", b => |
|
{ |
|
b.HasOne("EVABackend.Models.Kurs") |
|
.WithMany("Unterrichte") |
|
.HasForeignKey("KursId"); |
|
|
|
b.HasOne("EVABackend.Models.Raum", "Raum") |
|
.WithMany() |
|
.HasForeignKey("RaumId"); |
|
}); |
|
#pragma warning restore 612, 618 |
|
} |
|
} |
|
}
|
|
|