first commit
This commit is contained in:
24
backend/Models/KhatmItem.cs
Normal file
24
backend/Models/KhatmItem.cs
Normal file
@@ -0,0 +1,24 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace backend.Models;
|
||||
|
||||
public class KhatmItem
|
||||
{
|
||||
[Key]
|
||||
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||
public int Id { get; set; }
|
||||
|
||||
[Required]
|
||||
[MaxLength(200)]
|
||||
public string Title { get; set; } = string.Empty;
|
||||
|
||||
[MaxLength(500)]
|
||||
public string? Url { get; set; }
|
||||
|
||||
[Required]
|
||||
public int Points { get; set; }
|
||||
|
||||
// Navigation
|
||||
public ICollection<UserKhatmSelection> UserSelections { get; set; } = new List<UserKhatmSelection>();
|
||||
}
|
||||
Reference in New Issue
Block a user