< Summary

Information
Class: Elsa.AI.Persistence.EFCore.Migrations.AIDbContextModelSnapshot
Assembly: Elsa.AI.Persistence.EFCore
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.AI.Persistence.EFCore/Migrations/AIDbContextModelSnapshot.cs
Line coverage
100%
Covered lines: 136
Uncovered lines: 0
Coverable lines: 136
Total lines: 156
Line coverage: 100%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
BuildModel(...)100%11100%

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.AI.Persistence.EFCore/Migrations/AIDbContextModelSnapshot.cs

#LineLine coverage
 1// <auto-generated />
 2using System;
 3using Microsoft.EntityFrameworkCore;
 4using Microsoft.EntityFrameworkCore.Infrastructure;
 5
 6#nullable disable
 7
 8namespace Elsa.AI.Persistence.EFCore.Migrations;
 9
 10[DbContext(typeof(AIDbContext))]
 11partial class AIDbContextModelSnapshot : ModelSnapshot
 12{
 13    protected override void BuildModel(ModelBuilder modelBuilder)
 14    {
 15#pragma warning disable 612, 618
 3216        modelBuilder.HasAnnotation("ProductVersion", "9.0.16");
 17
 3218        modelBuilder.Entity("Elsa.AI.Persistence.EFCore.Entities.AIAuditRecord", b =>
 3219        {
 3220            b.Property<string>("Id");
 3221
 3222            b.Property<string>("ActorId")
 3223                .IsRequired();
 3224
 3225            b.Property<string>("ConversationId");
 3226
 3227            b.Property<string>("Data")
 3228                .IsRequired();
 3229
 3230            b.Property<string>("ProposalId");
 3231
 3232            b.Property<string>("Summary")
 3233                .IsRequired();
 3234
 3235            b.Property<string>("TenantId");
 3236
 3237            b.Property<DateTimeOffset>("Timestamp");
 3238
 3239            b.Property<string>("ToolInvocationId");
 3240
 3241            b.Property<string>("TraceId");
 3242
 3243            b.Property<string>("Type")
 3244                .IsRequired();
 3245
 3246            b.HasKey("Id");
 3247
 3248            b.HasIndex("ActorId");
 3249
 3250            b.HasIndex("ProposalId");
 3251
 3252            b.HasIndex("ToolInvocationId");
 3253
 3254            b.HasIndex("TenantId", "ConversationId");
 3255
 3256            b.HasIndex("TenantId", "Timestamp");
 3257
 3258            b.ToTable("AIAuditRecords");
 6459        });
 60
 3261        modelBuilder.Entity("Elsa.AI.Persistence.EFCore.Entities.AIConversationRecord", b =>
 3262        {
 3263            b.Property<string>("Id");
 3264
 3265            b.Property<DateTimeOffset>("CreatedAt");
 3266
 3267            b.Property<string>("Messages")
 3268                .IsRequired();
 3269
 3270            b.Property<string>("ProviderSessionId");
 3271
 3272            b.Property<DateTimeOffset?>("RetentionExpiresAt");
 3273
 3274            b.Property<string>("RetentionMode")
 3275                .IsRequired();
 3276
 3277            b.Property<string>("Status")
 3278                .IsRequired();
 3279
 3280            b.Property<string>("TenantId");
 3281
 3282            b.Property<string>("Title");
 3283
 3284            b.Property<DateTimeOffset>("UpdatedAt");
 3285
 3286            b.Property<string>("UserId")
 3287                .IsRequired();
 3288
 3289            b.HasKey("Id");
 3290
 3291            b.HasIndex("RetentionExpiresAt");
 3292
 3293            b.HasIndex("Status");
 3294
 3295            b.HasIndex("TenantId", "UserId");
 3296
 3297            b.ToTable("AIConversations");
 6498        });
 99
 32100        modelBuilder.Entity("Elsa.AI.Persistence.EFCore.Entities.AIProposalRecord", b =>
 32101        {
 32102            b.Property<string>("Id");
 32103
 32104            b.Property<string>("AppliedBy");
 32105
 32106            b.Property<DateTimeOffset?>("AppliedAt");
 32107
 32108            b.Property<string>("BaselineVersionId");
 32109
 32110            b.Property<string>("BaselineWorkflowDefinitionId");
 32111
 32112            b.Property<string>("ConversationId")
 32113                .IsRequired();
 32114
 32115            b.Property<DateTimeOffset>("CreatedAt");
 32116
 32117            b.Property<string>("CreatedBy")
 32118                .IsRequired();
 32119
 32120            b.Property<string>("GraphDiff");
 32121
 32122            b.Property<string>("Kind")
 32123                .IsRequired();
 32124
 32125            b.Property<string>("Rationale")
 32126                .IsRequired();
 32127
 32128            b.Property<string>("ReviewedBy");
 32129
 32130            b.Property<DateTimeOffset?>("ReviewedAt");
 32131
 32132            b.Property<string>("Status")
 32133                .IsRequired();
 32134
 32135            b.Property<string>("TenantId");
 32136
 32137            b.Property<string>("ValidationDiagnostics")
 32138                .IsRequired();
 32139
 32140            b.Property<string>("Warnings")
 32141                .IsRequired();
 32142
 32143            b.Property<string>("WorkflowPayload")
 32144                .IsRequired();
 32145
 32146            b.HasKey("Id");
 32147
 32148            b.HasIndex("Status");
 32149
 32150            b.HasIndex("TenantId", "ConversationId");
 32151
 32152            b.ToTable("AIProposals");
 64153        });
 154#pragma warning restore 612, 618
 32155    }
 156}