| | | 1 | | // <auto-generated /> |
| | | 2 | | using Elsa.Persistence.EFCore.Modules.Identity; |
| | | 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.Identity |
| | | 11 | | { |
| | | 12 | | [DbContext(typeof(IdentityElsaDbContext))] |
| | | 13 | | partial class IdentityElsaDbContextModelSnapshot : 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.Identity.Entities.Application", b => |
| | 0 | 26 | | { |
| | 0 | 27 | | b.Property<string>("Id") |
| | 0 | 28 | | .HasColumnType("text"); |
| | 0 | 29 | | |
| | 0 | 30 | | b.Property<string>("ClientId") |
| | 0 | 31 | | .IsRequired() |
| | 0 | 32 | | .HasColumnType("text"); |
| | 0 | 33 | | |
| | 0 | 34 | | b.Property<string>("HashedApiKey") |
| | 0 | 35 | | .IsRequired() |
| | 0 | 36 | | .HasColumnType("text"); |
| | 0 | 37 | | |
| | 0 | 38 | | b.Property<string>("HashedApiKeySalt") |
| | 0 | 39 | | .IsRequired() |
| | 0 | 40 | | .HasColumnType("text"); |
| | 0 | 41 | | |
| | 0 | 42 | | b.Property<string>("HashedClientSecret") |
| | 0 | 43 | | .IsRequired() |
| | 0 | 44 | | .HasColumnType("text"); |
| | 0 | 45 | | |
| | 0 | 46 | | b.Property<string>("HashedClientSecretSalt") |
| | 0 | 47 | | .IsRequired() |
| | 0 | 48 | | .HasColumnType("text"); |
| | 0 | 49 | | |
| | 0 | 50 | | b.Property<string>("Name") |
| | 0 | 51 | | .IsRequired() |
| | 0 | 52 | | .HasColumnType("text"); |
| | 0 | 53 | | |
| | 0 | 54 | | b.Property<string>("Roles") |
| | 0 | 55 | | .IsRequired() |
| | 0 | 56 | | .HasColumnType("text") |
| | 0 | 57 | | .HasColumnName("Roles"); |
| | 0 | 58 | | |
| | 0 | 59 | | b.Property<string>("TenantId") |
| | 0 | 60 | | .HasColumnType("text"); |
| | 0 | 61 | | |
| | 0 | 62 | | b.HasKey("Id"); |
| | 0 | 63 | | |
| | 0 | 64 | | b.HasIndex("ClientId") |
| | 0 | 65 | | .IsUnique() |
| | 0 | 66 | | .HasDatabaseName("IX_Application_ClientId"); |
| | 0 | 67 | | |
| | 0 | 68 | | b.HasIndex("Name") |
| | 0 | 69 | | .IsUnique() |
| | 0 | 70 | | .HasDatabaseName("IX_Application_Name"); |
| | 0 | 71 | | |
| | 0 | 72 | | b.HasIndex("TenantId") |
| | 0 | 73 | | .HasDatabaseName("IX_Application_TenantId"); |
| | 0 | 74 | | |
| | 0 | 75 | | b.ToTable("Applications", "Elsa"); |
| | 0 | 76 | | }); |
| | | 77 | | |
| | 0 | 78 | | modelBuilder.Entity("Elsa.Identity.Entities.Role", b => |
| | 0 | 79 | | { |
| | 0 | 80 | | b.Property<string>("Id") |
| | 0 | 81 | | .HasColumnType("text"); |
| | 0 | 82 | | |
| | 0 | 83 | | b.Property<string>("Name") |
| | 0 | 84 | | .IsRequired() |
| | 0 | 85 | | .HasColumnType("text"); |
| | 0 | 86 | | |
| | 0 | 87 | | b.Property<string>("Permissions") |
| | 0 | 88 | | .IsRequired() |
| | 0 | 89 | | .HasColumnType("text") |
| | 0 | 90 | | .HasColumnName("Permissions"); |
| | 0 | 91 | | |
| | 0 | 92 | | b.Property<string>("TenantId") |
| | 0 | 93 | | .HasColumnType("text"); |
| | 0 | 94 | | |
| | 0 | 95 | | b.HasKey("Id"); |
| | 0 | 96 | | |
| | 0 | 97 | | b.HasIndex("Name") |
| | 0 | 98 | | .IsUnique() |
| | 0 | 99 | | .HasDatabaseName("IX_Role_Name"); |
| | 0 | 100 | | |
| | 0 | 101 | | b.HasIndex("TenantId") |
| | 0 | 102 | | .HasDatabaseName("IX_Role_TenantId"); |
| | 0 | 103 | | |
| | 0 | 104 | | b.ToTable("Roles", "Elsa"); |
| | 0 | 105 | | }); |
| | | 106 | | |
| | 0 | 107 | | modelBuilder.Entity("Elsa.Identity.Entities.User", b => |
| | 0 | 108 | | { |
| | 0 | 109 | | b.Property<string>("Id") |
| | 0 | 110 | | .HasColumnType("text"); |
| | 0 | 111 | | |
| | 0 | 112 | | b.Property<string>("HashedPassword") |
| | 0 | 113 | | .IsRequired() |
| | 0 | 114 | | .HasColumnType("text"); |
| | 0 | 115 | | |
| | 0 | 116 | | b.Property<string>("HashedPasswordSalt") |
| | 0 | 117 | | .IsRequired() |
| | 0 | 118 | | .HasColumnType("text"); |
| | 0 | 119 | | |
| | 0 | 120 | | b.Property<string>("Name") |
| | 0 | 121 | | .IsRequired() |
| | 0 | 122 | | .HasColumnType("text"); |
| | 0 | 123 | | |
| | 0 | 124 | | b.Property<string>("Roles") |
| | 0 | 125 | | .IsRequired() |
| | 0 | 126 | | .HasColumnType("text") |
| | 0 | 127 | | .HasColumnName("Roles"); |
| | 0 | 128 | | |
| | 0 | 129 | | b.Property<string>("TenantId") |
| | 0 | 130 | | .HasColumnType("text"); |
| | 0 | 131 | | |
| | 0 | 132 | | b.HasKey("Id"); |
| | 0 | 133 | | |
| | 0 | 134 | | b.HasIndex("Name") |
| | 0 | 135 | | .IsUnique() |
| | 0 | 136 | | .HasDatabaseName("IX_User_Name"); |
| | 0 | 137 | | |
| | 0 | 138 | | b.HasIndex("TenantId") |
| | 0 | 139 | | .HasDatabaseName("IX_User_TenantId"); |
| | 0 | 140 | | |
| | 0 | 141 | | b.ToTable("Users", "Elsa"); |
| | 0 | 142 | | }); |
| | | 143 | | #pragma warning restore 612, 618 |
| | 0 | 144 | | } |
| | | 145 | | } |
| | | 146 | | } |