// using System; using Lutra.Infrastructure.Sql; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; #nullable disable namespace Lutra.Infrastructure.Sql.Migrations { [DbContext(typeof(LutraDbContext))] partial class LutraDbContextModelSnapshot : ModelSnapshot { protected override void BuildModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder .HasAnnotation("ProductVersion", "10.0.5") .HasAnnotation("Relational:MaxIdentifierLength", 63); NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder); modelBuilder.Entity("Lutra.Domain.Entities.Beoordeling", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property("Aanbevolen") .HasColumnType("boolean"); b.Property("CijferBereiden") .HasColumnType("integer"); b.Property("CijferSmaak") .HasColumnType("integer"); b.Property("CreatedAt") .HasColumnType("timestamp with time zone"); b.Property("DeletedAt") .HasColumnType("timestamp with time zone"); b.Property("ModifiedAt") .HasColumnType("timestamp with time zone"); b.Property("Tekst") .HasMaxLength(1024) .HasColumnType("character varying(1024)"); b.Property("VerspakketId") .HasColumnType("uuid"); b.HasKey("Id"); b.HasIndex("VerspakketId"); b.ToTable("Beoordelingen", (string)null); }); modelBuilder.Entity("Lutra.Domain.Entities.Supermarkt", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property("CreatedAt") .HasColumnType("timestamp with time zone"); b.Property("DeletedAt") .HasColumnType("timestamp with time zone"); b.Property("ModifiedAt") .HasColumnType("timestamp with time zone"); b.Property("Naam") .IsRequired() .HasMaxLength(50) .HasColumnType("character varying(50)"); b.HasKey("Id"); b.ToTable("Supermarkten"); }); modelBuilder.Entity("Lutra.Domain.Entities.Verspakket", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property("AantalPersonen") .HasColumnType("integer"); b.Property("CreatedAt") .HasColumnType("timestamp with time zone"); b.Property("DeletedAt") .HasColumnType("timestamp with time zone"); b.Property("ModifiedAt") .HasColumnType("timestamp with time zone"); b.Property("Naam") .IsRequired() .HasMaxLength(50) .HasColumnType("character varying(50)"); b.Property("PrijsInCenten") .HasColumnType("integer"); b.Property("SupermarktId") .HasColumnType("uuid"); b.HasKey("Id"); b.HasIndex("SupermarktId"); b.ToTable("Verspaketten"); }); modelBuilder.Entity("Lutra.Domain.Entities.Beoordeling", b => { b.HasOne("Lutra.Domain.Entities.Verspakket", null) .WithMany("Beoordelingen") .HasForeignKey("VerspakketId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); }); modelBuilder.Entity("Lutra.Domain.Entities.Verspakket", b => { b.HasOne("Lutra.Domain.Entities.Supermarkt", "Supermarkt") .WithMany() .HasForeignKey("SupermarktId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("Supermarkt"); }); modelBuilder.Entity("Lutra.Domain.Entities.Verspakket", b => { b.Navigation("Beoordelingen"); }); #pragma warning restore 612, 618 } } }