using System;
using System.Collections.Generic;
using FreeSql.DataAnnotations;
using ZhonTai.Admin.Core.Entities;
using NPP.SmartSchedue.Api.Contracts.Core.Consts;
namespace NPP.SmartSchedue.Api.Contracts.Domain.Work;
///
/// 工序实体
///
[Table(Name = DbConsts.TableNamePrefix + "process")]
public partial class ProcessEntity : EntityTenant
{
///
/// 工序编号
///
[Column(StringLength = 50)]
public string ProcessCode { get; set; }
///
/// 工序名称
///
[Column(StringLength = 100)]
public string ProcessName { get; set; }
///
/// 工序分类
///
[Column(StringLength = 50)]
public string ProcessCategory { get; set; }
///
/// 人员资质要求
///
[Column(StringLength = 500)]
public string QualificationRequirements { get; set; }
///
/// 设备类型
///
public string? EquipmentType { get; set; }
///
/// 理论任务时长(小时)
///
public decimal TheoreticalDuration { get; set; }
///
/// 工序描述
///
[Column(StringLength = 500)]
public string Description { get; set; }
///
/// 是否启用
///
public bool IsEnabled { get; set; } = true;
///
/// 工序优先级
///
public int Priority { get; set; } = 1;
///
/// 预估持续时间
///
public TimeSpan? EstimatedDuration { get; set; }
///
/// 设备类型ID
///
public long? EquipmentTypeId { get; set; }
}