72 lines
1.7 KiB
C#
72 lines
1.7 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>
|
||
/// 单位类型(枚举:0=主办,1=承办,2=协办,3=赞助)
|
||
/// </summary>
|
||
public UnitType UnitType { get; set; }
|
||
|
||
/// <summary>
|
||
/// 自定义单位类型(当需要自定义时使用)
|
||
/// </summary>
|
||
[SugarColumn(Length = 128, IsNullable = true)]
|
||
public string? CustomUnitType { 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; }
|
||
}
|