using System.ComponentModel.DataAnnotations; using API.Schema.ActionsContext.Actions; using Microsoft.EntityFrameworkCore; namespace API.Schema.ActionsContext; [PrimaryKey("Key")] public abstract class ActionRecord(ActionsEnum action, DateTime performedAt) : Identifiable { /// /// Constant string that describes the performed Action /// [StringLength(128)] public ActionsEnum Action { get; init; } = action; /// /// UTC Time when Action was performed /// public DateTime PerformedAt { get; init; } = performedAt; }