Files
Radicade/Server/Rooms/PlayerInteraction.cs
2026-10-16 23:33:13 -07:00

32 lines
935 B
C#

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;
}
}