using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace RadicadeServer.RecNet.Rooms { public class PlayerInteraction { public bool Cheered { get; set; } public bool Favorited { get; set; } public PlayerInteraction(PlayerInteractionDB db) { Cheered = db.Cheered; Favorited = db.Favorited; } public PlayerInteraction() { } } public class PlayerInteractionDB { [Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)] public long InteractionId { get; set; } public long PlayerId { get; set; } public long RoomId { get; set; } public bool Cheered { get; set; } public bool Favorited { get; set; } public DateTime CheeredAt { get; set; } = DateTime.Now; public DateTime FavoritedAt { get; set; } = DateTime.Now; public int VisitCount { get; set; } public bool Visited { get; set; } public DateTime LastVisted { get; set; } = DateTime.Now; } }