| | | 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("20260914120000_SecretDefaultTenantUniqueness")] |
| | | 16 | | partial class SecretDefaultTenantUniqueness |
| | | 17 | | { |
| | | 18 | | /// <inheritdoc /> |
| | | 19 | | protected override void BuildTargetModel(ModelBuilder modelBuilder) |
| | | 20 | | { |
| | | 21 | | #pragma warning disable 612, 618 |
| | 2 | 22 | | modelBuilder |
| | 2 | 23 | | .HasDefaultSchema("Elsa") |
| | 2 | 24 | | .HasAnnotation("ProductVersion", "10.0.9") |
| | 2 | 25 | | .HasAnnotation("Relational:MaxIdentifierLength", 128); |
| | | 26 | | |
| | 2 | 27 | | SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder); |
| | | 28 | | |
| | 2 | 29 | | modelBuilder.Entity("Elsa.Secrets.Models.Secret", b => |
| | 2 | 30 | | { |
| | 2 | 31 | | b.Property<string>("Id") |
| | 2 | 32 | | .HasColumnType("nvarchar(450)"); |
| | 2 | 33 | | |
| | 2 | 34 | | b.Property<DateTimeOffset>("CreatedAt") |
| | 2 | 35 | | .HasColumnType("datetimeoffset"); |
| | 2 | 36 | | |
| | 2 | 37 | | b.Property<string>("Description") |
| | 2 | 38 | | .HasColumnType("nvarchar(max)"); |
| | 2 | 39 | | |
| | 2 | 40 | | b.Property<string>("DisplayName") |
| | 2 | 41 | | .IsRequired() |
| | 2 | 42 | | .HasMaxLength(200) |
| | 2 | 43 | | .HasColumnType("nvarchar(200)"); |
| | 2 | 44 | | |
| | 2 | 45 | | b.Property<string>("Name") |
| | 2 | 46 | | .IsRequired() |
| | 2 | 47 | | .HasMaxLength(200) |
| | 2 | 48 | | .HasColumnType("nvarchar(200)"); |
| | 2 | 49 | | |
| | 2 | 50 | | b.Property<string>("NormalizedName") |
| | 2 | 51 | | .IsRequired() |
| | 2 | 52 | | .HasMaxLength(200) |
| | 2 | 53 | | .HasColumnType("nvarchar(200)"); |
| | 2 | 54 | | |
| | 2 | 55 | | b.Property<string>("Scope") |
| | 2 | 56 | | .HasMaxLength(200) |
| | 2 | 57 | | .HasColumnType("nvarchar(200)"); |
| | 2 | 58 | | |
| | 2 | 59 | | b.Property<string>("SerializedTags") |
| | 2 | 60 | | .IsRequired() |
| | 2 | 61 | | .HasColumnType("nvarchar(max)") |
| | 2 | 62 | | .HasColumnName("Tags"); |
| | 2 | 63 | | |
| | 2 | 64 | | b.Property<string>("SerializedVersions") |
| | 2 | 65 | | .IsRequired() |
| | 2 | 66 | | .HasColumnType("nvarchar(max)") |
| | 2 | 67 | | .HasColumnName("Versions"); |
| | 2 | 68 | | |
| | 2 | 69 | | b.Property<string>("Status") |
| | 2 | 70 | | .IsRequired() |
| | 2 | 71 | | .HasMaxLength(32) |
| | 2 | 72 | | .HasColumnType("nvarchar(32)"); |
| | 2 | 73 | | |
| | 2 | 74 | | b.Property<string>("StoreName") |
| | 2 | 75 | | .IsRequired() |
| | 2 | 76 | | .HasMaxLength(100) |
| | 2 | 77 | | .HasColumnType("nvarchar(100)"); |
| | 2 | 78 | | |
| | 2 | 79 | | b.Property<string>("TenantId") |
| | 2 | 80 | | .HasColumnType("nvarchar(450)"); |
| | 2 | 81 | | |
| | 2 | 82 | | b.Property<string>("TypeName") |
| | 2 | 83 | | .IsRequired() |
| | 2 | 84 | | .HasMaxLength(100) |
| | 2 | 85 | | .HasColumnType("nvarchar(100)"); |
| | 2 | 86 | | |
| | 2 | 87 | | b.Property<DateTimeOffset?>("UpdatedAt") |
| | 2 | 88 | | .HasColumnType("datetimeoffset"); |
| | 2 | 89 | | |
| | 2 | 90 | | b.HasKey("Id"); |
| | 2 | 91 | | |
| | 2 | 92 | | b.HasIndex("Scope") |
| | 2 | 93 | | .HasDatabaseName("IX_Secret_Scope"); |
| | 2 | 94 | | |
| | 2 | 95 | | b.HasIndex("Status") |
| | 2 | 96 | | .HasDatabaseName("IX_Secret_Status"); |
| | 2 | 97 | | |
| | 2 | 98 | | b.HasIndex("StoreName") |
| | 2 | 99 | | .HasDatabaseName("IX_Secret_StoreName"); |
| | 2 | 100 | | |
| | 2 | 101 | | b.HasIndex("TypeName") |
| | 2 | 102 | | .HasDatabaseName("IX_Secret_TypeName"); |
| | 2 | 103 | | |
| | 2 | 104 | | b.HasIndex("TenantId", "NormalizedName") |
| | 2 | 105 | | .IsUnique() |
| | 2 | 106 | | .HasDatabaseName("IX_Secret_TenantId_NormalizedName") |
| | 2 | 107 | | .HasFilter("[TenantId] IS NOT NULL"); |
| | 2 | 108 | | |
| | 2 | 109 | | b.ToTable("Secrets", "Elsa"); |
| | 4 | 110 | | }); |
| | | 111 | | #pragma warning restore 612, 618 |
| | 2 | 112 | | } |
| | | 113 | | } |
| | | 114 | | } |