2017-11-25 20:29:58 -05:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
2018-04-08 02:44:42 -04:00
|
|
|
|
namespace SharedLibraryCore.Database.Models
|
2017-11-25 20:29:58 -05:00
|
|
|
|
{
|
|
|
|
|
public class EFPenalty : SharedEntity
|
|
|
|
|
{
|
|
|
|
|
[Key]
|
|
|
|
|
public int PenaltyId { get; set; }
|
|
|
|
|
[Required]
|
|
|
|
|
public int LinkId { get; set; }
|
|
|
|
|
[ForeignKey("LinkId")]
|
|
|
|
|
public virtual EFAliasLink Link { get; set; }
|
|
|
|
|
[Required]
|
|
|
|
|
public int OffenderId { get; set; }
|
|
|
|
|
[ForeignKey("OffenderId")]
|
|
|
|
|
public virtual EFClient Offender { get; set; }
|
|
|
|
|
[Required]
|
|
|
|
|
public int PunisherId { get; set; }
|
|
|
|
|
[ForeignKey("PunisherId")]
|
|
|
|
|
public virtual EFClient Punisher { get; set; }
|
|
|
|
|
[Required]
|
|
|
|
|
public DateTime When { get; set; }
|
|
|
|
|
[Required]
|
|
|
|
|
public DateTime Expires { get; set; }
|
|
|
|
|
[Required]
|
|
|
|
|
public string Offense { get; set; }
|
2018-05-30 21:50:20 -04:00
|
|
|
|
public string AutomatedOffense { get; set; }
|
2017-11-25 20:29:58 -05:00
|
|
|
|
public Objects.Penalty.PenaltyType Type { get; set; }
|
|
|
|
|
}
|
|
|
|
|
}
|