Reporting: Add UserName

This commit is contained in:
2026-02-19 16:37:45 +01:00
parent aae330f46a
commit 235ab23ed4
11 changed files with 137 additions and 101 deletions

View File

@@ -1,12 +1,13 @@
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Interfaces;
using Oqtane.Models;
namespace SZUAbsolventenverein.Module.AdminModules.Models
{
[Table("SZUAbsolventenvereinAdminModules")]
public class AdminModules : IAuditable
public class AdminModules : IAuditable, IReportable
{
[Key]
public int AdminModulesId { get; set; }
@@ -18,5 +19,13 @@ namespace SZUAbsolventenverein.Module.AdminModules.Models
public DateTime CreatedOn { get; set; }
public string ModifiedBy { get; set; }
public DateTime ModifiedOn { get; set; }
[NotMapped] public string ModuleName => "";
[NotMapped] public int ModuleID => ModuleId;
[NotMapped] public int EntityID => AdminModulesId;
[NotMapped] public string UserName => CreatedBy;
}
}

View File

@@ -10,6 +10,7 @@ public class Reporting : IAuditable
public int ReportingID { get; set; }
public int ModuleId { get; set; }
public int EntityId { get; set; }
public string UserName { get; set; }
public string Note { get; set; }
public string Reason { get; set; }

View File

@@ -12,6 +12,7 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Interfaces" Version="0.0.0-11" />
<PackageReference Include="System.ComponentModel.Annotations" Version="5.0.0" />
</ItemGroup>