Endopoint presque fini

This commit is contained in:
2025-10-16 17:00:36 +02:00
parent 8d0c2aa3f6
commit ec5149b6da
28 changed files with 551 additions and 31 deletions

View File

@@ -7,10 +7,10 @@ public class Truck
[Key] public int Id { get; set; }
[Required, MaxLength(40)]
public string Type { get; set; } = null!;
public string? Type { get; set; } = null!;
[Range(0, double.MaxValue)]
public double? MaxExplosiveCapacity { get; set; }
public string? MaxExplosiveCapacity { get; set; }
[Required, MaxLength(80)]
public string? Sizes { get; set; }
@@ -19,6 +19,6 @@ public class Truck
public string? Statut { get; set; }
[Required]
public int ShowId { get; set; }
public int? ShowId { get; set; }
public Show? Show { get; set; }
}