School Commit Init
This commit is contained in:
+21
@@ -0,0 +1,21 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace ProfessionalProfile.Domain
|
||||
{
|
||||
public class Notification
|
||||
{
|
||||
[Key]
|
||||
public int notificationId { get; set;}
|
||||
public int userId { get; set; }
|
||||
public string activity { get; set; }
|
||||
public DateTime timestamp { get; set; }
|
||||
public string details { get; set; }
|
||||
public bool isRead { get; set; }
|
||||
|
||||
// Navigation properties
|
||||
[JsonIgnore]
|
||||
public User? User { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user