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,14 +1,13 @@
using System.ComponentModel.DataAnnotations;
using API.Class;
namespace API.Models;
namespace PyroFetes.Models;
public class Material
{
[Key] public int Id {get; set;}
[Required, MaxLength(100)] public string Name {get; set;}
[Required, MaxLength(100)] public string? Name {get; set;}
[Required] public int Quantity {get; set;}
[Required] public int WarehouseId {get; set;}
[Required] public Warehouse Warehouse {get; set;}
[Required] public Warehouse? Warehouse {get; set;}
}