2026-03-08 15:46:19 +08:00
|
|
|
using SqlSugar;
|
2026-01-10 16:47:35 +08:00
|
|
|
using YD_Event.Core.Enum;
|
|
|
|
|
|
|
|
|
|
namespace YD_Event.Core.Entities;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2026-03-08 10:42:34 +08:00
|
|
|
/// 项目表
|
2026-01-10 16:47:35 +08:00
|
|
|
/// </summary>
|
2026-03-01 22:32:44 +08:00
|
|
|
[SugarTable("Project")]
|
|
|
|
|
public class Project : Entity<long>, ISoftDelete, ICreatedUserId, ICreatedTime, IUpdatedUserId, IUpdatedTime, IAvailability
|
2026-01-10 16:47:35 +08:00
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 项目名称
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(Length = 128)]
|
2026-03-01 22:32:44 +08:00
|
|
|
public string Name { get; set; }
|
2026-01-10 16:47:35 +08:00
|
|
|
|
|
|
|
|
/// <summary>
|
2026-04-12 16:11:20 +08:00
|
|
|
/// 项目类型(枚举)
|
2026-01-10 16:47:35 +08:00
|
|
|
/// </summary>
|
2026-04-12 16:11:20 +08:00
|
|
|
[SugarColumn(SqlParameterDbType = System.Data.DbType.Int32)]
|
|
|
|
|
public ProjectTypeEnum ProjectType { get; set; }
|
2026-01-10 16:47:35 +08:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 完成人数
|
|
|
|
|
/// </summary>
|
|
|
|
|
public int CompletionCount { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 费用(元)
|
|
|
|
|
/// </summary>
|
|
|
|
|
public decimal Fee { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 时长(分钟)
|
|
|
|
|
/// </summary>
|
|
|
|
|
public int DurationMinutes { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 时长(秒)
|
|
|
|
|
/// </summary>
|
|
|
|
|
public int DurationSeconds { get; set; }
|
|
|
|
|
|
2026-02-08 18:09:05 +08:00
|
|
|
/// <summary>
|
|
|
|
|
/// 场地数量(编排用)
|
|
|
|
|
/// </summary>
|
|
|
|
|
public int VenueCount { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 排序索引(编排用)
|
|
|
|
|
/// </summary>
|
|
|
|
|
public int SortIndex { get; set; }
|
|
|
|
|
|
2026-01-10 16:47:35 +08:00
|
|
|
/// <summary>
|
|
|
|
|
/// 项目组别列表(导航属性)
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(IsIgnore = true)]
|
2026-03-01 22:32:44 +08:00
|
|
|
public List<ProjectGroup>? Groups { get; set; }
|
2026-01-17 12:52:58 +08:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 可用状态
|
|
|
|
|
/// </summary>
|
|
|
|
|
public AvailabilityStatus Status { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2026-02-26 18:29:08 +08:00
|
|
|
/// 标记删除
|
2026-01-17 12:52:58 +08:00
|
|
|
/// </summary>
|
2026-02-26 18:29:08 +08:00
|
|
|
public bool DeleteMark { get; set; }
|
2026-01-17 12:52:58 +08:00
|
|
|
|
|
|
|
|
/// <summary>
|
2026-02-26 18:29:08 +08:00
|
|
|
/// 创建人
|
2026-01-17 12:52:58 +08:00
|
|
|
/// </summary>
|
2026-02-26 18:29:08 +08:00
|
|
|
public long CreatedUserId { get; set; }
|
2026-01-17 12:52:58 +08:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 创建时间
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DateTime CreatedTime { get; set; }
|
2026-02-26 18:29:08 +08:00
|
|
|
|
|
|
|
|
/// <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-01-10 16:47:35 +08:00
|
|
|
}
|