using SqlSugar;
using YD_Event.Core.Enum;
namespace YD_Event.Core.Entities;
///
/// 项目表
///
[SugarTable("Project")]
public class Project : Entity, ISoftDelete, ICreatedUserId, ICreatedTime, IUpdatedUserId, IUpdatedTime, IAvailability
{
///
/// 关联的赛事ID
///
public long EventId { get; set; }
///
/// 项目名称
///
[SugarColumn(Length = 128)]
public string Name { get; set; }
///
/// 项目类型ID
///
public long ProjectTypeId { get; set; }
///
/// 项目类型信息
///
[SugarColumn(IsIgnore = true)]
public ProjectType? ProjectType { 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; }
///
/// 更新人
///
[SugarColumn(IsNullable = true)]
public long? UpdatedUserId { get; set; }
///
/// 更新时间
///
[SugarColumn(IsNullable = true)]
public DateTime? UpdatedTime { get; set; }
}