using YD_Event.Core.Enum;
namespace YD_Event.Core.Entities;
///
/// 赛事信息表
///
public class EventInfo : Entity, ISoftDelete, ICreatedUserId, ICreatedTime, IUpdatedUserId, IUpdatedTime, IAvailability
{
///
/// 赛事名称
///
[SugarColumn(Length = 128)]
public string EventName { get; set; }
///
/// 封面图片URL
///
[SugarColumn(Length = 256)]
public string? CoverImage { get; set; }
///
/// 赛事视频URL
///
[SugarColumn(Length = 256)]
public string? EventVideo { get; set; }
///
/// 赛事类型
///
public EventFormat EventType { get; set; }
///
/// 收费模式
///
public ChargeMode ChargeMode { get; set; }
///
/// 赛事状态
///
public EventStatus EventStatus { get; set; }
///
/// 报名方式
///
public RegistrationType RegistrationType { get; set; }
///
/// 积分发放规则ID
///
public long PointsRuleId { get; set; }
///
/// 积分发放规则(导航属性)
///
[SugarColumn(IsIgnore = true)]
public PointsRule? PointsRule { get; set; }
///
/// 报名开始时间
///
public DateTime RegistrationStartTime { get; set; }
///
/// 报名结束时间
///
public DateTime RegistrationEndTime { get; set; }
///
/// 是否需要上传素材
///
public bool IsNeedMaterial { get; set; }
///
/// 上传素材备注
///
[SugarColumn(Length = 256)]
public string? MaterialRemark { get; set; }
///
/// 素材上传开始时间
///
public DateTime? MaterialUploadStartTime { get; set; }
///
/// 素材上传结束时间
///
public DateTime? MaterialUploadEndTime { get; set; }
///
/// 比赛开始时间
///
public DateTime MatchStartTime { get; set; }
///
/// 比赛结束时间
///
public DateTime MatchEndTime { get; set; }
///
/// 赛事省份
///
[SugarColumn(Length = 32)]
public string Province { get; set; }
///
/// 赛事城市
///
[SugarColumn(Length = 32)]
public string City { get; set; }
///
/// 赛事区域
///
[SugarColumn(Length = 32)]
public string District { get; set; }
///
/// 省份Id
///
[SugarColumn(ColumnName = "ProvinceId")]
public int ProvinceId { get; set; }
///
/// 城市Id
///
[SugarColumn(ColumnName = "CityId")]
public int CityId { get; set; }
///
/// 区县Id
///
[SugarColumn(ColumnName = "DistrictId")]
public int DistrictId { get; set; }
///
/// 省份信息(导航属性)
///
[SugarColumn(IsIgnore = true)]
public Sys_Province? ProvinceInfo { get; set; }
///
/// 城市信息(导航属性)
///
[SugarColumn(IsIgnore = true)]
public Sys_City? CityInfo { get; set; }
///
/// 区县信息(导航属性)
///
[SugarColumn(IsIgnore = true)]
public Sys_District? DistrictInfo { get; set; }
///
/// 详细地址
///
[SugarColumn(Length = 256)]
public string DetailAddress { get; set; }
///
/// 赛事简介
///
[SugarColumn(ColumnDataType = "TEXT")]
public string EventIntroduction { get; set; }
///
/// 自定义字段名称(废弃,使用EventCustomField表)
///
[SugarColumn(IsIgnore = true)]
public string? CustomFieldName { get; set; }
///
/// 流程状态
///
public ProcessStatus ProcessStatus { 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; }
}