mirror of
https://github.com/JogmansonReal/Radicade.git
synced 2026-10-26 07:29:00 -07:00
36 lines
681 B
C#
36 lines
681 B
C#
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
namespace RadicadeServer.RecNet.Leaderboards
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
[Index(nameof(RoomId), nameof(StatChannel), nameof(PlayerId))]
|
|
public class LeaderboardScore
|
|
{
|
|
[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
|
public long Id { get; set; }
|
|
|
|
public long RoomId { get; set; }
|
|
|
|
public long SubRoomId { get; set; } = 0;
|
|
|
|
public long PlayerId { get; set; }
|
|
|
|
|
|
public int StatChannel { get; set; }
|
|
|
|
|
|
public double Score { get; set; }
|
|
|
|
|
|
public long Time { get; set; }
|
|
|
|
public DateTime SubmittedAt { get; set; } = DateTime.UtcNow;
|
|
}
|
|
}
|