namespace LearningMaterialSystem.Models;

public class HocLieu
{
    public int Id { get; set; }
    public string TieuDe { get; set; } = string.Empty;
    public string Loai { get; set; } = string.Empty; // PDF, Video, Slide, ...
    public string DuongDanTep { get; set; } = string.Empty;
    public string? MoTa { get; set; }
    /// <summary>ChoDuyet | DaDuyet</summary>
    public string TrangThai { get; set; } = "ChoDuyet";
    public DateTime NgayTao { get; set; } = DateTime.UtcNow;

    public int MonHocId { get; set; }
    public MonHoc? MonHoc { get; set; }

    /// <summary>Giảng viên đăng tải (null = dữ liệu cũ)</summary>
    public int? NguoiDungId { get; set; }
    public NguoiDung? NguoiDung { get; set; }

    public ICollection<PhienBanHocLieu> PhienBans { get; set; } = new List<PhienBanHocLieu>();
}

