2026-03-08 15:46:19 +08:00
|
|
|
|
using SqlSugar;
|
2026-01-10 16:47:35 +08:00
|
|
|
|
using YD_Event.Core.Enum;
|
|
|
|
|
|
|
|
|
|
|
|
namespace YD_Event.Core.Entities;
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2026-03-08 10:42:34 +08:00
|
|
|
|
/// 项目表
|
2026-01-10 16:47:35 +08:00
|
|
|
|
/// </summary>
|
2026-03-01 22:32:44 +08:00
|
|
|
|
[SugarTable("Project")]
|
|
|
|
|
|
public class Project : Entity<long>, ISoftDelete, ICreatedUserId, ICreatedTime, IUpdatedUserId, IUpdatedTime, IAvailability
|
2026-01-10 16:47:35 +08:00
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 项目名称
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[SugarColumn(Length = 128)]
|
2026-03-01 22:32:44 +08:00
|
|
|
|
public string Name { get; set; }
|
2026-01-10 16:47:35 +08:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2026-04-12 16:11:20 +08:00
|
|
|
|
/// 项目类型(枚举)
|
2026-01-10 16:47:35 +08:00
|
|
|
|
/// </summary>
|
2026-04-12 16:11:20 +08:00
|
|
|
|
[SugarColumn(SqlParameterDbType = System.Data.DbType.Int32)]
|
|
|
|
|
|
public ProjectTypeEnum ProjectType { get; set; }
|
2026-01-10 16:47:35 +08:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2026-06-10 13:25:53 +08:00
|
|
|
|
/// 完成人数模式(0=单一值, 1=范围值)
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public int CompletionCountType { get; set; } = 0;
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 完成人数(单一值模式时有效)
|
2026-01-10 16:47:35 +08:00
|
|
|
|
/// </summary>
|
|
|
|
|
|
public int CompletionCount { get; set; }
|
|
|
|
|
|
|
2026-06-10 13:25:53 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 完成人数最小值(范围值模式时有效)
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public int? CompletionCountMin { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 完成人数最大值(范围值模式时有效)
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public int? CompletionCountMax { get; set; }
|
|
|
|
|
|
|
2026-01-10 16:47:35 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 费用(元)
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public decimal Fee { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 时长(分钟)
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public int DurationMinutes { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 时长(秒)
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public int DurationSeconds { get; set; }
|
|
|
|
|
|
|
2026-08-11 23:41:18 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 计分规则ID(未配置计分规则时为空,赛事编排确认前必须配置)
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[SugarColumn(IsNullable = true)]
|
|
|
|
|
|
public long? ScoreRuleId { get; set; }
|
|
|
|
|
|
|
2026-07-18 13:12:58 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 备注
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[SugarColumn(ColumnDescription = "备注", Length = 500, IsNullable = true)]
|
|
|
|
|
|
public string? Remark { get; set; }
|
|
|
|
|
|
|
2026-02-08 18:09:05 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 场地数量(编排用)
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public int VenueCount { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 排序索引(编排用)
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public int SortIndex { get; set; }
|
|
|
|
|
|
|
2026-01-10 16:47:35 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 项目组别列表(导航属性)
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[SugarColumn(IsIgnore = true)]
|
2026-03-01 22:32:44 +08:00
|
|
|
|
public List<ProjectGroup>? Groups { get; set; }
|
2026-01-17 12:52:58 +08:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 可用状态
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public AvailabilityStatus Status { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2026-02-26 18:29:08 +08:00
|
|
|
|
/// 标记删除
|
2026-01-17 12:52:58 +08:00
|
|
|
|
/// </summary>
|
2026-02-26 18:29:08 +08:00
|
|
|
|
public bool DeleteMark { get; set; }
|
2026-01-17 12:52:58 +08:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2026-02-26 18:29:08 +08:00
|
|
|
|
/// 创建人
|
2026-01-17 12:52:58 +08:00
|
|
|
|
/// </summary>
|
2026-02-26 18:29:08 +08:00
|
|
|
|
public long CreatedUserId { get; set; }
|
2026-01-17 12:52:58 +08:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 创建时间
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public DateTime CreatedTime { get; set; }
|
2026-02-26 18:29:08 +08:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 更新人
|
|
|
|
|
|
/// </summary>
|
2026-03-08 15:46:19 +08:00
|
|
|
|
[SugarColumn(IsNullable = true)]
|
2026-02-26 18:29:08 +08:00
|
|
|
|
public long? UpdatedUserId { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 更新时间
|
|
|
|
|
|
/// </summary>
|
2026-03-08 15:46:19 +08:00
|
|
|
|
[SugarColumn(IsNullable = true)]
|
2026-02-26 18:29:08 +08:00
|
|
|
|
public DateTime? UpdatedTime { get; set; }
|
2026-01-10 16:47:35 +08:00
|
|
|
|
}
|