initial commit from an older template

This commit is contained in:
2025-09-20 22:33:35 +03:00
commit b6778046c2
134 changed files with 6657 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
using System.ComponentModel.DataAnnotations;
namespace GamificationService.Models.Database;
public class InstructionTestResult
{
[Key]
public long Id { get; set; }
public long InstructionTestId { get; set; }
[Required(ErrorMessage = "Instruction test is required")]
public virtual InstructionTest InstructionTest { get; set; } = null!;
public long UserId { get; set; }
[Required(ErrorMessage = "User is required")]
public ApplicationUser User { get; set; } = null!;
[Range(0, 100, ErrorMessage = "Score must be a number from 0 to 100")]
public int Score { get; set; }
}