1631786ce2
Add push contracts, provider delivery and channel diagnostics. Link email channels to services and document migration and validation. Ref: IT-1074
18 lines
668 B
C#
18 lines
668 B
C#
namespace HrynCo.NotificationService.DAL.EF.Configurations;
|
|
|
|
using HrynCo.NotificationService.DAL.EF.Entities;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
|
|
|
public sealed class PushDeliveryEntityConfiguration : IEntityTypeConfiguration<PushDeliveryEntity>
|
|
{
|
|
public void Configure(EntityTypeBuilder<PushDeliveryEntity> builder)
|
|
{
|
|
builder.ToTable("PushDeliveries");
|
|
builder.HasKey(x => new { x.ServiceName, x.MessageId });
|
|
builder.Property(x => x.ServiceName).HasMaxLength(128);
|
|
builder.Property(x => x.Error).HasMaxLength(256);
|
|
builder.HasIndex(x => x.CompletedAt);
|
|
}
|
|
}
|