Correcting errors on Entities

This commit is contained in:
2025-10-03 14:35:31 +01:00
parent 9da75d53b9
commit 4cb501fe04
14 changed files with 40 additions and 77 deletions

View File

@@ -1,12 +1,12 @@
using System.ComponentModel.DataAnnotations;
using API.Class;
using API.Models;
namespace API.Models;
namespace PyroFetes.Models;
public class ProductCategory
{
[Key] public int Id { get; set; }
[Required] public string Label { get; set; }
[Required] public string? Label { get; set; }
[Required] public List<Product> Products { get; set; }
[Required] public List<Product>? Products { get; set; }
}