neu report integriert
This commit is contained in:
@@ -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; }
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Interfaces" Version="0.0.0-12" />
|
||||
<PackageReference Include="System.ComponentModel.Annotations" Version="5.0.0" />
|
||||
</ItemGroup>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user