using SqlSugar; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace JinYuan.DAL.Models { /// /// 料框码规则表 /// [SugarTable("material_frame_rule")] public class MaterialFrameRule { /// /// 主键ID /// [SugarColumn(IsPrimaryKey = true, IsIdentity = true)] public int Id { get; set; } /// /// 料框码规则起始匹配编码(第4-7位) /// [SugarColumn(ColumnName = "start_code", Length = 20, IsNullable = false)] public string Start_Code { get; set; } /// /// 车间编码 (如 601) /// [SugarColumn(ColumnName = "workshop_code", Length = 10, IsNullable = false)] public string Workshop_Code { get; set; } = string.Empty; /// /// 逻辑删除标识 (0:正常, 1:已删除) /// 注意:建议在Service层统一过滤此字段,不直接参与常规业务查询映射 /// [SugarColumn(ColumnName = "is_deleted")] public bool Is_Deleted { get; set; } /// /// 最后更新时间 /// [SugarColumn(ColumnName = "update_time", IsOnlyIgnoreUpdate = true)] // 插入时由数据库默认值处理,更新时自动更新 public DateTime Update_Time { get; set; } } }