LANCommander/LANCommander.Client.Data/Models/PlaySession.cs
2024-06-02 23:01:37 -05:00

19 lines
554 B
C#

using System;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text.Json.Serialization;
namespace LANCommander.Client.Data.Models
{
[Table("PlaySessions")]
public class PlaySession : BaseModel
{
public DateTime? Start { get; set; }
public DateTime? End { get; set; }
public Guid? GameId { get; set; }
[JsonIgnore]
[ForeignKey(nameof(GameId))]
[InverseProperty("PlaySessions")]
public virtual Game? Game { get; set; }
public Guid UserId { get; set; }
}
}