création CreateShowEndpoint.cs et rectification quelque chemin

This commit is contained in:
2025-10-09 15:55:00 +02:00
parent c6ce3c658f
commit 139e849e41
62 changed files with 193 additions and 69 deletions

14
PF3/Models/Truck.cs Normal file
View File

@@ -0,0 +1,14 @@
using System.ComponentModel.DataAnnotations;
namespace PF3.Models;
public class Truck
{
[Key] public int Id { get; set; }
[Required, MaxLength(40)] public string Type { get; set; } = null!;
[Required] public double? MaxExplosiveCapacity { get; set; }
[Required, MaxLength(80)] public string? Sizes { get; set; }
[Required, MaxLength(40)] public string? Status { get; set; }
public List<ShowTruck>? ShowTrucks { get; set; }
}