25 lines
617 B
C#
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;
|
|
}
|