| | | 1 | | // <auto-generated /> |
| | | 2 | | using System; |
| | | 3 | | using Elsa.Secrets.Persistence.EFCore; |
| | | 4 | | using Microsoft.EntityFrameworkCore; |
| | | 5 | | using Microsoft.EntityFrameworkCore.Infrastructure; |
| | | 6 | | using Microsoft.EntityFrameworkCore.Metadata; |
| | | 7 | | using Microsoft.EntityFrameworkCore.Migrations; |
| | | 8 | | using Microsoft.EntityFrameworkCore.Storage.ValueConversion; |
| | | 9 | | |
| | | 10 | | #nullable disable |
| | | 11 | | |
| | | 12 | | namespace Elsa.Secrets.Persistence.EFCore.SqlServer.Migrations.Secrets |
| | | 13 | | { |
| | | 14 | | [DbContext(typeof(SecretsElsaDbContext))] |
| | | 15 | | [Migration("20260923164247_ManagedSecretOwnership")] |
| | | 16 | | partial class ManagedSecretOwnership |
| | | 17 | | { |
| | | 18 | | /// <inheritdoc /> |
| | | 19 | | protected override void BuildTargetModel(ModelBuilder modelBuilder) |
| | | 20 | | { |
| | | 21 | | #pragma warning disable 612, 618 |
| | 0 | 22 | | modelBuilder |
| | 0 | 23 | | .HasDefaultSchema("Elsa") |
| | 0 | 24 | | .HasAnnotation("ProductVersion", "9.0.17") |
| | 0 | 25 | | .HasAnnotation("Relational:MaxIdentifierLength", 128); |
| | | 26 | | |
| | 0 | 27 | | SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder); |
| | | 28 | | |
| | 0 | 29 | | modelBuilder.Entity("Elsa.Secrets.Models.Secret", b => |
| | 0 | 30 | | { |
| | 0 | 31 | | b.Property<string>("Id") |
| | 0 | 32 | | .HasColumnType("nvarchar(450)"); |
| | 0 | 33 | | |
| | 0 | 34 | | b.Property<DateTimeOffset>("CreatedAt") |
| | 0 | 35 | | .HasColumnType("datetimeoffset"); |
| | 0 | 36 | | |
| | 0 | 37 | | b.Property<string>("Description") |
| | 0 | 38 | | .HasColumnType("nvarchar(max)"); |
| | 0 | 39 | | |
| | 0 | 40 | | b.Property<string>("DisplayName") |
| | 0 | 41 | | .IsRequired() |
| | 0 | 42 | | .HasMaxLength(200) |
| | 0 | 43 | | .HasColumnType("nvarchar(200)"); |
| | 0 | 44 | | |
| | 0 | 45 | | b.Property<string>("ManagedGenerationId") |
| | 0 | 46 | | .HasMaxLength(200) |
| | 0 | 47 | | .HasColumnType("nvarchar(200)"); |
| | 0 | 48 | | |
| | 0 | 49 | | b.Property<string>("ManagedOwnerId") |
| | 0 | 50 | | .HasMaxLength(200) |
| | 0 | 51 | | .HasColumnType("nvarchar(200)"); |
| | 0 | 52 | | |
| | 0 | 53 | | b.Property<string>("Name") |
| | 0 | 54 | | .IsRequired() |
| | 0 | 55 | | .HasMaxLength(200) |
| | 0 | 56 | | .HasColumnType("nvarchar(200)"); |
| | 0 | 57 | | |
| | 0 | 58 | | b.Property<string>("NormalizedName") |
| | 0 | 59 | | .IsRequired() |
| | 0 | 60 | | .HasMaxLength(200) |
| | 0 | 61 | | .HasColumnType("nvarchar(200)"); |
| | 0 | 62 | | |
| | 0 | 63 | | b.Property<string>("Scope") |
| | 0 | 64 | | .HasMaxLength(200) |
| | 0 | 65 | | .HasColumnType("nvarchar(200)"); |
| | 0 | 66 | | |
| | 0 | 67 | | b.Property<string>("SerializedTags") |
| | 0 | 68 | | .IsRequired() |
| | 0 | 69 | | .HasColumnType("nvarchar(max)") |
| | 0 | 70 | | .HasColumnName("Tags"); |
| | 0 | 71 | | |
| | 0 | 72 | | b.Property<string>("SerializedVersions") |
| | 0 | 73 | | .IsRequired() |
| | 0 | 74 | | .HasColumnType("nvarchar(max)") |
| | 0 | 75 | | .HasColumnName("Versions"); |
| | 0 | 76 | | |
| | 0 | 77 | | b.Property<string>("Status") |
| | 0 | 78 | | .IsRequired() |
| | 0 | 79 | | .HasMaxLength(32) |
| | 0 | 80 | | .HasColumnType("nvarchar(32)"); |
| | 0 | 81 | | |
| | 0 | 82 | | b.Property<string>("StoreName") |
| | 0 | 83 | | .IsRequired() |
| | 0 | 84 | | .HasMaxLength(100) |
| | 0 | 85 | | .HasColumnType("nvarchar(100)"); |
| | 0 | 86 | | |
| | 0 | 87 | | b.Property<string>("TenantId") |
| | 0 | 88 | | .HasColumnType("nvarchar(450)"); |
| | 0 | 89 | | |
| | 0 | 90 | | b.Property<string>("TypeName") |
| | 0 | 91 | | .IsRequired() |
| | 0 | 92 | | .HasMaxLength(100) |
| | 0 | 93 | | .HasColumnType("nvarchar(100)"); |
| | 0 | 94 | | |
| | 0 | 95 | | b.Property<DateTimeOffset?>("UpdatedAt") |
| | 0 | 96 | | .HasColumnType("datetimeoffset"); |
| | 0 | 97 | | |
| | 0 | 98 | | b.HasKey("Id"); |
| | 0 | 99 | | |
| | 0 | 100 | | b.HasIndex("Scope") |
| | 0 | 101 | | .HasDatabaseName("IX_Secret_Scope"); |
| | 0 | 102 | | |
| | 0 | 103 | | b.HasIndex("Status") |
| | 0 | 104 | | .HasDatabaseName("IX_Secret_Status"); |
| | 0 | 105 | | |
| | 0 | 106 | | b.HasIndex("StoreName") |
| | 0 | 107 | | .HasDatabaseName("IX_Secret_StoreName"); |
| | 0 | 108 | | |
| | 0 | 109 | | b.HasIndex("TypeName") |
| | 0 | 110 | | .HasDatabaseName("IX_Secret_TypeName"); |
| | 0 | 111 | | |
| | 0 | 112 | | b.HasIndex("TenantId", "NormalizedName") |
| | 0 | 113 | | .IsUnique() |
| | 0 | 114 | | .HasDatabaseName("IX_Secret_TenantId_NormalizedName") |
| | 0 | 115 | | .HasFilter("[TenantId] IS NOT NULL"); |
| | 0 | 116 | | |
| | 0 | 117 | | b.ToTable("Secrets", "Elsa"); |
| | 0 | 118 | | }); |
| | | 119 | | #pragma warning restore 612, 618 |
| | 0 | 120 | | } |
| | | 121 | | } |
| | | 122 | | } |