Files
step3/api/QuestionsApi/Models/QuestionAttempt.cs
T
2026-07-11 02:05:43 -05:00

19 lines
515 B
C#

using MongoDB.Bson;
using MongoDB.Bson.Serialization.Attributes;
namespace QuestionsApi.Models;
public class QuestionAttempt
{
[BsonId]
[BsonRepresentation(BsonType.ObjectId)]
public string? Id { get; set; }
public string QuestionExternalId { get; set; } = "";
public string UserId { get; set; } = "";
public string ChoiceId { get; set; } = "";
public bool IsCorrect { get; set; }
public bool IsSkip { get; set; }
public DateTime CreatedUtc { get; set; } = DateTime.UtcNow;
}