first commit

This commit is contained in:
2026-06-03 18:31:41 +03:30
commit 01f87cc461
71 changed files with 10802 additions and 0 deletions

View File

@@ -0,0 +1,37 @@
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace backend.Models;
public class QuizQuestion
{
[Key]
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public int Id { get; set; }
[Required]
[MaxLength(500)]
public string QuestionText { get; set; } = string.Empty;
[Required]
[MaxLength(200)]
public string Option1 { get; set; } = string.Empty;
[Required]
[MaxLength(200)]
public string Option2 { get; set; } = string.Empty;
[Required]
[MaxLength(200)]
public string Option3 { get; set; } = string.Empty;
[Required]
[MaxLength(200)]
public string Option4 { get; set; } = string.Empty;
[Required]
public int CorrectOption { get; set; } // 1-4
// Navigation
public ICollection<UserQuizAnswer> Answers { get; set; } = new List<UserQuizAnswer>();
}