using System.ComponentModel.DataAnnotations; namespace MDM.Model.Process { /// /// /// [SugarTable("process_operation_workstation_mapping","工序工位映射")] public class ProcessOperationWorkstationMapping { /// /// Id /// [SugarColumn(IsPrimaryKey = true, IsIdentity = true)] public int Id { get; set; } /// /// 工序路线code /// [SugarColumn(ColumnName = "fk_routing_code",Length =50)] public string FkRoutingCode { get; set; } /// /// 工序code /// [SugarColumn(ColumnName = "fk_operation_code", Length = 50)] public string FkOperationCode { get; set; } /// /// 生产线体/工作中心code /// [SugarColumn(ColumnName = "fk_productlinebody_code", Length = 50)] public string FkProductlinebodyCode { get; set; } /// /// 工厂code /// [SugarColumn(ColumnName = "fk_factory_code", Length = 50)] public string FkFactoryCode { get; set; } /// /// 车间code /// [SugarColumn(ColumnName = "fk_workshopcode", Length = 50)] public string FkWorkshopcode { get; set; } /// /// 工位code /// [SugarColumn(ColumnName = "fk_workstation_code", Length = 50)] public string FkWorkstationCode { get; set; } /// /// 是否有效:1=有效,0=无效 /// [SugarColumn(ColumnName = "is_active", Length = 50)] public string IsActive { get; set; } /// /// 优先级(可选):如果某工位可执行多个工序,用来排序优先级 /// public int? Priority { get; set; } /// /// 标准加工时间(分钟/小时,可选) /// [SugarColumn(ColumnName = "standard_time")] public decimal StandardTime { get; set; } /// /// 准备时间(如换模等,可选) /// [SugarColumn(ColumnName = "setup_time")] public decimal SetupTime { get; set; } /// /// CreatedTime /// [SugarColumn(ColumnName = "created_time")] public DateTime? CreatedTime { get; set; } /// /// 创建人 /// [SugarColumn(ColumnName = "created_by", Length = 50)] public string CreatedBy { get; set; } /// /// 备注信息 /// [SugarColumn( Length = 50)] public string Remark { get; set; } /// /// UpdatedTime /// [SugarColumn(ColumnName = "updated_time")] public DateTime? UpdatedTime { get; set; } /// /// 更新人 /// [SugarColumn(ColumnName = "updated_by", Length = 50)] public string UpdatedBy { get; set; } } }