initial commit from an older template
This commit is contained in:
21
Models/Database/InstructionParagraph.cs
Normal file
21
Models/Database/InstructionParagraph.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace GamificationService.Models.Database;
|
||||
|
||||
public class InstructionParagraph
|
||||
{
|
||||
[Key]
|
||||
public long Id { get; set; }
|
||||
|
||||
public long InstructionId { get; set; }
|
||||
[Required(ErrorMessage = "Must be linked to instruction")]
|
||||
|
||||
public int Order { get; set; }
|
||||
|
||||
[Required(ErrorMessage = "Paragraph text is required")]
|
||||
public string Text { get; set; } = null!;
|
||||
|
||||
public string? ImageUrl { get; set; }
|
||||
|
||||
public string? VideoUrl { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user