Client has been renamed to launcher, and thus namespaces and artifact names had to change. The server project has also had some artifacts renamed in order to create a more clear separation of builds. This will break auto-updates before v0.9.0.
19 lines
556 B
C#
19 lines
556 B
C#
using System;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
using System.Text.Json.Serialization;
|
|
|
|
namespace LANCommander.Launcher.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; }
|
|
}
|
|
}
|