Correction de toutes les erreurs de relations et d'écritures dans tous

This commit is contained in:
2025-10-07 23:46:57 +01:00
parent 89be35ecb0
commit 856d8e2733
7 changed files with 41 additions and 12 deletions

View File

@@ -5,20 +5,18 @@ namespace PyroFetes.Models;
public class Show
{
[Key] public int Id { get; set; }
[Required] public string? Name { get; set; }
[Required, MaxLength(100)] public string? Name { get; set; }
[Required, MaxLength(120)] public string? Place { get; set; }
[MaxLength(500)] public string? Description { get; set; }
public DateOnly? Date { get; set; }
// Link (path/URL/file name) to the pyrotechnic implementation plan
[Required, MaxLength(500)] public string? PyrotechnicImplementationPlan { get; set; }
public DateOnly? Date { get; set; }
[Required] public int CityId { get; set; }
public City? City { get; set; }
public ICollection<Staff>? Staff { get; set; }
public ICollection<Truck>? Trucks { get; set; }
public List<ShowStaff>? ShowStaffs { get; set; }
public List<ShowTruck>? ShowTrucks { get; set; }
public List<SoundTimecode>? SoundTimecodes { get; set; }
}