namespace ZR.Model.mes.md { /// /// 设备 /// [SugarTable("md_device")] public class MdDevice { /// /// 流水号 /// [SugarColumn(ColumnName = "id", IsPrimaryKey = true, IsIdentity = true)] public int Id { get; set; } /// /// 设备编号 /// [SugarColumn(ColumnName = "device_code")] public string DeviceCode { get; set; } /// /// 设备名称 /// [SugarColumn(ColumnName = "device_name")] public string DeviceName { get; set; } /// /// 设备所属工位id /// [SugarColumn(ColumnName = "fk_workstation_id")] public int? FkWorkstationId { get; set; } [Navigate(NavigateType.OneToOne, nameof(FkWorkstationId))] public MdWorkstation Workstation { get; set; } /// /// 租户号 /// [SugarColumn(ColumnName = "TENANT_ID")] public string TenantId { get; set; } /// /// 乐观锁 /// [SugarColumn(ColumnName = "REVISION")] public int? Revision { get; set; } /// /// 创建人 /// [SugarColumn(ColumnName = "CREATED_BY")] public string CreatedBy { get; set; } /// /// 创建时间 /// [SugarColumn(ColumnName = "CREATED_TIME")] public DateTime? CreatedTime { get; set; } /// /// 更新人 /// [SugarColumn(ColumnName = "UPDATED_BY")] public string UpdatedBy { get; set; } /// /// 更新时间 /// [SugarColumn(ColumnName = "UPDATED_TIME")] public DateTime? UpdatedTime { get; set; } } }