using System.ComponentModel.DataAnnotations; using API.Schema.MangaContext; namespace API.Schema.ActionsContext.Actions.Generic; public abstract class ActionWithMangaRecord(string action, DateTime performedAt, string mangaId) : ActionRecord(action, performedAt) { protected ActionWithMangaRecord(string action, DateTime performedAt, Manga manga) : this(action, performedAt, manga.Key) { } /// /// for which the cover was downloaded /// [StringLength(64)] public string MangaId { get; init; } = mangaId; }