2026-02-08 18:09:05 +08:00
|
|
|
|
using SqlSugar;
|
2026-03-08 15:46:19 +08:00
|
|
|
|
using YD_Event.Core.Enum;
|
2026-02-08 18:09:05 +08:00
|
|
|
|
|
|
|
|
|
|
namespace YD_Event.Core.Entities;
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2026-03-08 15:46:19 +08:00
|
|
|
|
/// 赛事参与单位表
|
2026-02-08 18:09:05 +08:00
|
|
|
|
/// </summary>
|
2026-03-08 15:46:19 +08:00
|
|
|
|
[SugarTable("EventUnit")]
|
|
|
|
|
|
public class EventUnit : Entity<long>, ISoftDelete, ICreatedUserId, ICreatedTime, IUpdatedUserId, IUpdatedTime
|
2026-02-08 18:09:05 +08:00
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
2026-03-08 15:46:19 +08:00
|
|
|
|
/// 关联的赛事ID
|
2026-02-08 18:09:05 +08:00
|
|
|
|
/// </summary>
|
|
|
|
|
|
public long EventId { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2026-04-23 09:29:03 +08:00
|
|
|
|
/// 单位类型(枚举:0=主办,1=承办,2=协办,3=赞助)
|
2026-03-08 15:46:19 +08:00
|
|
|
|
/// </summary>
|
|
|
|
|
|
public UnitType UnitType { get; set; }
|
|
|
|
|
|
|
2026-04-23 09:29:03 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 自定义单位类型(当需要自定义时使用)
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[SugarColumn(Length = 128, IsNullable = true)]
|
|
|
|
|
|
public string? CustomUnitType { get; set; }
|
|
|
|
|
|
|
2026-03-08 15:46:19 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 单位名称
|
2026-02-08 18:09:05 +08:00
|
|
|
|
/// </summary>
|
|
|
|
|
|
[SugarColumn(Length = 128)]
|
2026-03-08 15:46:19 +08:00
|
|
|
|
public string UnitName { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 单位LOGO URL
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[SugarColumn(Length = 256, IsNullable = true)]
|
|
|
|
|
|
public string? LogoUrl { get; set; }
|
2026-02-08 18:09:05 +08:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 排序
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public int Sort { get; set; }
|
2026-02-26 18:29:08 +08:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 标记删除
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public bool DeleteMark { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 创建人
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public long CreatedUserId { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 创建时间
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public DateTime CreatedTime { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <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-02-08 18:09:05 +08:00
|
|
|
|
}
|