| | | 1 | | // <auto-generated /> |
| | | 2 | | using Elsa.Persistence.EFCore.Modules.Tenants; |
| | | 3 | | using Microsoft.EntityFrameworkCore; |
| | | 4 | | using Microsoft.EntityFrameworkCore.Infrastructure; |
| | | 5 | | using Microsoft.EntityFrameworkCore.Storage.ValueConversion; |
| | | 6 | | using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; |
| | | 7 | | |
| | | 8 | | #nullable disable |
| | | 9 | | |
| | | 10 | | namespace Elsa.Persistence.EFCore.PostgreSql.Migrations.Tenants |
| | | 11 | | { |
| | | 12 | | [DbContext(typeof(TenantsElsaDbContext))] |
| | | 13 | | partial class TenantsElsaDbContextModelSnapshot : ModelSnapshot |
| | | 14 | | { |
| | | 15 | | protected override void BuildModel(ModelBuilder modelBuilder) |
| | | 16 | | { |
| | | 17 | | #pragma warning disable 612, 618 |
| | 0 | 18 | | modelBuilder |
| | 0 | 19 | | .HasDefaultSchema("Elsa") |
| | 0 | 20 | | .HasAnnotation("ProductVersion", "8.0.12") |
| | 0 | 21 | | .HasAnnotation("Relational:MaxIdentifierLength", 63); |
| | | 22 | | |
| | 0 | 23 | | NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder); |
| | | 24 | | |
| | 0 | 25 | | modelBuilder.Entity("Elsa.Common.Multitenancy.Tenant", b => |
| | 0 | 26 | | { |
| | 0 | 27 | | b.Property<string>("Id") |
| | 0 | 28 | | .HasColumnType("text"); |
| | 0 | 29 | | |
| | 0 | 30 | | b.Property<string>("Configuration") |
| | 0 | 31 | | .IsRequired() |
| | 0 | 32 | | .HasColumnType("text"); |
| | 0 | 33 | | |
| | 0 | 34 | | b.Property<string>("Name") |
| | 0 | 35 | | .IsRequired() |
| | 0 | 36 | | .HasColumnType("text"); |
| | 0 | 37 | | |
| | 0 | 38 | | b.Property<string>("TenantId") |
| | 0 | 39 | | .HasColumnType("text"); |
| | 0 | 40 | | |
| | 0 | 41 | | b.HasKey("Id"); |
| | 0 | 42 | | |
| | 0 | 43 | | b.HasIndex("Name") |
| | 0 | 44 | | .HasDatabaseName("IX_Tenant_Name"); |
| | 0 | 45 | | |
| | 0 | 46 | | b.HasIndex("TenantId") |
| | 0 | 47 | | .HasDatabaseName("IX_Tenant_TenantId"); |
| | 0 | 48 | | |
| | 0 | 49 | | b.ToTable("Tenants", "Elsa"); |
| | 0 | 50 | | }); |
| | | 51 | | #pragma warning restore 612, 618 |
| | 0 | 52 | | } |
| | | 53 | | } |
| | | 54 | | } |