Puzzles
This commit is contained in:
25
SVSim.Database/Models/PuzzleEntry.cs
Normal file
25
SVSim.Database/Models/PuzzleEntry.cs
Normal file
@@ -0,0 +1,25 @@
|
||||
using SVSim.Database.Common;
|
||||
|
||||
namespace SVSim.Database.Models;
|
||||
|
||||
/// <summary>
|
||||
/// One row per basic_puzzle within a group. Static catalog seeded by SVSim.Bootstrap.
|
||||
/// See docs/api-spec/endpoints/post-login/basic-puzzle/info.md (PuzzleEntry).
|
||||
/// </summary>
|
||||
public class PuzzleEntry : BaseEntity<int>
|
||||
{
|
||||
/// <summary>puzzle_id on the wire. PK.</summary>
|
||||
public int PuzzleId { get => Id; set => Id = value; }
|
||||
|
||||
/// <summary>FK to <see cref="PuzzleGroupEntry"/>. Index this column for mission evaluation.</summary>
|
||||
public int GroupId { get; set; }
|
||||
|
||||
public PuzzleGroupEntry Group { get; set; } = null!;
|
||||
|
||||
/// <summary>0..3 difficulty band.</summary>
|
||||
public int PuzzleDifficulty { get; set; }
|
||||
|
||||
public bool IsAdditional { get; set; }
|
||||
public bool IsPlayable { get; set; } = true;
|
||||
public string ReleaseConditionTextId { get; set; } = string.Empty;
|
||||
}
|
||||
Reference in New Issue
Block a user