Correcting Entities

This commit is contained in:
2025-10-03 14:54:25 +01:00
parent 6bb86c0ce9
commit df919bf943
6 changed files with 31 additions and 84 deletions

View File

@@ -5,18 +5,9 @@ namespace PyroFetes.Models;
public class Staff
{
[Key] public int Id { get; set; }
[Required, MaxLength(60)]
public string FirstName { get; set; } = null!;
[Required, MaxLength(60)]
public string LastName { get; set; } = null!;
[Required, MaxLength(100)]
public string? Profession { get; set; }
[Required, MaxLength(120)]
public string? Email { get; set; }
public ICollection<Show> Shows { get; set; } = new List<Show>();
[Required, MaxLength(60)] public string FirstName { get; set; } = null!;
[Required, MaxLength(60)] public string LastName { get; set; } = null!;
[Required, MaxLength(100)] public string? Profession { get; set; }
[Required, MaxLength(120)] public string? Email { get; set; }
public ICollection<Show>? Shows { get; set; }
}