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