| | | 1 | | // <auto-generated /> |
| | | 2 | | using Elsa.Persistence.EFCore.Modules.Identity; |
| | | 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.Identity |
| | | 12 | | { |
| | | 13 | | [DbContext(typeof(IdentityElsaDbContext))] |
| | | 14 | | [Migration("20240329200810_V3_1")] |
| | | 15 | | partial class V3_1 |
| | | 16 | | { |
| | | 17 | | /// <inheritdoc /> |
| | | 18 | | protected override void BuildTargetModel(ModelBuilder modelBuilder) |
| | | 19 | | { |
| | | 20 | | #pragma warning disable 612, 618 |
| | 1 | 21 | | modelBuilder |
| | 1 | 22 | | .HasDefaultSchema("Elsa") |
| | 1 | 23 | | .HasAnnotation("ProductVersion", "7.0.14") |
| | 1 | 24 | | .HasAnnotation("Relational:MaxIdentifierLength", 63); |
| | | 25 | | |
| | 1 | 26 | | NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder); |
| | | 27 | | |
| | 1 | 28 | | modelBuilder.Entity("Elsa.Identity.Entities.Application", b => |
| | 1 | 29 | | { |
| | 1 | 30 | | b.Property<string>("Id") |
| | 1 | 31 | | .HasColumnType("text"); |
| | 1 | 32 | | |
| | 1 | 33 | | b.Property<string>("ClientId") |
| | 1 | 34 | | .IsRequired() |
| | 1 | 35 | | .HasColumnType("text"); |
| | 1 | 36 | | |
| | 1 | 37 | | b.Property<string>("HashedApiKey") |
| | 1 | 38 | | .IsRequired() |
| | 1 | 39 | | .HasColumnType("text"); |
| | 1 | 40 | | |
| | 1 | 41 | | b.Property<string>("HashedApiKeySalt") |
| | 1 | 42 | | .IsRequired() |
| | 1 | 43 | | .HasColumnType("text"); |
| | 1 | 44 | | |
| | 1 | 45 | | b.Property<string>("HashedClientSecret") |
| | 1 | 46 | | .IsRequired() |
| | 1 | 47 | | .HasColumnType("text"); |
| | 1 | 48 | | |
| | 1 | 49 | | b.Property<string>("HashedClientSecretSalt") |
| | 1 | 50 | | .IsRequired() |
| | 1 | 51 | | .HasColumnType("text"); |
| | 1 | 52 | | |
| | 1 | 53 | | b.Property<string>("Name") |
| | 1 | 54 | | .IsRequired() |
| | 1 | 55 | | .HasColumnType("text"); |
| | 1 | 56 | | |
| | 1 | 57 | | b.Property<string>("Roles") |
| | 1 | 58 | | .IsRequired() |
| | 1 | 59 | | .HasColumnType("text") |
| | 1 | 60 | | .HasColumnName("Roles"); |
| | 1 | 61 | | |
| | 1 | 62 | | b.HasKey("Id"); |
| | 1 | 63 | | |
| | 1 | 64 | | b.HasIndex("ClientId") |
| | 1 | 65 | | .IsUnique() |
| | 1 | 66 | | .HasDatabaseName("IX_Application_ClientId"); |
| | 1 | 67 | | |
| | 1 | 68 | | b.HasIndex("Name") |
| | 1 | 69 | | .IsUnique() |
| | 1 | 70 | | .HasDatabaseName("IX_Application_Name"); |
| | 1 | 71 | | |
| | 1 | 72 | | b.ToTable("Applications", "Elsa"); |
| | 2 | 73 | | }); |
| | | 74 | | |
| | 1 | 75 | | modelBuilder.Entity("Elsa.Identity.Entities.Role", b => |
| | 1 | 76 | | { |
| | 1 | 77 | | b.Property<string>("Id") |
| | 1 | 78 | | .HasColumnType("text"); |
| | 1 | 79 | | |
| | 1 | 80 | | b.Property<string>("Name") |
| | 1 | 81 | | .IsRequired() |
| | 1 | 82 | | .HasColumnType("text"); |
| | 1 | 83 | | |
| | 1 | 84 | | b.Property<string>("Permissions") |
| | 1 | 85 | | .IsRequired() |
| | 1 | 86 | | .HasColumnType("text") |
| | 1 | 87 | | .HasColumnName("Permissions"); |
| | 1 | 88 | | |
| | 1 | 89 | | b.HasKey("Id"); |
| | 1 | 90 | | |
| | 1 | 91 | | b.HasIndex("Name") |
| | 1 | 92 | | .IsUnique() |
| | 1 | 93 | | .HasDatabaseName("IX_Role_Name"); |
| | 1 | 94 | | |
| | 1 | 95 | | b.ToTable("Roles", "Elsa"); |
| | 2 | 96 | | }); |
| | | 97 | | |
| | 1 | 98 | | modelBuilder.Entity("Elsa.Identity.Entities.User", b => |
| | 1 | 99 | | { |
| | 1 | 100 | | b.Property<string>("Id") |
| | 1 | 101 | | .HasColumnType("text"); |
| | 1 | 102 | | |
| | 1 | 103 | | b.Property<string>("HashedPassword") |
| | 1 | 104 | | .IsRequired() |
| | 1 | 105 | | .HasColumnType("text"); |
| | 1 | 106 | | |
| | 1 | 107 | | b.Property<string>("HashedPasswordSalt") |
| | 1 | 108 | | .IsRequired() |
| | 1 | 109 | | .HasColumnType("text"); |
| | 1 | 110 | | |
| | 1 | 111 | | b.Property<string>("Name") |
| | 1 | 112 | | .IsRequired() |
| | 1 | 113 | | .HasColumnType("text"); |
| | 1 | 114 | | |
| | 1 | 115 | | b.Property<string>("Roles") |
| | 1 | 116 | | .IsRequired() |
| | 1 | 117 | | .HasColumnType("text") |
| | 1 | 118 | | .HasColumnName("Roles"); |
| | 1 | 119 | | |
| | 1 | 120 | | b.HasKey("Id"); |
| | 1 | 121 | | |
| | 1 | 122 | | b.HasIndex("Name") |
| | 1 | 123 | | .IsUnique() |
| | 1 | 124 | | .HasDatabaseName("IX_User_Name"); |
| | 1 | 125 | | |
| | 1 | 126 | | b.ToTable("Users", "Elsa"); |
| | 2 | 127 | | }); |
| | | 128 | | #pragma warning restore 612, 618 |
| | 1 | 129 | | } |
| | | 130 | | } |
| | | 131 | | } |