forked from sanchezvem/PyroFetes
09/10
This commit is contained in:
14
PyroFetes/Models/Brand.cs
Normal file
14
PyroFetes/Models/Brand.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace PyroFetes.Models;
|
||||
|
||||
public class Brand
|
||||
{
|
||||
//Champs
|
||||
[Key] public int Id { get; set; }
|
||||
[Required, MaxLength(100)] public string? Name { get; set; }
|
||||
[Required] public int ProductId { get; set; }
|
||||
|
||||
//Relations
|
||||
[Required] public Product? Product { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user