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.
19 lines
412 B
19 lines
412 B
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace DataBase.Entity
|
|
{
|
|
public class Chat
|
|
{
|
|
public int chatId { get; set; }
|
|
public int sender { get; set; }
|
|
public int recipient { get; set; }
|
|
|
|
[ForeignKey("sender")]
|
|
public Player PlayerSender { get; set; }
|
|
|
|
[ForeignKey("recipient")]
|
|
public Player PlayerRecipient { get; set; }
|
|
}
|
|
}
|