// using System; using FoodsharingSiegen.Server.Data; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; #nullable disable namespace FoodsharingSiegen.Server.Migrations { [DbContext(typeof(FsContext))] partial class FsContextModelSnapshot : ModelSnapshot { protected override void BuildModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder.HasAnnotation("ProductVersion", "6.0.1"); modelBuilder.Entity("FoodsharingSiegen.Contracts.Entity.Audit", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("TEXT"); b.Property("Created") .HasColumnType("TEXT"); b.Property("Data1") .HasColumnType("TEXT"); b.Property("Data2") .HasColumnType("TEXT"); b.Property("Type") .HasColumnType("INTEGER"); b.Property("UserID") .HasColumnType("TEXT"); b.HasKey("Id"); b.HasIndex("UserID"); b.ToTable("Audits"); }); modelBuilder.Entity("FoodsharingSiegen.Contracts.Entity.Interaction", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("TEXT"); b.Property("Alert") .HasColumnType("INTEGER"); b.Property("Created") .HasColumnType("TEXT"); b.Property("Date") .HasColumnType("TEXT"); b.Property("Info") .HasColumnType("TEXT"); b.Property("NotNeeded") .HasColumnType("INTEGER"); b.Property("ProspectID") .HasColumnType("TEXT"); b.Property("Type") .HasColumnType("INTEGER"); b.Property("UserID") .HasColumnType("TEXT"); b.HasKey("Id"); b.HasIndex("ProspectID"); b.HasIndex("UserID"); b.ToTable("Interactions"); }); modelBuilder.Entity("FoodsharingSiegen.Contracts.Entity.Prospect", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("TEXT"); b.Property("Created") .HasColumnType("TEXT"); b.Property("FsId") .HasColumnType("INTEGER"); b.Property("Memo") .HasColumnType("TEXT"); b.Property("Name") .IsRequired() .HasColumnType("TEXT"); b.HasKey("Id"); b.ToTable("Prospects"); }); modelBuilder.Entity("FoodsharingSiegen.Contracts.Entity.User", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("TEXT"); b.Property("Created") .HasColumnType("TEXT"); b.Property("EncryptedPassword") .IsRequired() .HasColumnType("TEXT"); b.Property("ForceLogout") .HasColumnType("INTEGER"); b.Property("Groups") .IsRequired() .HasColumnType("TEXT"); b.Property("Mail") .IsRequired() .HasColumnType("TEXT"); b.Property("Memo") .HasColumnType("TEXT"); b.Property("Name") .IsRequired() .HasColumnType("TEXT"); b.Property("Network") .HasColumnType("INTEGER"); b.Property("Type") .HasColumnType("INTEGER"); b.Property("Verified") .HasColumnType("INTEGER"); b.HasKey("Id"); b.ToTable("Users"); }); modelBuilder.Entity("FoodsharingSiegen.Contracts.Entity.Audit", b => { b.HasOne("FoodsharingSiegen.Contracts.Entity.User", "User") .WithMany() .HasForeignKey("UserID"); b.Navigation("User"); }); modelBuilder.Entity("FoodsharingSiegen.Contracts.Entity.Interaction", b => { b.HasOne("FoodsharingSiegen.Contracts.Entity.Prospect", "Prospect") .WithMany("Interactions") .HasForeignKey("ProspectID") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.HasOne("FoodsharingSiegen.Contracts.Entity.User", "User") .WithMany("Interactions") .HasForeignKey("UserID") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("Prospect"); b.Navigation("User"); }); modelBuilder.Entity("FoodsharingSiegen.Contracts.Entity.Prospect", b => { b.Navigation("Interactions"); }); modelBuilder.Entity("FoodsharingSiegen.Contracts.Entity.User", b => { b.Navigation("Interactions"); }); #pragma warning restore 612, 618 } } }