Files
Module.HallOfFame/Shared/Models/HallOfFame.cs

44 lines
1.3 KiB
C#

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, 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; }
public DateTime ModifiedOn { get; set; }
}
}