adding completions

This commit is contained in:
ntr committed 2023-08-23 13:39:13 +10:00
1 parent a69a376325
commit 8b1b4f8ac6
11 files changed
+210 -20

No files matched your search

+4 -1
View File
@@ -1,4 +1,5 @@
using Microsoft.EntityFrameworkCore;
using System.ComponentModel.DataAnnotations;
namespace Server;
@@ -7,10 +8,12 @@ public class SpaceRaceDbContext : DbContext {
public SpaceRaceDbContext(DbContextOptions<SpaceRaceDbContext> options) : base(options) {}
}
[Index(nameof(UserId))]
[Index(nameof(Map))]
public class Completion {
public DateTimeOffset Date { get; set; }
public Guid Id { get; set; }
public Guid UserId { get; set; }
public string Map { get; set; }
[Required] public string Map { get; set; }
public double Time { get; set; }
}