| | | 1 | | // <auto-generated /> |
| | | 2 | | using System; |
| | | 3 | | using Elsa.Persistence.EFCore.Modules.Alterations; |
| | | 4 | | using Microsoft.EntityFrameworkCore; |
| | | 5 | | using Microsoft.EntityFrameworkCore.Infrastructure; |
| | | 6 | | using Microsoft.EntityFrameworkCore.Migrations; |
| | | 7 | | using Microsoft.EntityFrameworkCore.Storage.ValueConversion; |
| | | 8 | | using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; |
| | | 9 | | |
| | | 10 | | #nullable disable |
| | | 11 | | |
| | | 12 | | namespace Elsa.Persistence.EFCore.PostgreSql.Migrations.Alterations |
| | | 13 | | { |
| | | 14 | | [DbContext(typeof(AlterationsElsaDbContext))] |
| | | 15 | | [Migration("20241212211604_V3_3")] |
| | | 16 | | partial class V3_3 |
| | | 17 | | { |
| | | 18 | | /// <inheritdoc /> |
| | | 19 | | protected override void BuildTargetModel(ModelBuilder modelBuilder) |
| | | 20 | | { |
| | | 21 | | #pragma warning disable 612, 618 |
| | 1 | 22 | | modelBuilder |
| | 1 | 23 | | .HasDefaultSchema("Elsa") |
| | 1 | 24 | | .HasAnnotation("ProductVersion", "7.0.20") |
| | 1 | 25 | | .HasAnnotation("Relational:MaxIdentifierLength", 63); |
| | | 26 | | |
| | 1 | 27 | | NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder); |
| | | 28 | | |
| | 1 | 29 | | modelBuilder.Entity("Elsa.Alterations.Core.Entities.AlterationJob", b => |
| | 1 | 30 | | { |
| | 1 | 31 | | b.Property<string>("Id") |
| | 1 | 32 | | .HasColumnType("text"); |
| | 1 | 33 | | |
| | 1 | 34 | | b.Property<DateTimeOffset?>("CompletedAt") |
| | 1 | 35 | | .HasColumnType("timestamp with time zone"); |
| | 1 | 36 | | |
| | 1 | 37 | | b.Property<DateTimeOffset>("CreatedAt") |
| | 1 | 38 | | .HasColumnType("timestamp with time zone"); |
| | 1 | 39 | | |
| | 1 | 40 | | b.Property<string>("PlanId") |
| | 1 | 41 | | .IsRequired() |
| | 1 | 42 | | .HasColumnType("text"); |
| | 1 | 43 | | |
| | 1 | 44 | | b.Property<string>("SerializedLog") |
| | 1 | 45 | | .HasColumnType("text"); |
| | 1 | 46 | | |
| | 1 | 47 | | b.Property<DateTimeOffset?>("StartedAt") |
| | 1 | 48 | | .HasColumnType("timestamp with time zone"); |
| | 1 | 49 | | |
| | 1 | 50 | | b.Property<string>("Status") |
| | 1 | 51 | | .IsRequired() |
| | 1 | 52 | | .HasColumnType("text"); |
| | 1 | 53 | | |
| | 1 | 54 | | b.Property<string>("TenantId") |
| | 1 | 55 | | .HasColumnType("text"); |
| | 1 | 56 | | |
| | 1 | 57 | | b.Property<string>("WorkflowInstanceId") |
| | 1 | 58 | | .IsRequired() |
| | 1 | 59 | | .HasColumnType("text"); |
| | 1 | 60 | | |
| | 1 | 61 | | b.HasKey("Id"); |
| | 1 | 62 | | |
| | 1 | 63 | | b.HasIndex("CompletedAt") |
| | 1 | 64 | | .HasDatabaseName("IX_AlterationJob_CompletedAt"); |
| | 1 | 65 | | |
| | 1 | 66 | | b.HasIndex("CreatedAt") |
| | 1 | 67 | | .HasDatabaseName("IX_AlterationJob_CreatedAt"); |
| | 1 | 68 | | |
| | 1 | 69 | | b.HasIndex("PlanId") |
| | 1 | 70 | | .HasDatabaseName("IX_AlterationJob_PlanId"); |
| | 1 | 71 | | |
| | 1 | 72 | | b.HasIndex("StartedAt") |
| | 1 | 73 | | .HasDatabaseName("IX_AlterationJob_StartedAt"); |
| | 1 | 74 | | |
| | 1 | 75 | | b.HasIndex("Status") |
| | 1 | 76 | | .HasDatabaseName("IX_AlterationJob_Status"); |
| | 1 | 77 | | |
| | 1 | 78 | | b.HasIndex("TenantId") |
| | 1 | 79 | | .HasDatabaseName("IX_AlterationJob_TenantId"); |
| | 1 | 80 | | |
| | 1 | 81 | | b.HasIndex("WorkflowInstanceId") |
| | 1 | 82 | | .HasDatabaseName("IX_AlterationJob_WorkflowInstanceId"); |
| | 1 | 83 | | |
| | 1 | 84 | | b.ToTable("AlterationJobs", "Elsa"); |
| | 2 | 85 | | }); |
| | | 86 | | |
| | 1 | 87 | | modelBuilder.Entity("Elsa.Alterations.Core.Entities.AlterationPlan", b => |
| | 1 | 88 | | { |
| | 1 | 89 | | b.Property<string>("Id") |
| | 1 | 90 | | .HasColumnType("text"); |
| | 1 | 91 | | |
| | 1 | 92 | | b.Property<DateTimeOffset?>("CompletedAt") |
| | 1 | 93 | | .HasColumnType("timestamp with time zone"); |
| | 1 | 94 | | |
| | 1 | 95 | | b.Property<DateTimeOffset>("CreatedAt") |
| | 1 | 96 | | .HasColumnType("timestamp with time zone"); |
| | 1 | 97 | | |
| | 1 | 98 | | b.Property<string>("SerializedAlterations") |
| | 1 | 99 | | .HasColumnType("text"); |
| | 1 | 100 | | |
| | 1 | 101 | | b.Property<string>("SerializedWorkflowInstanceFilter") |
| | 1 | 102 | | .HasColumnType("text"); |
| | 1 | 103 | | |
| | 1 | 104 | | b.Property<DateTimeOffset?>("StartedAt") |
| | 1 | 105 | | .HasColumnType("timestamp with time zone"); |
| | 1 | 106 | | |
| | 1 | 107 | | b.Property<string>("Status") |
| | 1 | 108 | | .IsRequired() |
| | 1 | 109 | | .HasColumnType("text"); |
| | 1 | 110 | | |
| | 1 | 111 | | b.Property<string>("TenantId") |
| | 1 | 112 | | .HasColumnType("text"); |
| | 1 | 113 | | |
| | 1 | 114 | | b.HasKey("Id"); |
| | 1 | 115 | | |
| | 1 | 116 | | b.HasIndex("CompletedAt") |
| | 1 | 117 | | .HasDatabaseName("IX_AlterationPlan_CompletedAt"); |
| | 1 | 118 | | |
| | 1 | 119 | | b.HasIndex("CreatedAt") |
| | 1 | 120 | | .HasDatabaseName("IX_AlterationPlan_CreatedAt"); |
| | 1 | 121 | | |
| | 1 | 122 | | b.HasIndex("StartedAt") |
| | 1 | 123 | | .HasDatabaseName("IX_AlterationPlan_StartedAt"); |
| | 1 | 124 | | |
| | 1 | 125 | | b.HasIndex("Status") |
| | 1 | 126 | | .HasDatabaseName("IX_AlterationPlan_Status"); |
| | 1 | 127 | | |
| | 1 | 128 | | b.HasIndex("TenantId") |
| | 1 | 129 | | .HasDatabaseName("IX_AlterationPlan_TenantId"); |
| | 1 | 130 | | |
| | 1 | 131 | | b.ToTable("AlterationPlans", "Elsa"); |
| | 2 | 132 | | }); |
| | | 133 | | #pragma warning restore 612, 618 |
| | 1 | 134 | | } |
| | | 135 | | } |
| | | 136 | | } |