| | | 1 | | // <auto-generated /> |
| | | 2 | | using Elsa.Persistence.EFCore.Modules.Labels; |
| | | 3 | | using Microsoft.EntityFrameworkCore; |
| | | 4 | | using Microsoft.EntityFrameworkCore.Infrastructure; |
| | | 5 | | using Microsoft.EntityFrameworkCore.Migrations; |
| | | 6 | | using Microsoft.EntityFrameworkCore.Storage.ValueConversion; |
| | | 7 | | using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; |
| | | 8 | | |
| | | 9 | | #nullable disable |
| | | 10 | | |
| | | 11 | | namespace Elsa.Persistence.EFCore.PostgreSql.Migrations.Labels |
| | | 12 | | { |
| | | 13 | | [DbContext(typeof(LabelsElsaDbContext))] |
| | | 14 | | [Migration("20240610185037_V3_2")] |
| | | 15 | | partial class V3_2 |
| | | 16 | | { |
| | | 17 | | /// <inheritdoc /> |
| | | 18 | | protected override void BuildTargetModel(ModelBuilder modelBuilder) |
| | | 19 | | { |
| | | 20 | | #pragma warning disable 612, 618 |
| | 0 | 21 | | modelBuilder |
| | 0 | 22 | | .HasDefaultSchema("Elsa") |
| | 0 | 23 | | .HasAnnotation("ProductVersion", "7.0.20") |
| | 0 | 24 | | .HasAnnotation("Relational:MaxIdentifierLength", 63); |
| | | 25 | | |
| | 0 | 26 | | NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder); |
| | | 27 | | |
| | 0 | 28 | | modelBuilder.Entity("Elsa.Labels.Entities.Label", b => |
| | 0 | 29 | | { |
| | 0 | 30 | | b.Property<string>("Id") |
| | 0 | 31 | | .HasColumnType("text"); |
| | 0 | 32 | | |
| | 0 | 33 | | b.Property<string>("Color") |
| | 0 | 34 | | .HasColumnType("text"); |
| | 0 | 35 | | |
| | 0 | 36 | | b.Property<string>("Description") |
| | 0 | 37 | | .HasColumnType("text"); |
| | 0 | 38 | | |
| | 0 | 39 | | b.Property<string>("Name") |
| | 0 | 40 | | .IsRequired() |
| | 0 | 41 | | .HasColumnType("text"); |
| | 0 | 42 | | |
| | 0 | 43 | | b.Property<string>("NormalizedName") |
| | 0 | 44 | | .IsRequired() |
| | 0 | 45 | | .HasColumnType("text"); |
| | 0 | 46 | | |
| | 0 | 47 | | b.HasKey("Id"); |
| | 0 | 48 | | |
| | 0 | 49 | | b.ToTable("Labels", "Elsa"); |
| | 0 | 50 | | }); |
| | | 51 | | |
| | 0 | 52 | | modelBuilder.Entity("Elsa.Labels.Entities.WorkflowDefinitionLabel", b => |
| | 0 | 53 | | { |
| | 0 | 54 | | b.Property<string>("Id") |
| | 0 | 55 | | .HasColumnType("text"); |
| | 0 | 56 | | |
| | 0 | 57 | | b.Property<string>("LabelId") |
| | 0 | 58 | | .IsRequired() |
| | 0 | 59 | | .HasColumnType("text"); |
| | 0 | 60 | | |
| | 0 | 61 | | b.Property<string>("WorkflowDefinitionId") |
| | 0 | 62 | | .IsRequired() |
| | 0 | 63 | | .HasColumnType("text"); |
| | 0 | 64 | | |
| | 0 | 65 | | b.Property<string>("WorkflowDefinitionVersionId") |
| | 0 | 66 | | .IsRequired() |
| | 0 | 67 | | .HasColumnType("text"); |
| | 0 | 68 | | |
| | 0 | 69 | | b.HasKey("Id"); |
| | 0 | 70 | | |
| | 0 | 71 | | b.HasIndex("LabelId") |
| | 0 | 72 | | .HasDatabaseName("WorkflowDefinitionLabel_LabelId"); |
| | 0 | 73 | | |
| | 0 | 74 | | b.HasIndex("WorkflowDefinitionId") |
| | 0 | 75 | | .HasDatabaseName("WorkflowDefinitionLabel_WorkflowDefinitionId"); |
| | 0 | 76 | | |
| | 0 | 77 | | b.HasIndex("WorkflowDefinitionVersionId") |
| | 0 | 78 | | .HasDatabaseName("WorkflowDefinitionLabel_WorkflowDefinitionVersionId"); |
| | 0 | 79 | | |
| | 0 | 80 | | b.ToTable("WorkflowDefinitionLabels", "Elsa"); |
| | 0 | 81 | | }); |
| | | 82 | | #pragma warning restore 612, 618 |
| | 0 | 83 | | } |
| | | 84 | | } |
| | | 85 | | } |