This commit is contained in:
@@ -8,14 +8,18 @@ public class NotificationConfiguration : IEntityTypeConfiguration<Notification>
|
||||
|
||||
builder.HasKey(f => f.Id);
|
||||
builder.Property(f => f.CreatedAt).IsRequired().ValueGeneratedOnAdd();
|
||||
builder.Property(f => f.UpdatedAt).IsRequired(false).ValueGeneratedOnUpdate();
|
||||
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.Priority).IsRequired();
|
||||
builder.Property(f => f.Sender).IsRequired();
|
||||
builder.Property(f => f.Subject).IsRequired();
|
||||
builder.Property(f => f.Message).IsRequired();
|
||||
builder.Property(f => f.Recipient).IsRequired();
|
||||
builder.Property(f => f.RecipientAddress).IsRequired();
|
||||
builder.Property(f => f.CorrelationId).IsRequired();
|
||||
builder.Property(f => f.CorrelationIdType).IsRequired();
|
||||
builder.Property(f => f.IsHtml).HasDefaultValue(false);
|
||||
builder.Property(f => f.IsInternal).HasDefaultValue(true);
|
||||
builder.Property(f => f.Processed).HasDefaultValue(false);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user