mirror of
https://github.com/C9Glax/tranga.git
synced 2025-10-18 03:10:45 +02:00
This commit is contained in:
22
API/Schema/ActionsContext/Actions/DataMovedActionRecord.cs
Normal file
22
API/Schema/ActionsContext/Actions/DataMovedActionRecord.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace API.Schema.ActionsContext.Actions;
|
||||
|
||||
public sealed class DataMovedActionRecord(string action, DateTime performedAt, string from, string to) : ActionRecord(action, performedAt)
|
||||
{
|
||||
public DataMovedActionRecord(string from, string to) : this(DataMovedAction, DateTime.UtcNow, from, to) { }
|
||||
|
||||
/// <summary>
|
||||
/// From path
|
||||
/// </summary>
|
||||
[StringLength(2048)]
|
||||
public string From { get; init; } = from;
|
||||
|
||||
/// <summary>
|
||||
/// To path
|
||||
/// </summary>
|
||||
[StringLength(2048)]
|
||||
public string To { get; init; } = to;
|
||||
|
||||
public const string DataMovedAction = "Tranga.DataMoved";
|
||||
}
|
Reference in New Issue
Block a user