using Dlhis.Entity.Basic.Enums;
using Kurisu.AspNetCore.DataAccess.SqlSugar;
using SqlSugar;
using SqlSugar.DbConvert;
namespace Dlhis.Entity.Basic.Entity;
///
/// 节假日
///
[SugarTable(TableName = "Holidays")]
public class HolidayEntity : SugarBaseEntity
{
///
/// 年份
///
[SugarColumn(IsNullable = false, ColumnDescription = "年份")]
public int Year { get; set; }
///
/// 节假日类型
///
[SugarColumn(IsNullable = false, ColumnDescription = "节假日类型", ColumnDataType = "varchar(50)", SqlParameterDbType = typeof(EnumToStringConvert))]
public HolidayEnumType Type { get; set; }
///
/// 名称
///
[SugarColumn(IsNullable = false, ColumnDescription = "名称")]
public string Name { get; set; }
///
/// 开始日期
///
[SugarColumn(IsNullable = false, ColumnDescription = "开始日期")]
public DateOnly Start { get; set; }
///
/// 结束日期
///
[SugarColumn(IsNullable = false, ColumnDescription = "结束日期")]
public DateOnly End { get; set; }
}