mirror of
https://github.com/C9Glax/tranga.git
synced 2025-10-17 10:50:45 +02:00
This commit is contained in:
19
API/Schema/ActionsContext/ActionRecord.cs
Normal file
19
API/Schema/ActionsContext/ActionRecord.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace API.Schema.ActionsContext;
|
||||
|
||||
[PrimaryKey("Key")]
|
||||
public abstract class ActionRecord(string action, DateTime performedAt) : Identifiable
|
||||
{
|
||||
/// <summary>
|
||||
/// Constant string that describes the performed Action
|
||||
/// </summary>
|
||||
[StringLength(128)]
|
||||
public string Action { get; init; } = action;
|
||||
|
||||
/// <summary>
|
||||
/// UTC Time when Action was performed
|
||||
/// </summary>
|
||||
public DateTime PerformedAt { get; init; } = performedAt;
|
||||
}
|
Reference in New Issue
Block a user