server init
This commit is contained in:
1 parent
893155b53d
commit
e7be495f7f
14 files changed
+213
-6
No files matched your search
@@ -0,0 +1,16 @@
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace Server;
|
||||
|
||||
public class SpaceRaceDbContext : DbContext {
|
||||
public DbSet<Completion> Completions { get; set; }
|
||||
public SpaceRaceDbContext(DbContextOptions<SpaceRaceDbContext> options) : base(options) {}
|
||||
}
|
||||
|
||||
public class Completion {
|
||||
public DateTimeOffset Date { get; set; }
|
||||
public Guid Id { get; set; }
|
||||
public Guid UserId { get; set; }
|
||||
public string Map { get; set; }
|
||||
public double Time { get; set; }
|
||||
}
|
||||
Reference in new issue
Block a user