Files
pyrofetes-backend/PyroFetes/Models/Warehouse.cs
T
2026-05-24 17:24:44 +01:00

22 lines
812 B
C#

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<WarehouseProduct>? WarehouseProducts { get; set; }
public List<MaterialWarehouse>? MaterialWarehouses { get; set; }
public List<Movement>? MovementsSource { get; set; }
public List<Movement>? MovementsDestination { get; set; }
}