Creating all entities for subject 2
This commit is contained in:
16
PyroFetes/Models/Supplier.cs
Normal file
16
PyroFetes/Models/Supplier.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Microsoft.EntityFrameworkCore.Metadata.Internal;
|
||||
|
||||
namespace PyroFetes.Models;
|
||||
|
||||
public class Supplier
|
||||
{
|
||||
[Key] public int Id { get; set; }
|
||||
[Required, MaxLength(100)] public string? Name { get; set; }
|
||||
[Required] public string? Email { get; set; }
|
||||
[Required] public string? Phone { get; set; }
|
||||
[Required] public string? Address { get; set; }
|
||||
[Required] public int ZipCode { get; set; }
|
||||
[Required] public string? City { get; set; }
|
||||
[Required] public int DeliveryDelay { get; set; }
|
||||
}
|
Reference in New Issue
Block a user