Correcting all type and relations in all entities

This commit is contained in:
2025-10-08 00:03:52 +01:00
parent 856d8e2733
commit af92cdc524
9 changed files with 25 additions and 10 deletions

View File

@@ -1,3 +1,4 @@
using System.ComponentModel.DataAnnotations;
using Microsoft.EntityFrameworkCore;
namespace PyroFetes.Models;
@@ -5,8 +6,8 @@ namespace PyroFetes.Models;
[PrimaryKey(nameof(ContactId), nameof(StaffId))]
public class StaffContact
{
public int StaffId { get; set; }
[Required] public int StaffId { get; set; }
public Staff? Staff { get; set; }
public int ContactId { get; set; }
[Required] public int ContactId { get; set; }
public Contact? Contact { get; set; }
}