Files
gameauthapi/Models/Item.cs
T

20 lines
456 B
C#

using MongoDB.Bson;
using MongoDB.Bson.Serialization.Attributes;
namespace GameAuthApi.Models;
public class Item
{
[BsonId]
[BsonRepresentation(BsonType.ObjectId)]
public string Id { get; set; }
[BsonRepresentation(BsonType.ObjectId)]
public string LocationId { get; set; }
public string Name { get; set; }
// Remaining uses before this item disappears. 0 means unlimited.
public int UsesRemaining { get; set; } = 0;
}