paiban/NPP.SmartSchedue.Api.Contracts/Domain/Time/ShiftRuleMappingEntity.cs
Asoka.Wang 21f044712c 1
2025-08-27 18:39:19 +08:00

55 lines
1.4 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using System;
using FreeSql.DataAnnotations;
using ZhonTai.Admin.Core.Entities;
using NPP.SmartSchedue.Api.Contracts.Core.Consts;
namespace NPP.SmartSchedue.Api.Contracts.Domain.Time;
/// <summary>
/// 班次规则关联
/// </summary>
[Table(Name = DbConsts.TableNamePrefix + "shift_rule_mapping")]
public partial class ShiftRuleMappingEntity : EntityTenant
{
/// <summary>
/// 班次ID
/// </summary>
public long ShiftId { get; set; }
/// <summary>
/// 规则ID
/// </summary>
public long RuleId { get; set; }
/// <summary>
/// 规则覆盖参数 (JSON格式覆盖规则默认参数)
/// </summary>
[Column(StringLength = 1500)]
public string OverrideParameters { get; set; }
/// <summary>
/// 是否启用该规则
/// </summary>
public bool IsEnabled { get; set; } = true;
/// <summary>
/// 规则执行优先级 (数字越小优先级越高)
/// </summary>
public int ExecutionPriority { get; set; } = 1;
/// <summary>
/// 规则生效开始时间 (覆盖规则默认时间)
/// </summary>
public DateTime? EffectiveStartTime { get; set; }
/// <summary>
/// 规则生效结束时间 (覆盖规则默认时间)
/// </summary>
public DateTime? EffectiveEndTime { get; set; }
/// <summary>
/// 映射描述
/// </summary>
[Column(StringLength = 300)]
public string MappingDescription { get; set; }
}