forked from ddrilling/AsbCloudServer
20 lines
587 B
C#
20 lines
587 B
C#
|
using System.Collections.Generic;
|
||
|
using System.ComponentModel.DataAnnotations;
|
||
|
using System.ComponentModel.DataAnnotations.Schema;
|
||
|
using Microsoft.EntityFrameworkCore;
|
||
|
|
||
|
namespace AsbCloudDb.Model;
|
||
|
|
||
|
[Table("t_notification_category"), Comment("Категории уведомлений")]
|
||
|
public class NotificationCategory : IId
|
||
|
{
|
||
|
[Key]
|
||
|
[Column("id")]
|
||
|
public int Id { get; set; }
|
||
|
|
||
|
[Column("name")]
|
||
|
public string Name { get; set; } = null!;
|
||
|
|
||
|
[InverseProperty(nameof(Notification.NotificationCategory))]
|
||
|
public virtual ICollection<Notification> Notifications { get; set; } = null!;
|
||
|
}
|