using Microsoft.EntityFrameworkCore; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; /* * @author : 刘文奇 * @date : 2024/4/23下午5:30:19 * @desc : 仓库表 */ namespace Admin.NET.Core { /// /// 仓库表 /// [Table("wms_warehouse")] [Comment("仓库表")] public class WmsWarehouse : DEntityBase { /// /// 仓库编号 /// [Comment("仓库编号")] [Required] [MaxLength(50)] public string Code { get; set; } /// /// 仓库名称 /// [Comment("仓库名称")] [Required] [MaxLength(255)] public string Name { get; set; } /// /// 仓库地址 /// [Comment("仓库地址")] [MaxLength(255)] public string Address { get; set; } /// /// 工厂编号 /// [Comment("工厂编号")] [MaxLength(255)] public string FactoryCode { get; set; } /// /// 长 /// [Comment("长")] [Column("Length", TypeName = "decimal(10,3)")] public decimal? Length { get; set; } /// /// 宽 /// [Comment("宽")] [Column("Width", TypeName = "decimal(10,3)")] public decimal? Width { get; set; } /// /// 高 /// [Comment("高")] [Column("Height", TypeName = "decimal(10,3)")] public decimal? Height { get; set; } /// /// 基本单元 /// [Comment("基本单元")] [MaxLength(255)] public string BaseUnit { get; set; } /// /// 定位 /// [Comment("定位")] [MaxLength(255)] public string Position { get; set; } /// /// 是否禁用 /// [Comment("是否禁用")] [Required] public bool IsDisabled { get; set; } /// /// 备注 /// [Comment("备注")] [MaxLength(255)] public string Remarks { get; set; } } }