using JNPF.Common.Contracts;
using JNPF.Common.Security;
using SqlSugar;
namespace Tnb.BasicData.Entities;
///
/// 时间日历
///
[SugarTable("bas_time_calendar")]
public partial class BasTimeCalendar : BaseEntity
{
public BasTimeCalendar()
{
id = SnowflakeIdHelper.NextId();
}
///
/// 所属组织
///
public string? org_id { get; set; }
///
/// 日期
///
public DateTime date { get; set; } = DateTime.Now;
///
/// 第几周
///
public int dateint { get; set; }
///
/// 周
///
public int week { get; set; }
///
/// 月
///
public int month { get; set; }
///
/// 季
///
public int quarter { get; set; }
///
/// 年
///
public int year { get; set; }
///
/// 是否工作日
///
public int is_workday { get; set; }
///
/// 周的第几天
///
public int dayofweek { get; set; }
///
/// 年的第几天
///
public int dayofyear { get; set; }
///
/// 时间戳(用于并发控制)
///
public string? timestamp { get; set; }
///
/// 创建用户
///
public string? create_id { get; set; }
///
/// 创建时间
///
public DateTime create_time { get; set; } = DateTime.Now;
///
/// 修改用户
///
public string? modify_id { get; set; }
///
/// 修改时间
///
public DateTime? modify_time { get; set; }
///
/// 扩展字段
///
public string? extras { get; set; }
}