You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
530 B
22 lines
530 B
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace DataBase.Entity
|
|
{
|
|
public class Message
|
|
{
|
|
public int messageId { get; set; }
|
|
public string message { get; set; }
|
|
public DateTime timestamp { get; set; }
|
|
public int player { get; set; }
|
|
public int chat { get; set; }
|
|
|
|
[ForeignKey("player")]
|
|
public Player PlayerId { get; set; }
|
|
|
|
[ForeignKey("chat")]
|
|
public Chat ChatId { get; set; }
|
|
}
|
|
}
|