chat logs
This commit is contained in:
23
ReallifeGamemode.Database/Entities/Logs/Chat/ChatLogEntry.cs
Normal file
23
ReallifeGamemode.Database/Entities/Logs/Chat/ChatLogEntry.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Text;
|
||||
|
||||
namespace ReallifeGamemode.Database.Entities.Logs.Chat
|
||||
{
|
||||
public abstract class ChatLogEntry
|
||||
{
|
||||
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||
public long Id { get; set; }
|
||||
|
||||
[ForeignKey(nameof(UserId))]
|
||||
public User User { get; set; }
|
||||
|
||||
public int UserId { get; set; }
|
||||
|
||||
public string Text { get; set; }
|
||||
|
||||
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||
public DateTime Time { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace ReallifeGamemode.Database.Entities.Logs.Chat
|
||||
{
|
||||
public class DepartmentChatLogEntry : ChatLogEntry
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Text;
|
||||
|
||||
namespace ReallifeGamemode.Database.Entities.Logs.Chat
|
||||
{
|
||||
public class FactionChatLogEntry : ChatLogEntry
|
||||
{
|
||||
[ForeignKey(nameof(Faction))]
|
||||
public int FactionId { get; set; }
|
||||
|
||||
public Faction Faction { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace ReallifeGamemode.Database.Entities.Logs.Chat
|
||||
{
|
||||
public class GangChatLogEntry : ChatLogEntry
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Text;
|
||||
|
||||
namespace ReallifeGamemode.Database.Entities.Logs.Chat
|
||||
{
|
||||
public class GroupChatLogEntry : ChatLogEntry
|
||||
{
|
||||
public int GroupId { get; set; }
|
||||
|
||||
[ForeignKey(nameof(GroupId))]
|
||||
public Group Group { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace ReallifeGamemode.Database.Entities.Logs.Chat
|
||||
{
|
||||
public class LeaderChatLogEntry : ChatLogEntry
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace ReallifeGamemode.Database.Entities.Logs.Chat
|
||||
{
|
||||
public class LocalChatLogEntry : ChatLogEntry
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace ReallifeGamemode.Database.Entities.Logs.Chat
|
||||
{
|
||||
public class NewsChatLogEntry : ChatLogEntry
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace ReallifeGamemode.Database.Entities.Logs.Chat
|
||||
{
|
||||
public class OChatLogEntry : ChatLogEntry
|
||||
{
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user