//
using System;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
using TeamUp.Modules.Assembler.Persistence;
#nullable disable
namespace TeamUp.Modules.Assembler.Persistence.Migrations
{
[DbContext(typeof(AssemblerDbContext))]
partial class AssemblerDbContextModelSnapshot : ModelSnapshot
{
protected override void BuildModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder
.HasDefaultSchema("assembler")
.HasAnnotation("ProductVersion", "10.0.8")
.HasAnnotation("Relational:MaxIdentifierLength", 63);
NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder);
modelBuilder.Entity("TeamUp.Modules.Assembler.Domain.AgentRun", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uuid");
b.Property("ActionRisk")
.HasMaxLength(20)
.HasColumnType("character varying(20)");
b.Property("ActionType")
.HasMaxLength(60)
.HasColumnType("character varying(60)");
b.Property("AgentId")
.HasColumnType("uuid");
b.Property("CompletedAtUtc")
.HasColumnType("timestamp with time zone");
b.Property("CreatedAtUtc")
.HasColumnType("timestamp with time zone");
b.Property("Error")
.HasColumnType("text");
b.Property("LatencyMs")
.HasColumnType("bigint");
b.Property("Output")
.HasColumnType("text");
b.Property("Prompt")
.HasColumnType("text");
b.Property("ResultJson")
.HasColumnType("text");
b.Property("SeatId")
.HasColumnType("uuid");
b.Property("Status")
.IsRequired()
.HasMaxLength(20)
.HasColumnType("character varying(20)");
b.Property("Trace")
.HasColumnType("text");
b.Property("WorkItemId")
.HasColumnType("uuid");
b.HasKey("Id");
b.HasIndex("SeatId");
b.HasIndex("WorkItemId");
b.ToTable("agent_runs", "assembler");
});
modelBuilder.Entity("TeamUp.Modules.Assembler.Domain.Job", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uuid");
b.Property("Attempts")
.HasColumnType("integer");
b.Property("CompletedAtUtc")
.HasColumnType("timestamp with time zone");
b.Property("CreatedAtUtc")
.HasColumnType("timestamp with time zone");
b.Property("Error")
.HasColumnType("text");
b.Property("LockedAtUtc")
.HasColumnType("timestamp with time zone");
b.Property("LockedBy")
.HasMaxLength(120)
.HasColumnType("character varying(120)");
b.Property("Payload")
.IsRequired()
.HasColumnType("text");
b.Property("Status")
.IsRequired()
.HasMaxLength(20)
.HasColumnType("character varying(20)");
b.Property("Type")
.IsRequired()
.HasMaxLength(60)
.HasColumnType("character varying(60)");
b.HasKey("Id");
b.HasIndex("Status", "CreatedAtUtc");
b.ToTable("jobs", "assembler");
});
#pragma warning restore 612, 618
}
}
}