Adding initial auction system

This commit is contained in:
hz
2025-06-04 22:03:01 -05:00
parent ec38498957
commit 4f1342e0af
7 changed files with 212 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
using MongoDB.Bson;
using MongoDB.Bson.Serialization.Attributes;
namespace GameAuthApi.Models;
public class Auction
{
[BsonId]
[BsonRepresentation(BsonType.ObjectId)]
public string Id { get; set; }
[BsonRepresentation(BsonType.ObjectId)]
public string ItemId { get; set; }
[BsonRepresentation(BsonType.ObjectId)]
public string SellerPlayerId { get; set; }
[BsonRepresentation(BsonType.ObjectId)]
public string HighestBidderId { get; set; }
public int StartingPrice { get; set; }
public int CurrentPrice { get; set; }
public bool IsClosed { get; set; } = false;
}