Added endpoints to update verspakketten and add beoordeling. Added some validations and other tweaks

This commit is contained in:
moarten
2026-04-18 20:07:24 +02:00
parent a10bcfa1d6
commit 11bff0de63
23 changed files with 628 additions and 8 deletions

View File

@@ -17,7 +17,7 @@ namespace Lutra.Infrastructure.Sql.Migrations
{
#pragma warning disable 612, 618
modelBuilder
.HasAnnotation("ProductVersion", "10.0.5")
.HasAnnotation("ProductVersion", "10.0.6")
.HasAnnotation("Relational:MaxIdentifierLength", 63);
NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder);
@@ -118,7 +118,12 @@ namespace Lutra.Infrastructure.Sql.Migrations
b.HasIndex("SupermarktId");
b.ToTable("Verspaketten");
b.ToTable("Verspaketten", t =>
{
t.HasCheckConstraint("CK_Verspaketten_AantalPersonen", "\"AantalPersonen\" BETWEEN 1 AND 10");
t.HasCheckConstraint("CK_Verspaketten_PrijsInCenten", "\"PrijsInCenten\" IS NULL OR \"PrijsInCenten\" >= 0");
});
});
modelBuilder.Entity("Lutra.Domain.Entities.Beoordeling", b =>