2021-03-22 12:09:25 -04:00
|
|
|
|
using System;
|
2018-02-10 01:26:38 -05:00
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
2021-03-22 12:09:25 -04:00
|
|
|
|
using Data.Models.Server;
|
2018-02-10 01:26:38 -05:00
|
|
|
|
|
2021-03-22 12:09:25 -04:00
|
|
|
|
namespace Data.Models.Client
|
2018-02-10 01:26:38 -05:00
|
|
|
|
{
|
|
|
|
|
public class EFClientMessage : SharedEntity
|
|
|
|
|
{
|
|
|
|
|
[Key]
|
|
|
|
|
public long MessageId { get; set; }
|
2018-11-27 19:31:48 -05:00
|
|
|
|
public long ServerId { get; set; }
|
2018-02-10 01:26:38 -05:00
|
|
|
|
[ForeignKey("ServerId")]
|
|
|
|
|
public virtual EFServer Server { get; set; }
|
|
|
|
|
public int ClientId { get; set; }
|
|
|
|
|
[ForeignKey("ClientId")]
|
|
|
|
|
public virtual EFClient Client { get; set; }
|
|
|
|
|
public string Message { get; set; }
|
|
|
|
|
public DateTime TimeSent { get; set; }
|
2020-11-18 10:08:24 -05:00
|
|
|
|
public bool SentIngame { get; set; }
|
2018-02-10 01:26:38 -05:00
|
|
|
|
}
|
|
|
|
|
}
|