adding completions
This commit is contained in:
1 parent
a69a376325
commit
8b1b4f8ac6
11 files changed
+210
-20
No files matched your search
@@ -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; }
|
||||
}
|
||||
Reference in new issue
Block a user