using System.ComponentModel.DataAnnotations; namespace PyroFetes.Models; public class Warehouse { [Key] public int Id { get; set; } [Required, MaxLength(100)] public string? Name { get; set; } [Required] public int MaxWeight { get; set; } [Required] public int Current { get; set; } [Required] public int MinWeight { get; set; } [Required, MaxLength(100)] public string? Address { get; set; } [Required, Length(5, 5)] public string? ZipCode { get; set; } [Required, MaxLength(100)] public string? City { get; set; } public List? WarehouseProducts { get; set; } public List? MaterialWarehouses { get; set; } public List? MovementsSource { get; set; } public List? MovementsDestination { get; set; } }