| | | 1 | | // <auto-generated /> |
| | | 2 | | using System; |
| | | 3 | | using Microsoft.EntityFrameworkCore; |
| | | 4 | | using Microsoft.EntityFrameworkCore.Infrastructure; |
| | | 5 | | using Microsoft.EntityFrameworkCore.Migrations; |
| | | 6 | | using Microsoft.EntityFrameworkCore.Storage.ValueConversion; |
| | | 7 | | using ProjectTemplate.Infrastructure.Data; |
| | | 8 | | |
| | | 9 | | #nullable disable |
| | | 10 | | |
| | | 11 | | namespace ProjectTemplate.Infrastructure.Data.Migrations |
| | | 12 | | { |
| | | 13 | | [DbContext(typeof(ApplicationDbContext))] |
| | | 14 | | [Migration("20260719110000_AddApplicationAuditCompletionOutbox")] |
| | | 15 | | partial class AddApplicationAuditCompletionOutbox |
| | | 16 | | { |
| | | 17 | | /// <inheritdoc /> |
| | | 18 | | protected override void BuildTargetModel(ModelBuilder modelBuilder) |
| | | 19 | | { |
| | | 20 | | #pragma warning disable 612, 618 |
| | 2 | 21 | | modelBuilder.HasAnnotation("ProductVersion", "10.0.8"); |
| | | 22 | | |
| | 2 | 23 | | modelBuilder.Entity("ProjectTemplate.Infrastructure.Data.Entities.ApplicationAuditCompletionOutboxEntry", b |
| | 2 | 24 | | { |
| | 2 | 25 | | b.Property<Guid>("Id").HasColumnType("TEXT"); |
| | 2 | 26 | | b.Property<int>("AuditRecordCount").HasColumnType("INTEGER"); |
| | 2 | 27 | | b.Property<string>("ConcurrencyStamp").IsConcurrencyToken().IsRequired().HasMaxLength(64).HasColumnT |
| | 2 | 28 | | b.Property<string>("CorrelationId").HasMaxLength(128).HasColumnType("TEXT"); |
| | 2 | 29 | | b.Property<DateTime>("CreatedUtc").HasPrecision(3).HasColumnType("TEXT"); |
| | 2 | 30 | | b.Property<string>("DecisionAuditRecordId").HasMaxLength(128).HasColumnType("TEXT"); |
| | 2 | 31 | | b.Property<DateTime?>("DeliveredUtc").HasPrecision(3).HasColumnType("TEXT"); |
| | 2 | 32 | | b.Property<string>("Destination").IsRequired().HasMaxLength(128).HasColumnType("TEXT"); |
| | 2 | 33 | | b.Property<string>("ExecutionAttemptId").HasMaxLength(128).HasColumnType("TEXT"); |
| | 2 | 34 | | b.Property<string>("IdempotencyKey").IsRequired().HasMaxLength(128).HasColumnType("TEXT"); |
| | 2 | 35 | | b.Property<DateTime?>("LastAttemptUtc").HasPrecision(3).HasColumnType("TEXT"); |
| | 2 | 36 | | b.Property<string>("LastErrorCode").HasMaxLength(128).HasColumnType("TEXT"); |
| | 2 | 37 | | b.Property<string>("LastErrorMessage").HasMaxLength(512).HasColumnType("TEXT"); |
| | 2 | 38 | | b.Property<string>("MutationBatchId").IsRequired().HasMaxLength(64).HasColumnType("TEXT"); |
| | 2 | 39 | | b.Property<string>("MutationManifestAlgorithm").IsRequired().HasMaxLength(64).HasColumnType("TEXT"); |
| | 2 | 40 | | b.Property<string>("MutationManifestHash").IsRequired().HasMaxLength(256).HasColumnType("TEXT"); |
| | 2 | 41 | | b.Property<string>("MutationManifestSchemaVersion").IsRequired().HasMaxLength(32).HasColumnType("TEX |
| | 2 | 42 | | b.Property<DateTime?>("NextAttemptUtc").HasPrecision(3).HasColumnType("TEXT"); |
| | 2 | 43 | | b.Property<string>("OperationExecutionId").HasMaxLength(128).HasColumnType("TEXT"); |
| | 2 | 44 | | b.Property<string>("PersistenceOutcome").IsRequired().HasMaxLength(64).HasColumnType("TEXT"); |
| | 2 | 45 | | b.Property<DateTime>("ReceiptCompletedUtc").HasPrecision(3).HasColumnType("TEXT"); |
| | 2 | 46 | | b.Property<int>("RetryCount").HasColumnType("INTEGER"); |
| | 2 | 47 | | b.Property<string>("SchemaVersion").IsRequired().HasMaxLength(32).HasColumnType("TEXT"); |
| | 2 | 48 | | b.Property<string>("Status").IsRequired().HasMaxLength(32).HasColumnType("TEXT"); |
| | 2 | 49 | | b.Property<string>("TraceId").HasMaxLength(64).HasColumnType("TEXT"); |
| | 2 | 50 | | b.HasKey("Id"); |
| | 2 | 51 | | b.HasIndex("CreatedUtc"); |
| | 2 | 52 | | b.HasIndex("IdempotencyKey").IsUnique(); |
| | 2 | 53 | | b.HasIndex("Destination", "MutationBatchId").IsUnique(); |
| | 2 | 54 | | b.HasIndex("Status", "NextAttemptUtc"); |
| | 2 | 55 | | b.ToTable("ApplicationAuditCompletionOutbox", (string)null); |
| | 4 | 56 | | }); |
| | | 57 | | |
| | 2 | 58 | | modelBuilder.Entity("ProjectTemplate.Infrastructure.Data.Entities.AuditRecord", b => |
| | 2 | 59 | | { |
| | 2 | 60 | | b.Property<Guid>("Id").HasColumnType("TEXT"); |
| | 2 | 61 | | b.Property<string>("ActorId").IsRequired().HasMaxLength(256).HasColumnType("TEXT"); |
| | 2 | 62 | | b.Property<string>("ActorType").IsRequired().HasMaxLength(64).HasColumnType("TEXT"); |
| | 2 | 63 | | b.Property<string>("Application").IsRequired().HasMaxLength(200).HasColumnType("TEXT"); |
| | 2 | 64 | | b.Property<string>("ConcurrencyStamp").IsConcurrencyToken().IsRequired().HasMaxLength(64).HasColumnT |
| | 2 | 65 | | b.Property<string>("CorrelationId").HasMaxLength(128).HasColumnType("TEXT"); |
| | 2 | 66 | | b.Property<string>("CurrentValues").IsRequired().HasColumnType("TEXT"); |
| | 2 | 67 | | b.Property<string>("DecisionAuditRecordId").HasMaxLength(128).HasColumnType("TEXT"); |
| | 2 | 68 | | b.Property<string>("Entity").IsRequired().HasMaxLength(200).HasColumnType("TEXT"); |
| | 2 | 69 | | b.Property<string>("ExecutionAttemptId").HasMaxLength(128).HasColumnType("TEXT"); |
| | 2 | 70 | | b.Property<string>("KeyValues").IsRequired().HasColumnType("TEXT"); |
| | 2 | 71 | | b.Property<string>("ModifiedBy").IsRequired().HasMaxLength(200).HasColumnType("TEXT"); |
| | 2 | 72 | | b.Property<DateTime>("ModifiedOnUtc").HasPrecision(3).HasColumnType("TEXT"); |
| | 2 | 73 | | b.Property<string>("MutationBatchId").IsRequired().HasMaxLength(64).HasColumnType("TEXT"); |
| | 2 | 74 | | b.Property<string>("OperationExecutionId").HasMaxLength(128).HasColumnType("TEXT"); |
| | 2 | 75 | | b.Property<string>("OrganizationHash").HasMaxLength(128).HasColumnType("TEXT"); |
| | 2 | 76 | | b.Property<string>("OriginalValues").IsRequired().HasColumnType("TEXT"); |
| | 2 | 77 | | b.Property<string>("SchemaVersion").IsRequired().HasMaxLength(32).HasColumnType("TEXT"); |
| | 2 | 78 | | b.Property<string>("SpanId").HasMaxLength(32).HasColumnType("TEXT"); |
| | 2 | 79 | | b.Property<string>("State").IsRequired().HasMaxLength(100).HasColumnType("TEXT"); |
| | 2 | 80 | | b.Property<string>("TenantHash").HasMaxLength(128).HasColumnType("TEXT"); |
| | 2 | 81 | | b.Property<string>("TraceId").HasMaxLength(64).HasColumnType("TEXT"); |
| | 2 | 82 | | b.HasKey("Id"); |
| | 2 | 83 | | b.HasIndex("CorrelationId"); |
| | 2 | 84 | | b.HasIndex("DecisionAuditRecordId"); |
| | 2 | 85 | | b.HasIndex("MutationBatchId"); |
| | 2 | 86 | | b.HasIndex("OperationExecutionId"); |
| | 2 | 87 | | b.ToTable("AuditRecords", (string)null); |
| | 4 | 88 | | }); |
| | | 89 | | |
| | 2 | 90 | | modelBuilder.Entity("ProjectTemplate.Infrastructure.Data.Entities.ExternalLoginAccount", b => |
| | 2 | 91 | | { |
| | 2 | 92 | | b.Property<Guid>("Id").HasColumnType("TEXT"); |
| | 2 | 93 | | b.Property<string>("ConcurrencyStamp").IsConcurrencyToken().IsRequired().HasMaxLength(64).HasColumnT |
| | 2 | 94 | | b.Property<DateTime>("CreatedOnUtc").HasPrecision(3).HasColumnType("TEXT"); |
| | 2 | 95 | | b.Property<string>("DisplayName").HasMaxLength(200).HasColumnType("TEXT"); |
| | 2 | 96 | | b.Property<string>("Email").HasMaxLength(320).HasColumnType("TEXT"); |
| | 2 | 97 | | b.Property<DateTime?>("LastLoginOnUtc").HasPrecision(3).HasColumnType("TEXT"); |
| | 2 | 98 | | b.Property<Guid>("LocalUserId").HasColumnType("TEXT"); |
| | 2 | 99 | | b.Property<string>("NormalizedEmail").HasMaxLength(320).HasColumnType("TEXT"); |
| | 2 | 100 | | b.Property<string>("NormalizedProviderName").IsRequired().HasMaxLength(100).HasColumnType("TEXT"); |
| | 2 | 101 | | b.Property<string>("ProviderName").IsRequired().HasMaxLength(100).HasColumnType("TEXT"); |
| | 2 | 102 | | b.Property<string>("ProviderUserId").IsRequired().HasMaxLength(256).HasColumnType("TEXT"); |
| | 2 | 103 | | b.Property<DateTime?>("UpdatedOnUtc").HasPrecision(3).HasColumnType("TEXT"); |
| | 2 | 104 | | b.HasKey("Id"); |
| | 2 | 105 | | b.HasIndex("Email"); |
| | 2 | 106 | | b.HasIndex("LocalUserId"); |
| | 2 | 107 | | b.HasIndex("NormalizedEmail"); |
| | 2 | 108 | | b.HasIndex("NormalizedProviderName", "ProviderUserId").IsUnique(); |
| | 2 | 109 | | b.ToTable("ExternalLoginAccounts", (string)null); |
| | 4 | 110 | | }); |
| | | 111 | | #pragma warning restore 612, 618 |
| | 2 | 112 | | } |
| | | 113 | | } |
| | | 114 | | } |