Files
School/Anul 2/Semestrul 2/ISS/Lab6/UBB-SE-2024-922-2/ProfessionalProfile/domain/Notification.cs
T
2024-08-31 12:07:21 +03:00

22 lines
596 B
C#

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; }
}
}