using System;
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_group_relation")]
public partial class ProcessGroupRelationEntity : EntityTenant
{
///
/// 工序组ID
///
public long ProcessGroupId { get; set; }
///
/// 工序ID
///
public long ProcessId { get; set; }
///
/// 关联类型 (A=>B, A=>B=>C)
///
[Column(StringLength = 20)]
public string RelationType { get; set; }
///
/// 前置工序ID
///
public long? PredecessorProcessId { get; set; }
///
/// 后置工序ID
///
public long? SuccessorProcessId { get; set; }
///
/// 关联顺序
///
public int RelationOrder { get; set; }
///
/// 是否启用
///
public bool IsEnabled { get; set; } = true;
}