using SqlSugar;

namespace QYZH.InteractiveMagazine.Models.Entity;

/// <summary>
/// 资料表
/// </summary>
[SugarTable("Content_Material")]
public partial class Material : SqlSugarBaseEntity
{
    /// <summary>
    /// Desc:资料标题
    /// Default:
    /// Nullable:False
    /// </summary>
    public string Title { get; set; } = string.Empty;

    /// <summary>
    /// Desc:资料名称
    /// Default:
    /// Nullable:True
    /// </summary>
    public string? Name { get; set; }

    /// <summary>
    /// Desc:资料描述
    /// Default:
    /// Nullable:True
    /// </summary>
    public string? Description { get; set; }

    /// <summary>
    /// Desc:排序值，越小越靠前
    /// Default:0
    /// Nullable:False
    /// </summary>
    public int Sort { get; set; }

    /// <summary>
    /// Desc:生效开始时间
    /// Default:
    /// Nullable:True
    /// </summary>
    public DateTime? StartTime { get; set; }

    /// <summary>
    /// Desc:生效结束时间
    /// Default:
    /// Nullable:True
    /// </summary>
    public DateTime? EndTime { get; set; }
}
