neu report integriert

This commit is contained in:
2026-02-19 19:58:08 +01:00
parent 22bec79bab
commit 68529dbce4
7 changed files with 45 additions and 113 deletions

View File

@@ -1,28 +1,40 @@
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Interfaces;
using Oqtane.Models;
namespace SZUAbsolventenverein.Module.HallOfFame.Models
{
[Table("SZUAbsolventenvereinHallOfFame")]
public class HallOfFame : IAuditable
public class HallOfFame : IAuditable, IReportable
{
[Key]
public int HallOfFameId { get; set; }
public int ModuleId { get; set; }
public string Name { get; set; }
public int Year { get; set; }
public string Description { get; set; }
public string Image { get; set; }
public string Link { get; set; }
public string Status { get; set; } // "Draft" or "Published"
public int UserId { get; set; } // Owner
[NotMapped]
public bool IsReported { get; set; }
[NotMapped]
public string ReportReason { get; set; }
[NotMapped]
public string ModuleName => "";
[NotMapped]
public int ModuleID => ModuleId;
[NotMapped]
public int EntityID => HallOfFameId;
[NotMapped]
public string UserName => Name;
public string CreatedBy { get; set; }
public DateTime CreatedOn { get; set; }
public string ModifiedBy { get; set; }

View File

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