Added support for notifications
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
namespace LiteCharms.Entities.Configuration;
|
||||
|
||||
public class NotificationConfiguration : IEntityTypeConfiguration<Notification>
|
||||
{
|
||||
public void Configure(EntityTypeBuilder<Notification> builder)
|
||||
{
|
||||
builder.ToTable(nameof(Notification));
|
||||
|
||||
builder.HasKey(f => f.Id);
|
||||
builder.Property(f => f.CreatedAt).IsRequired().ValueGeneratedOnAdd();
|
||||
builder.Property(f => f.Direction).IsRequired();
|
||||
builder.Property(f => f.Author).IsRequired();
|
||||
builder.Property(f => f.Title).IsRequired();
|
||||
builder.Property(f => f.Description).IsRequired();
|
||||
builder.Property(f => f.Platform).IsRequired();
|
||||
builder.Property(f => f.PlatformAddress).IsRequired();
|
||||
builder.Property(f => f.CorrelationId).IsRequired();
|
||||
builder.Property(f => f.CorrelationIdType).IsRequired();
|
||||
builder.Property(f => f.IsInternal).IsRequired();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
using LiteCharms.Entities.Configuration;
|
||||
|
||||
namespace LiteCharms.Entities;
|
||||
|
||||
[EntityTypeConfiguration<NotificationConfiguration, Notification>]
|
||||
public class Notification : Models.Notification;
|
||||
Reference in New Issue
Block a user