Files
Tranga/API/Schema/ActionsContext/ActionRecord.cs
2025-10-16 19:13:44 +02:00

20 lines
600 B
C#

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
{
/// <summary>
/// Constant string that describes the performed Action
/// </summary>
[StringLength(128)]
public ActionsEnum Action { get; init; } = action;
/// <summary>
/// UTC Time when Action was performed
/// </summary>
public DateTime PerformedAt { get; init; } = performedAt;
}