20 lines
553 B
C#
20 lines
553 B
C#
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace BGC.Server.DataLayer.Entities
|
|
{
|
|
[Table("owners")]
|
|
public class Owner
|
|
{
|
|
[Column("id")]
|
|
public long Id { get; set; }
|
|
|
|
[Column("first_name")]
|
|
public string? FirstName { get; set; }
|
|
|
|
[Column("last_name")]
|
|
public string? LastName { get; set; }
|
|
public ICollection<Game> Games { get; set; } = new List<Game>();
|
|
public ICollection<GameOwner> GameOwners { get; set; } = new List<GameOwner>();
|
|
}
|
|
}
|