Files
1258/JinYuan.DAL/Models/MaterialFrameRule.cs
T

48 lines
1.5 KiB
C#
Raw Normal View History

2026-08-31 13:54:07 +08:00
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace JinYuan.DAL.Models
{
/// <summary>
/// 料框码规则表
/// </summary>
[SugarTable("material_frame_rule")]
public class MaterialFrameRule
{
/// <summary>
/// 主键ID
/// </summary>
[SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
public int Id { get; set; }
/// <summary>
/// 料框码规则起始匹配编码(第4-7位)
/// </summary>
[SugarColumn(ColumnName = "start_code", Length = 20, IsNullable = false)]
public string Start_Code { get; set; }
/// <summary>
/// 车间编码 (如 601)
/// </summary>
[SugarColumn(ColumnName = "workshop_code", Length = 10, IsNullable = false)]
public string Workshop_Code { get; set; } = string.Empty;
/// <summary>
/// 逻辑删除标识 (0:正常, 1:已删除)
/// 注意:建议在Service层统一过滤此字段,不直接参与常规业务查询映射
/// </summary>
[SugarColumn(ColumnName = "is_deleted")]
public bool Is_Deleted { get; set; }
/// <summary>
/// 最后更新时间
/// </summary>
[SugarColumn(ColumnName = "update_time", IsOnlyIgnoreUpdate = true)] // 插入时由数据库默认值处理,更新时自动更新
public DateTime Update_Time { get; set; }
}
}