using FreeSql.DataAnnotations; namespace FATrace.Model { /// /// 原料生产 /// 入库信息 /// [Table(Name = "RawProInput")] public class RawProInput { /// /// 主键 /// [Column(IsPrimary = true, IsIdentity = true)] public long Id { get; set; } /// /// 原料编号 /// [Column(Name = "RawCode", IsNullable = false, StringLength = 30)] public string? RawCode { get; set; } /// /// 原料名称 /// [Column(Name = "RawName", IsNullable = false, StringLength = 100)] public string? RawName { get; set; } /// /// 入库重量 /// [Column(Name = "Weight")] public double Weight { get; set; } /// /// 批号 /// [Column(Name = "Batch", IsNullable = false, StringLength = 50)] public string? Batch { get; set; } /// /// 保质期 年 /// [Column(Name = "ShelfLife")] public int ShelfLife { get; set; } /// /// 原料来源 /// [Column(Name = "RawSource")] public RawSource RawSource { get; set; } /// /// 剩余重量 /// Kg /// [Column(Name = "RemainWeight")] public double RemainWeight { get; set; } /// ///分拆 状态 /// false:未分拆完毕 /// true:分拆完毕 /// [Column(Name = "RawState")] public RawSplitState RawState { get; set; } /// /// 创建时间 /// [Column(ServerTime = DateTimeKind.Local, CanUpdate = true)] public DateTime CreateTime { get; set; } } }