/
afanasevn
/
MaxSystems
Обзор
Документация
Войти
/
afanasevn
/
MaxSystems
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
src/MaxSystems.Infrastructure/Data/Configurations/IntegrationDeliveryLogConfiguration.cs
26 строк
999 B
IBS\NAfanasev
Add IntegrationDeliveryLog and application contracts
22 июн 2026, 14:21
22 июн 2026, 14:21
cf76612
Код
Авторство
О чём код?
using MaxSystems.Domain.Entities; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata.Builders; namespace MaxSystems.Infrastructure.Data.Configurations; public class IntegrationDeliveryLogConfiguration : IEntityTypeConfiguration<IntegrationDeliveryLog> { public void Configure(EntityTypeBuilder<IntegrationDeliveryLog> builder) { builder.ToTable("integration_delivery_logs"); builder.HasKey(x => x.Id); builder.Property(x => x.EventType).HasMaxLength(128).IsRequired(); builder.Property(x => x.RoutingKey).HasMaxLength(128).IsRequired(); builder.Property(x => x.QueueName).HasMaxLength(128).IsRequired(); builder.Property(x => x.ErrorMessage).HasMaxLength(2000); builder.Property(x => x.PayloadSummary).HasMaxLength(512); builder.HasIndex(x => x.Status); builder.HasIndex(x => x.CreatedAt); builder.HasIndex(x => x.WorkId); builder.HasIndex(x => x.EventType); } }