Commit 0
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
// Models/Player.cs
|
||||
using MongoDB.Bson;
|
||||
using MongoDB.Bson.Serialization.Attributes;
|
||||
|
||||
namespace GameAuthApi.Models;
|
||||
|
||||
public class Player
|
||||
{
|
||||
[BsonId]
|
||||
[BsonRepresentation(BsonType.ObjectId)]
|
||||
public string Id { get; set; }
|
||||
|
||||
public string UserId { get; set; } // Linked to user
|
||||
public string Name { get; set; } // In-game player name
|
||||
public string LocationId { get; set; } // Current location (nullable)
|
||||
public string InventoryLocationId { get; set; } // Inventory location (nullable)
|
||||
public int Climbing { get; set; } = 3; // Climbing skill level (default 3)
|
||||
}
|
||||
Reference in New Issue
Block a user