- Lesson.cs and LessonMedia.cs model classes - LessonStore.cs with CRUD operations - Microsoft.Data.Sqlite package reference - Default DB path: ~/.local/share/jellyfin-lessons/lessons.db Closes #4
17 lines
657 B
C#
17 lines
657 B
C#
namespace Jellyfin.Plugin.Lessons.Data.Models;
|
|
|
|
public class Lesson
|
|
{
|
|
public string Id { get; set; } = string.Empty;
|
|
public string Title { get; set; } = string.Empty;
|
|
public int Grade { get; set; }
|
|
public string Subject { get; set; } = string.Empty;
|
|
public string LessonDate { get; set; } = string.Empty;
|
|
public string? Description { get; set; }
|
|
public string SourcePath { get; set; } = string.Empty;
|
|
public string? CompiledHtml { get; set; }
|
|
public string CreatedAt { get; set; } = string.Empty;
|
|
public string UpdatedAt { get; set; } = string.Empty;
|
|
|
|
public List<LessonMedia> MediaItems { get; set; } = new();
|
|
}
|