using System.ComponentModel.DataAnnotations.Schema; namespace Distribution.Models { public class Warehouse : Template { public string Name { get; set; } public string Location { get; set; } public WareHouseType Type { get; set; } public Guid? VehicleId { get; set; } [ForeignKey("VehicleId")] public Vehicle Vehicle { get; set; } } public enum WareHouseType { DistributionCenter, FulfillmentCenter, CrossDocking, ColdStorage, BondedWarehouse, AutomatedWarehouse } }