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