Added Beoordeling
This commit is contained in:
@@ -0,0 +1,9 @@
|
|||||||
|
namespace Lutra.Application.Models.Verspakketten;
|
||||||
|
|
||||||
|
public class Beoordeling
|
||||||
|
{
|
||||||
|
public required int CijferSmaak { get; init; }
|
||||||
|
public required int CijferBereiden { get; init; }
|
||||||
|
public required bool Aanbevolen { get; init; }
|
||||||
|
public string? Tekst { get; init; }
|
||||||
|
}
|
||||||
@@ -4,8 +4,9 @@ namespace Lutra.Application.Models.Verspakketten
|
|||||||
{
|
{
|
||||||
public record Verspakket
|
public record Verspakket
|
||||||
{
|
{
|
||||||
public required string Name { get; init; }
|
public required string Naam { get; init; }
|
||||||
public required string Rating { get; init; }
|
public int? PrijsInCenten { get; init; }
|
||||||
|
public Beoordeling[]? Beoordelingen { get; init; }
|
||||||
public Supermarkt? Supermarkt { get; init; }
|
public Supermarkt? Supermarkt { get; init; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
17
Lutra/Lutra.Domain/Entities/Beoordeling.cs
Normal file
17
Lutra/Lutra.Domain/Entities/Beoordeling.cs
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
using System.ComponentModel.DataAnnotations;
|
||||||
|
|
||||||
|
namespace Lutra.Domain.Entities;
|
||||||
|
|
||||||
|
public class Beoordeling : BaseEntity
|
||||||
|
{
|
||||||
|
[Range(1, 10)]
|
||||||
|
public required int CijferSmaak { get; set; }
|
||||||
|
|
||||||
|
[Range(1, 10)]
|
||||||
|
public required int CijferBereiden { get; set; }
|
||||||
|
|
||||||
|
public required bool Aanbevolen { get; set; }
|
||||||
|
|
||||||
|
[MaxLength(1024)]
|
||||||
|
public string? Tekst { get; set; }
|
||||||
|
}
|
||||||
@@ -7,17 +7,14 @@ public class Verspakket : BaseEntity
|
|||||||
[MaxLength(50)]
|
[MaxLength(50)]
|
||||||
public required string Naam { get; set; }
|
public required string Naam { get; set; }
|
||||||
|
|
||||||
[Range(1, 100)]
|
|
||||||
public int Cijfer { get; set; }
|
|
||||||
|
|
||||||
[MaxLength(255)]
|
|
||||||
public string? Opmerking { get; set; }
|
|
||||||
|
|
||||||
[Range(1, 10)]
|
[Range(1, 10)]
|
||||||
public int AantalPersonen { get; set; }
|
public int AantalPersonen { get; set; }
|
||||||
|
|
||||||
public required Guid SupermarktId { get; set; }
|
public required Guid SupermarktId { get; set; }
|
||||||
|
|
||||||
|
public required virtual Beoordeling[]? Beoordelingen { get; set; }
|
||||||
|
|
||||||
public required virtual Supermarkt Supermarkt { get; set; }
|
public required virtual Supermarkt Supermarkt { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user