You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
740 B
21 lines
740 B
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace Entities;
|
|
|
|
[Table("Notification")]
|
|
public class NotificationEntity
|
|
{
|
|
[Key]
|
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
|
public int IdNotif { get; set; }
|
|
[MaxLength(100)]
|
|
[Required] // dire obligatoire dans la base de données
|
|
public string Message { get; set; } = null!; // pour dire pas null
|
|
[Required(ErrorMessage = "Notification Date is required")]
|
|
[DisplayFormat(DataFormatString = "{0:HH.mm.ss - HH.mm.ss}", ApplyFormatInEditMode = true)]
|
|
public DateTime Date { get; set; }
|
|
public bool Statut { get; set; }
|
|
[MaxLength(100)]
|
|
public required string Urgence { get; set; }
|
|
} |