// using System; using CleanArchitecture.Infrastructure.Database; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; #nullable disable namespace CleanArchitecture.Infrastructure.Migrations.DomainNotificationStoreDb { [DbContext(typeof(DomainNotificationStoreDbContext))] [Migration("20240816181502_AddDomainNotificationStore")] partial class AddDomainNotificationStore { /// protected override void BuildTargetModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder .HasAnnotation("ProductVersion", "8.0.7") .HasAnnotation("Relational:MaxIdentifierLength", 63); NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder); modelBuilder.Entity("CleanArchitecture.Domain.DomainNotifications.StoredDomainNotification", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property("AggregateId") .HasColumnType("uuid"); b.Property("Code") .IsRequired() .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("CorrelationId") .IsRequired() .HasMaxLength(100) .HasColumnType("varchar(100)"); b.Property("Key") .IsRequired() .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("MessageType") .IsRequired() .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("SerializedData") .IsRequired() .HasColumnType("text") .HasColumnName("Data"); b.Property("Timestamp") .HasColumnType("timestamp with time zone"); b.Property("User") .IsRequired() .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("Value") .IsRequired() .HasMaxLength(1024) .HasColumnType("character varying(1024)"); b.Property("Version") .HasColumnType("integer"); b.HasKey("Id"); b.ToTable("StoredDomainNotifications"); }); #pragma warning restore 612, 618 } } }