using System; using System.Text.Json.Serialization; using MongoDB.Bson; using MongoDB.Bson.Serialization.Attributes; namespace Retroactiune.Models { /// /// Token represents a token. /// Token is used to authorize a for the . /// public class Token { [BsonId, JsonPropertyName("id")] [BsonRepresentation(BsonType.ObjectId)] public string Id { get; set; } [BsonRepresentation(BsonType.ObjectId), JsonPropertyName("feedback_receiver_id")] public string FeedbackReceiverId { get; set; } [JsonPropertyName("time_used")] public DateTime? TimeUsed { get; set; } [JsonPropertyName("created_at")] public DateTime CreatedAt { get; set; } [JsonPropertyName("expiry_time")] public DateTime? ExpiryTime { get; set; } } }