using System.ComponentModel.DataAnnotations; using API.Schema.MangaContext; namespace API.Schema.ActionsContext.Actions; public sealed class ChapterDownloadedActionRecord(ActionsEnum action, DateTime performedAt, string chapterId) : ActionRecord(action, performedAt) { public ChapterDownloadedActionRecord(Chapter chapter) : this(ActionsEnum.ChapterDownloaded, DateTime.UtcNow, chapter.Key) { } /// /// Chapter that was downloaded /// [StringLength(64)] public string ChapterId { get; init; } = chapterId; }