| | | 1 | | // <auto-generated /> |
| | | 2 | | using System; |
| | | 3 | | using Elsa.Persistence.EFCore.Modules.Management; |
| | | 4 | | using Microsoft.EntityFrameworkCore; |
| | | 5 | | using Microsoft.EntityFrameworkCore.Infrastructure; |
| | | 6 | | using Microsoft.EntityFrameworkCore.Storage.ValueConversion; |
| | | 7 | | |
| | | 8 | | #nullable disable |
| | | 9 | | |
| | | 10 | | namespace Elsa.Persistence.EFCore.Sqlite.Migrations.Management |
| | | 11 | | { |
| | | 12 | | [DbContext(typeof(ManagementElsaDbContext))] |
| | | 13 | | partial class ManagementElsaDbContextModelSnapshot : 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", "9.0.10"); |
| | | 21 | | |
| | 0 | 22 | | modelBuilder.Entity("Elsa.Workflows.Management.Entities.WorkflowDefinition", b => |
| | 0 | 23 | | { |
| | 0 | 24 | | b.Property<string>("Id") |
| | 0 | 25 | | .HasColumnType("TEXT"); |
| | 0 | 26 | | |
| | 0 | 27 | | b.Property<byte[]>("BinaryData") |
| | 0 | 28 | | .HasColumnType("BLOB"); |
| | 0 | 29 | | |
| | 0 | 30 | | b.Property<DateTimeOffset>("CreatedAt") |
| | 0 | 31 | | .HasColumnType("TEXT"); |
| | 0 | 32 | | |
| | 0 | 33 | | b.Property<string>("Data") |
| | 0 | 34 | | .HasColumnType("TEXT"); |
| | 0 | 35 | | |
| | 0 | 36 | | b.Property<string>("DefinitionId") |
| | 0 | 37 | | .IsRequired() |
| | 0 | 38 | | .HasColumnType("TEXT"); |
| | 0 | 39 | | |
| | 0 | 40 | | b.Property<string>("Description") |
| | 0 | 41 | | .HasColumnType("TEXT"); |
| | 0 | 42 | | |
| | 0 | 43 | | b.Property<bool>("IsLatest") |
| | 0 | 44 | | .HasColumnType("INTEGER"); |
| | 0 | 45 | | |
| | 0 | 46 | | b.Property<bool>("IsPublished") |
| | 0 | 47 | | .HasColumnType("INTEGER"); |
| | 0 | 48 | | |
| | 0 | 49 | | b.Property<bool>("IsReadonly") |
| | 0 | 50 | | .HasColumnType("INTEGER"); |
| | 0 | 51 | | |
| | 0 | 52 | | b.Property<bool>("IsSystem") |
| | 0 | 53 | | .HasColumnType("INTEGER"); |
| | 0 | 54 | | |
| | 0 | 55 | | b.Property<string>("MaterializerContext") |
| | 0 | 56 | | .HasColumnType("TEXT"); |
| | 0 | 57 | | |
| | 0 | 58 | | b.Property<string>("MaterializerName") |
| | 0 | 59 | | .IsRequired() |
| | 0 | 60 | | .HasColumnType("TEXT"); |
| | 0 | 61 | | |
| | 0 | 62 | | b.Property<string>("Name") |
| | 0 | 63 | | .HasColumnType("TEXT"); |
| | 0 | 64 | | |
| | 0 | 65 | | b.Property<string>("OriginalSource") |
| | 0 | 66 | | .HasColumnType("TEXT"); |
| | 0 | 67 | | |
| | 0 | 68 | | b.Property<string>("ProviderName") |
| | 0 | 69 | | .HasColumnType("TEXT"); |
| | 0 | 70 | | |
| | 0 | 71 | | b.Property<string>("StringData") |
| | 0 | 72 | | .HasColumnType("TEXT"); |
| | 0 | 73 | | |
| | 0 | 74 | | b.Property<string>("TenantId") |
| | 0 | 75 | | .HasColumnType("TEXT"); |
| | 0 | 76 | | |
| | 0 | 77 | | b.Property<string>("ToolVersion") |
| | 0 | 78 | | .HasColumnType("TEXT"); |
| | 0 | 79 | | |
| | 0 | 80 | | b.Property<bool?>("UsableAsActivity") |
| | 0 | 81 | | .HasColumnType("INTEGER"); |
| | 0 | 82 | | |
| | 0 | 83 | | b.Property<int>("Version") |
| | 0 | 84 | | .HasColumnType("INTEGER"); |
| | 0 | 85 | | |
| | 0 | 86 | | b.HasKey("Id"); |
| | 0 | 87 | | |
| | 0 | 88 | | b.HasIndex("IsLatest") |
| | 0 | 89 | | .HasDatabaseName("IX_WorkflowDefinition_IsLatest"); |
| | 0 | 90 | | |
| | 0 | 91 | | b.HasIndex("IsPublished") |
| | 0 | 92 | | .HasDatabaseName("IX_WorkflowDefinition_IsPublished"); |
| | 0 | 93 | | |
| | 0 | 94 | | b.HasIndex("IsSystem") |
| | 0 | 95 | | .HasDatabaseName("IX_WorkflowDefinition_IsSystem"); |
| | 0 | 96 | | |
| | 0 | 97 | | b.HasIndex("Name") |
| | 0 | 98 | | .HasDatabaseName("IX_WorkflowDefinition_Name"); |
| | 0 | 99 | | |
| | 0 | 100 | | b.HasIndex("TenantId") |
| | 0 | 101 | | .HasDatabaseName("IX_WorkflowDefinition_TenantId"); |
| | 0 | 102 | | |
| | 0 | 103 | | b.HasIndex("UsableAsActivity") |
| | 0 | 104 | | .HasDatabaseName("IX_WorkflowDefinition_UsableAsActivity"); |
| | 0 | 105 | | |
| | 0 | 106 | | b.HasIndex("Version") |
| | 0 | 107 | | .HasDatabaseName("IX_WorkflowDefinition_Version"); |
| | 0 | 108 | | |
| | 0 | 109 | | b.HasIndex("DefinitionId", "Version") |
| | 0 | 110 | | .IsUnique() |
| | 0 | 111 | | .HasDatabaseName("IX_WorkflowDefinition_DefinitionId_Version"); |
| | 0 | 112 | | |
| | 0 | 113 | | b.ToTable("WorkflowDefinitions", "Elsa"); |
| | 0 | 114 | | }); |
| | | 115 | | |
| | 0 | 116 | | modelBuilder.Entity("Elsa.Workflows.Management.Entities.WorkflowInstance", b => |
| | 0 | 117 | | { |
| | 0 | 118 | | b.Property<string>("Id") |
| | 0 | 119 | | .HasColumnType("TEXT"); |
| | 0 | 120 | | |
| | 0 | 121 | | b.Property<string>("CorrelationId") |
| | 0 | 122 | | .HasColumnType("TEXT"); |
| | 0 | 123 | | |
| | 0 | 124 | | b.Property<DateTimeOffset>("CreatedAt") |
| | 0 | 125 | | .HasColumnType("TEXT"); |
| | 0 | 126 | | |
| | 0 | 127 | | b.Property<string>("Data") |
| | 0 | 128 | | .HasColumnType("TEXT"); |
| | 0 | 129 | | |
| | 0 | 130 | | b.Property<string>("DataCompressionAlgorithm") |
| | 0 | 131 | | .HasColumnType("TEXT"); |
| | 0 | 132 | | |
| | 0 | 133 | | b.Property<string>("DefinitionId") |
| | 0 | 134 | | .IsRequired() |
| | 0 | 135 | | .HasColumnType("TEXT"); |
| | 0 | 136 | | |
| | 0 | 137 | | b.Property<string>("DefinitionVersionId") |
| | 0 | 138 | | .IsRequired() |
| | 0 | 139 | | .HasColumnType("TEXT"); |
| | 0 | 140 | | |
| | 0 | 141 | | b.Property<DateTimeOffset?>("FinishedAt") |
| | 0 | 142 | | .HasColumnType("TEXT"); |
| | 0 | 143 | | |
| | 0 | 144 | | b.Property<int>("IncidentCount") |
| | 0 | 145 | | .HasColumnType("INTEGER"); |
| | 0 | 146 | | |
| | 0 | 147 | | b.Property<bool>("IsExecuting") |
| | 0 | 148 | | .HasColumnType("INTEGER"); |
| | 0 | 149 | | |
| | 0 | 150 | | b.Property<bool>("IsSystem") |
| | 0 | 151 | | .HasColumnType("INTEGER"); |
| | 0 | 152 | | |
| | 0 | 153 | | b.Property<string>("Name") |
| | 0 | 154 | | .HasColumnType("TEXT"); |
| | 0 | 155 | | |
| | 0 | 156 | | b.Property<string>("ParentWorkflowInstanceId") |
| | 0 | 157 | | .HasColumnType("TEXT"); |
| | 0 | 158 | | |
| | 0 | 159 | | b.Property<string>("Status") |
| | 0 | 160 | | .IsRequired() |
| | 0 | 161 | | .HasColumnType("TEXT"); |
| | 0 | 162 | | |
| | 0 | 163 | | b.Property<string>("SubStatus") |
| | 0 | 164 | | .IsRequired() |
| | 0 | 165 | | .HasColumnType("TEXT"); |
| | 0 | 166 | | |
| | 0 | 167 | | b.Property<string>("TenantId") |
| | 0 | 168 | | .HasColumnType("TEXT"); |
| | 0 | 169 | | |
| | 0 | 170 | | b.Property<DateTimeOffset>("UpdatedAt") |
| | 0 | 171 | | .HasColumnType("TEXT"); |
| | 0 | 172 | | |
| | 0 | 173 | | b.Property<int>("Version") |
| | 0 | 174 | | .HasColumnType("INTEGER"); |
| | 0 | 175 | | |
| | 0 | 176 | | b.HasKey("Id"); |
| | 0 | 177 | | |
| | 0 | 178 | | b.HasIndex("CorrelationId") |
| | 0 | 179 | | .HasDatabaseName("IX_WorkflowInstance_CorrelationId"); |
| | 0 | 180 | | |
| | 0 | 181 | | b.HasIndex("CreatedAt") |
| | 0 | 182 | | .HasDatabaseName("IX_WorkflowInstance_CreatedAt"); |
| | 0 | 183 | | |
| | 0 | 184 | | b.HasIndex("DefinitionId") |
| | 0 | 185 | | .HasDatabaseName("IX_WorkflowInstance_DefinitionId"); |
| | 0 | 186 | | |
| | 0 | 187 | | b.HasIndex("FinishedAt") |
| | 0 | 188 | | .HasDatabaseName("IX_WorkflowInstance_FinishedAt"); |
| | 0 | 189 | | |
| | 0 | 190 | | b.HasIndex("IsExecuting") |
| | 0 | 191 | | .HasDatabaseName("IX_WorkflowInstance_IsExecuting"); |
| | 0 | 192 | | |
| | 0 | 193 | | b.HasIndex("IsSystem") |
| | 0 | 194 | | .HasDatabaseName("IX_WorkflowInstance_IsSystem"); |
| | 0 | 195 | | |
| | 0 | 196 | | b.HasIndex("Name") |
| | 0 | 197 | | .HasDatabaseName("IX_WorkflowInstance_Name"); |
| | 0 | 198 | | |
| | 0 | 199 | | b.HasIndex("Status") |
| | 0 | 200 | | .HasDatabaseName("IX_WorkflowInstance_Status"); |
| | 0 | 201 | | |
| | 0 | 202 | | b.HasIndex("SubStatus") |
| | 0 | 203 | | .HasDatabaseName("IX_WorkflowInstance_SubStatus"); |
| | 0 | 204 | | |
| | 0 | 205 | | b.HasIndex("TenantId") |
| | 0 | 206 | | .HasDatabaseName("IX_WorkflowInstance_TenantId"); |
| | 0 | 207 | | |
| | 0 | 208 | | b.HasIndex("UpdatedAt") |
| | 0 | 209 | | .HasDatabaseName("IX_WorkflowInstance_UpdatedAt"); |
| | 0 | 210 | | |
| | 0 | 211 | | b.HasIndex("Status", "DefinitionId") |
| | 0 | 212 | | .HasDatabaseName("IX_WorkflowInstance_Status_DefinitionId"); |
| | 0 | 213 | | |
| | 0 | 214 | | b.HasIndex("Status", "SubStatus") |
| | 0 | 215 | | .HasDatabaseName("IX_WorkflowInstance_Status_SubStatus"); |
| | 0 | 216 | | |
| | 0 | 217 | | b.HasIndex("SubStatus", "DefinitionId") |
| | 0 | 218 | | .HasDatabaseName("IX_WorkflowInstance_SubStatus_DefinitionId"); |
| | 0 | 219 | | |
| | 0 | 220 | | b.HasIndex("Status", "SubStatus", "DefinitionId", "Version") |
| | 0 | 221 | | .HasDatabaseName("IX_WorkflowInstance_Status_SubStatus_DefinitionId_Version"); |
| | 0 | 222 | | |
| | 0 | 223 | | b.ToTable("WorkflowInstances", "Elsa"); |
| | 0 | 224 | | }); |
| | | 225 | | #pragma warning restore 612, 618 |
| | 0 | 226 | | } |
| | | 227 | | } |
| | | 228 | | } |