using YD_Event.Core.Enum;
namespace YD_Event.Core.Entities;
///
/// 赛事项目表
///
[SugarTable("EventProject")]
public class EventProject : Entity, ISoftDelete, ICreatedUserId, ICreatedTime, IUpdatedUserId, IUpdatedTime, IAvailability
{
///
/// 关联的赛事ID
///
public long EventId { get; set; }
///
/// 项目名称
///
[SugarColumn(Length = 128)]
public string ProjectName { get; set; }
///
/// 项目主类型(个人/团队)
///
public ProjectMainType ProjectMainType { get; set; }
///
/// 项目子类型(速度/花样)
///
public ProjectSubType ProjectSubType { get; set; }
///
/// 完成人数
///
public int CompletionCount { get; set; }
///
/// 费用(元)
///
public decimal Fee { get; set; }
///
/// 时长(分钟)
///
public int DurationMinutes { get; set; }
///
/// 时长(秒)
///
public int DurationSeconds { get; set; }
///
/// 场地数量(编排用)
///
public int VenueCount { get; set; }
///
/// 排序索引(编排用)
///
public int SortIndex { get; set; }
///
/// 项目组别列表(导航属性)
///
[SugarColumn(IsIgnore = true)]
public List? Groups { get; set; }
///
/// 可用状态
///
public AvailabilityStatus Status { get; set; }
///
/// 标记删除
///
public bool DeleteMark { get; set; }
///
/// 创建人
///
public long CreatedUserId { get; set; }
///
/// 创建时间
///
public DateTime CreatedTime { get; set; }
///
/// 更新人
///
public long? UpdatedUserId { get; set; }
///
/// 更新时间
///
public DateTime? UpdatedTime { get; set; }
}