83f51c6a23
Added shopping cart and items Added quotes Refactored relatinoships Migrated changes Refactored cqrs commands and queries Refactored mappings
22 lines
975 B
C#
22 lines
975 B
C#
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).HasDefaultValue(true);
|
|
builder.Property(f => f.Processed).HasDefaultValue(false);
|
|
}
|
|
} |