| | | 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("20240329200800_V3_1")] |
| | | 14 | | partial class V3_1 |
| | | 15 | | { |
| | | 16 | | /// <inheritdoc /> |
| | | 17 | | protected override void BuildTargetModel(ModelBuilder modelBuilder) |
| | | 18 | | { |
| | | 19 | | #pragma warning disable 612, 618 |
| | 0 | 20 | | modelBuilder.HasAnnotation("ProductVersion", "7.0.14"); |
| | | 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.HasKey("Id"); |
| | 0 | 57 | | |
| | 0 | 58 | | b.HasIndex("ClientId") |
| | 0 | 59 | | .IsUnique() |
| | 0 | 60 | | .HasDatabaseName("IX_Application_ClientId"); |
| | 0 | 61 | | |
| | 0 | 62 | | b.HasIndex("Name") |
| | 0 | 63 | | .IsUnique() |
| | 0 | 64 | | .HasDatabaseName("IX_Application_Name"); |
| | 0 | 65 | | |
| | 0 | 66 | | b.ToTable("Applications"); |
| | 0 | 67 | | }); |
| | | 68 | | |
| | 0 | 69 | | modelBuilder.Entity("Elsa.Identity.Entities.Role", b => |
| | 0 | 70 | | { |
| | 0 | 71 | | b.Property<string>("Id") |
| | 0 | 72 | | .HasColumnType("TEXT"); |
| | 0 | 73 | | |
| | 0 | 74 | | b.Property<string>("Name") |
| | 0 | 75 | | .IsRequired() |
| | 0 | 76 | | .HasColumnType("TEXT"); |
| | 0 | 77 | | |
| | 0 | 78 | | b.Property<string>("Permissions") |
| | 0 | 79 | | .IsRequired() |
| | 0 | 80 | | .HasColumnType("TEXT") |
| | 0 | 81 | | .HasColumnName("Permissions"); |
| | 0 | 82 | | |
| | 0 | 83 | | b.HasKey("Id"); |
| | 0 | 84 | | |
| | 0 | 85 | | b.HasIndex("Name") |
| | 0 | 86 | | .IsUnique() |
| | 0 | 87 | | .HasDatabaseName("IX_Role_Name"); |
| | 0 | 88 | | |
| | 0 | 89 | | b.ToTable("Roles"); |
| | 0 | 90 | | }); |
| | | 91 | | |
| | 0 | 92 | | modelBuilder.Entity("Elsa.Identity.Entities.User", b => |
| | 0 | 93 | | { |
| | 0 | 94 | | b.Property<string>("Id") |
| | 0 | 95 | | .HasColumnType("TEXT"); |
| | 0 | 96 | | |
| | 0 | 97 | | b.Property<string>("HashedPassword") |
| | 0 | 98 | | .IsRequired() |
| | 0 | 99 | | .HasColumnType("TEXT"); |
| | 0 | 100 | | |
| | 0 | 101 | | b.Property<string>("HashedPasswordSalt") |
| | 0 | 102 | | .IsRequired() |
| | 0 | 103 | | .HasColumnType("TEXT"); |
| | 0 | 104 | | |
| | 0 | 105 | | b.Property<string>("Name") |
| | 0 | 106 | | .IsRequired() |
| | 0 | 107 | | .HasColumnType("TEXT"); |
| | 0 | 108 | | |
| | 0 | 109 | | b.Property<string>("Roles") |
| | 0 | 110 | | .IsRequired() |
| | 0 | 111 | | .HasColumnType("TEXT") |
| | 0 | 112 | | .HasColumnName("Roles"); |
| | 0 | 113 | | |
| | 0 | 114 | | b.HasKey("Id"); |
| | 0 | 115 | | |
| | 0 | 116 | | b.HasIndex("Name") |
| | 0 | 117 | | .IsUnique() |
| | 0 | 118 | | .HasDatabaseName("IX_User_Name"); |
| | 0 | 119 | | |
| | 0 | 120 | | b.ToTable("Users"); |
| | 0 | 121 | | }); |
| | | 122 | | #pragma warning restore 612, 618 |
| | 0 | 123 | | } |
| | | 124 | | } |
| | | 125 | | } |