using QYZH.InteractiveMagazine.Models.Enum;
using SqlSugar;

namespace QYZH.InteractiveMagazine.Models.Entity;

/// <summary>
/// 资料文件表
/// </summary>
[SugarTable("Content_MaterialFile")]
public partial class MaterialFile : SqlSugarBaseEntity
{
    /// <summary>
    /// Desc:资料ID
    /// Default:
    /// Nullable:False
    /// </summary>
    public long MaterialId { get; set; }

    /// <summary>
    /// Desc:文件类型
    /// Default:
    /// Nullable:False
    /// </summary>
    public MaterialFileTypeEnum FileType { get; set; }

    /// <summary>
    /// Desc:文件OSS路径
    /// Default:
    /// Nullable:False
    /// </summary>
    public string FileUrl { get; set; } = string.Empty;

    /// <summary>
    /// Desc:文件名称
    /// Default:
    /// Nullable:True
    /// </summary>
    public string? FileName { get; set; }

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