first commit
This commit is contained in:
28
backend/Models/User.cs
Normal file
28
backend/Models/User.cs
Normal file
@@ -0,0 +1,28 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace backend.Models;
|
||||
|
||||
public class User
|
||||
{
|
||||
[Key]
|
||||
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||
public int Id { get; set; }
|
||||
|
||||
[Required]
|
||||
[MaxLength(100)]
|
||||
public string FullName { get; set; } = string.Empty;
|
||||
|
||||
[Required]
|
||||
[MaxLength(50)]
|
||||
public string Contact { get; set; } = string.Empty;
|
||||
|
||||
[Required]
|
||||
[MaxLength(4)]
|
||||
public string TrackingCode { get; set; } = string.Empty;
|
||||
|
||||
// Navigation properties
|
||||
public UserQuizAttempt? QuizAttempt { get; set; }
|
||||
public ICollection<UserKhatmSelection> KhatmSelections { get; set; } = new List<UserKhatmSelection>();
|
||||
public UserTotalScore? TotalScore { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user