using System;
using SqlSugar;
namespace TeamAAS_VP.Models
{
[SugarTable("ProductionRecord")]
public class ProductionRecord
{
[SugarColumn(IsPrimaryKey = true)]
public Guid Id { get; set; } = Guid.NewGuid();
public string ProductName { get; set; }
///
/// 产品编号
///
[SugarColumn(Length = 255, IsNullable = true)]
public string ProductCode { get; set; }
///
/// 设备ID
///
public int DeviceId { get; set; }
///
/// 设备编号
///
[SugarColumn(Length = 255, IsNullable = true)]
public string DeviceName { get; set; }
public DateTime Timestamp { get; set; } = DateTime.UtcNow;
///
/// Category like "OK", "NG", etc.
///
public string Category { get; set; }
///
/// quantity for this record
///
public int Quantity { get; set; }
///
/// The user name of the operator who generated this record.
///
[SugarColumn(Length = 255, IsNullable = true)]
public string UserName { get; set; }
public string Remark { get; set; }
}
}