18 lines
478 B
C#
18 lines
478 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 DateTime CreatedUtc { get; set; } = DateTime.UtcNow;
|
|
}
|