66 lines
1.4 KiB
C#
66 lines
1.4 KiB
C#
using SqlSugar;
|
|
using YD_Event.Core.Enum;
|
|
|
|
namespace YD_Event.Core.Entities;
|
|
|
|
/// <summary>
|
|
/// 赛事参与单位表
|
|
/// </summary>
|
|
[SugarTable("EventUnit")]
|
|
public class EventUnit : Entity<long>, ISoftDelete, ICreatedUserId, ICreatedTime, IUpdatedUserId, IUpdatedTime
|
|
{
|
|
/// <summary>
|
|
/// 关联的赛事ID
|
|
/// </summary>
|
|
public long EventId { get; set; }
|
|
|
|
/// <summary>
|
|
/// 单位类型
|
|
/// </summary>
|
|
public UnitType UnitType { get; set; }
|
|
|
|
/// <summary>
|
|
/// 单位名称
|
|
/// </summary>
|
|
[SugarColumn(Length = 128)]
|
|
public string UnitName { get; set; }
|
|
|
|
/// <summary>
|
|
/// 单位LOGO URL
|
|
/// </summary>
|
|
[SugarColumn(Length = 256, IsNullable = true)]
|
|
public string? LogoUrl { get; set; }
|
|
|
|
/// <summary>
|
|
/// 排序
|
|
/// </summary>
|
|
public int Sort { get; set; }
|
|
|
|
/// <summary>
|
|
/// 标记删除
|
|
/// </summary>
|
|
public bool DeleteMark { get; set; }
|
|
|
|
/// <summary>
|
|
/// 创建人
|
|
/// </summary>
|
|
public long CreatedUserId { get; set; }
|
|
|
|
/// <summary>
|
|
/// 创建时间
|
|
/// </summary>
|
|
public DateTime CreatedTime { get; set; }
|
|
|
|
/// <summary>
|
|
/// 更新人
|
|
/// </summary>
|
|
[SugarColumn(IsNullable = true)]
|
|
public long? UpdatedUserId { get; set; }
|
|
|
|
/// <summary>
|
|
/// 更新时间
|
|
/// </summary>
|
|
[SugarColumn(IsNullable = true)]
|
|
public DateTime? UpdatedTime { get; set; }
|
|
}
|