202 lines
4.6 KiB
C#
Raw Normal View History

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