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,13 +1,13 @@
using System.ComponentModel.DataAnnotations;
using API.Class;
using API.Models;
namespace API.Models;
namespace PyroFetes.Models;
public class Brand
{
[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 ProductId { get; set; }
[Required] public Product Product { get; set; }
[Required] public Product? Product { get; set; }
}