Updates
This commit is contained in:
12
SVSim.Database/Models/ShadowverseCardEntry.cs
Normal file
12
SVSim.Database/Models/ShadowverseCardEntry.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using DCGEngine.Database.Models;
|
||||
|
||||
namespace SVSim.Database.Models;
|
||||
|
||||
public class ShadowverseCardEntry : CardEntry
|
||||
{
|
||||
[Key]
|
||||
[DatabaseGenerated(DatabaseGeneratedOption.None)]
|
||||
public override long Id { get; set; }
|
||||
}
|
||||
8
SVSim.Database/Models/ShadowverseDeckEntry.cs
Normal file
8
SVSim.Database/Models/ShadowverseDeckEntry.cs
Normal file
@@ -0,0 +1,8 @@
|
||||
using DCGEngine.Database.Models;
|
||||
|
||||
namespace SVSim.Database.Models;
|
||||
|
||||
public class ShadowverseDeckEntry : DeckEntry
|
||||
{
|
||||
|
||||
}
|
||||
15
SVSim.Database/Models/User.cs
Normal file
15
SVSim.Database/Models/User.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
using DCGEngine.Database.Models;
|
||||
|
||||
namespace SVSim.Database.Models;
|
||||
|
||||
/// <summary>
|
||||
/// A user within the game system.
|
||||
/// </summary>
|
||||
public class User : BaseEntity<long>
|
||||
{
|
||||
public string ViewerId { get; set; }
|
||||
public ulong SteamId { get; set; }
|
||||
public string DisplayName { get; set; }
|
||||
|
||||
|
||||
}
|
||||
13
SVSim.Database/SVSim.Database.csproj
Normal file
13
SVSim.Database/SVSim.Database.csproj
Normal file
@@ -0,0 +1,13 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net8.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\DCGEngine.Database\DCGEngine.Database.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
14
SVSim.Database/SVSimDbContext.cs
Normal file
14
SVSim.Database/SVSimDbContext.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
using DCGEngine.Database;
|
||||
using DCGEngine.Database.Configuration;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using Microsoft.Extensions.Options;
|
||||
|
||||
namespace SVSim.Database;
|
||||
|
||||
public class SVSimDbContext : DCGEDbContext
|
||||
{
|
||||
public SVSimDbContext(IOptions<DCGEDatabaseConfiguration> configuration, ILogger<DCGEDbContext> logger, DbContextOptions options) : base(configuration, logger, options)
|
||||
{
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user