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