| | | 1 | | // <auto-generated /> |
| | | 2 | | using Elsa.Persistence.EFCore.Modules.Tenants; |
| | | 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.Tenants |
| | | 12 | | { |
| | | 13 | | [DbContext(typeof(TenantsElsaDbContext))] |
| | | 14 | | [Migration("20241212212210_V3_3")] |
| | | 15 | | partial class V3_3 |
| | | 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.Common.Multitenancy.Tenant", b => |
| | 0 | 29 | | { |
| | 0 | 30 | | b.Property<string>("Id") |
| | 0 | 31 | | .HasColumnType("text"); |
| | 0 | 32 | | |
| | 0 | 33 | | b.Property<string>("Configuration") |
| | 0 | 34 | | .IsRequired() |
| | 0 | 35 | | .HasColumnType("text"); |
| | 0 | 36 | | |
| | 0 | 37 | | b.Property<string>("Name") |
| | 0 | 38 | | .IsRequired() |
| | 0 | 39 | | .HasColumnType("text"); |
| | 0 | 40 | | |
| | 0 | 41 | | b.Property<string>("TenantId") |
| | 0 | 42 | | .HasColumnType("text"); |
| | 0 | 43 | | |
| | 0 | 44 | | b.HasKey("Id"); |
| | 0 | 45 | | |
| | 0 | 46 | | b.HasIndex("Name") |
| | 0 | 47 | | .HasDatabaseName("IX_Tenant_Name"); |
| | 0 | 48 | | |
| | 0 | 49 | | b.HasIndex("TenantId") |
| | 0 | 50 | | .HasDatabaseName("IX_Tenant_TenantId"); |
| | 0 | 51 | | |
| | 0 | 52 | | b.ToTable("Tenants", "Elsa"); |
| | 0 | 53 | | }); |
| | | 54 | | #pragma warning restore 612, 618 |
| | 0 | 55 | | } |
| | | 56 | | } |
| | | 57 | | } |