initial commit from an older template
This commit is contained in:
20
Models/Database/InstructionTestResult.cs
Normal file
20
Models/Database/InstructionTestResult.cs
Normal 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; }
|
||||
}
|
||||
Reference in New Issue
Block a user