Files
PyroFetes-Sujet1/PyroFetes/Models/Truck.cs
2025-10-03 14:54:25 +01:00

14 lines
506 B
C#

using System.ComponentModel.DataAnnotations;
namespace PyroFetes.Models;
public class Truck
{
[Key] public int Id { get; set; }
[Required, MaxLength(40)] public string Type { get; set; } = null!;
[Range(0, double.MaxValue)] public double? MaxExplosiveCapacity { get; set; }
[Required, MaxLength(80)] public string? Sizes { get; set; }
[Required, MaxLength(40)] public string? Status { get; set; }
[Required] public int ShowId { get; set; }
public Show? Show { get; set; }
}