mirror of
https://github.com/JogmansonReal/Radicade.git
synced 2026-10-27 07:59:03 -07:00
Radicade Public Code
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user