using JNPF.Common.Contracts; using JNPF.Common.Security; using SqlSugar; namespace Tnb.EquipMgr.Entities; /// /// 工装工具 /// [SugarTable("tool_tools")] public partial class ToolTools : BaseEntity { public ToolTools() { id = SnowflakeIdHelper.NextId(); } /// /// 所属组织 /// public string? org_id { get; set; } /// /// 所属类型 /// public string type_code { get; set; } = string.Empty; /// /// 工具代码 /// public string model_code { get; set; } = string.Empty; /// /// 型号代码 /// public string tool_code { get; set; } = string.Empty; /// /// 工具名称 /// public string tool_name { get; set; } = string.Empty; /// /// 状态: 10-登记 20-在库 30-已领用 40-已安装 90-已报废 /// public int status { get; set; } /// /// 所在仓库Id /// public long? ware_house_id { get; set; } /// /// 所在库位 /// public string? location_code { get; set; } /// /// 最大使用次数 /// public int? maxuse_times { get; set; } /// /// 累计使用次数 /// public int? used_times { get; set; } /// /// 周期 /// public int cycle_times { get; set; } /// /// 生产厂家 /// public string? supplier_code { get; set; } /// /// 联系人 /// public string? contact_name { get; set; } /// /// 报废原因 /// public string? scrap_reason { get; set; } /// /// 备注 /// public string? remark { get; set; } /// /// 时间戳 /// public string? timestamp { get; set; } /// /// 创建用户 /// public string? create_id { get; set; } /// /// 创建时间 /// public DateTime? create_time { get; set; } /// /// 修改用户 /// public string? modify_id { get; set; } /// /// 修改时间 /// public DateTime? modify_time { get; set; } /// /// 扩展字段 /// public string? extras { get; set; } }