You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ProductionSystem/Production_Oil/DbModel/T_Oil.cs

43 lines
1.0 KiB
C#

using SqlSugar;
using System;
namespace Production_Oil.DbModel
{
/// <summary>
/// 注油工位压缩机空重记录表
/// </summary>
[SugarTable("t_oil")]
public class T_Oil
{
public T_Oil()
{
Id = Guid.NewGuid().ToString();
CreatedTime = DateTime.Now;
}
/// <summary>
/// 主键
/// </summary>
[SugarColumn(ColumnName = "id")]
public string Id { get; set; }
/// <summary>
/// 产品条码
/// </summary>
[SugarColumn(ColumnName = "product_code")]
public string ProductCode { get; set; }
/// <summary>
/// 压缩机空重
/// </summary>
[SugarColumn(ColumnName = "weight")]
public decimal Weight { get; set; }
/// <summary>
/// 创建时间
/// </summary>
[SugarColumn(ColumnName = "createdtime", IsOnlyIgnoreUpdate = true)]
public DateTime CreatedTime { get; set; } = DateTime.Now;
}
}