Files
gameauthapi/Models/Auction.cs
T
2025-06-04 22:03:01 -05:00

25 lines
617 B
C#

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;
}