Files
Teamup/src/Modules/TeamUp.Modules.Assembler/Persistence/Migrations/AssemblerDbContextModelSnapshot.cs
T

136 lines
4.6 KiB
C#
Raw Normal View History

// <auto-generated />
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<Guid>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uuid");
b.Property<string>("ActionRisk")
.HasMaxLength(20)
.HasColumnType("character varying(20)");
b.Property<string>("ActionType")
.HasMaxLength(60)
.HasColumnType("character varying(60)");
b.Property<Guid?>("AgentId")
.HasColumnType("uuid");
b.Property<DateTimeOffset?>("CompletedAtUtc")
.HasColumnType("timestamp with time zone");
b.Property<DateTimeOffset>("CreatedAtUtc")
.HasColumnType("timestamp with time zone");
b.Property<string>("Error")
.HasColumnType("text");
b.Property<long?>("LatencyMs")
.HasColumnType("bigint");
b.Property<string>("Output")
.HasColumnType("text");
b.Property<string>("Prompt")
.HasColumnType("text");
b.Property<string>("ResultJson")
.HasColumnType("text");
b.Property<Guid>("SeatId")
.HasColumnType("uuid");
b.Property<string>("Status")
.IsRequired()
.HasMaxLength(20)
.HasColumnType("character varying(20)");
b.Property<string>("Trace")
.HasColumnType("text");
b.Property<Guid>("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<Guid>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uuid");
b.Property<int>("Attempts")
.HasColumnType("integer");
b.Property<DateTimeOffset?>("CompletedAtUtc")
.HasColumnType("timestamp with time zone");
b.Property<DateTimeOffset>("CreatedAtUtc")
.HasColumnType("timestamp with time zone");
b.Property<string>("Error")
.HasColumnType("text");
b.Property<DateTimeOffset?>("LockedAtUtc")
.HasColumnType("timestamp with time zone");
b.Property<string>("LockedBy")
.HasMaxLength(120)
.HasColumnType("character varying(120)");
b.Property<string>("Payload")
.IsRequired()
.HasColumnType("text");
b.Property<string>("Status")
.IsRequired()
.HasMaxLength(20)
.HasColumnType("character varying(20)");
b.Property<string>("Type")
.IsRequired()
.HasMaxLength(60)
.HasColumnType("character varying(60)");
b.HasKey("Id");
b.HasIndex("Status", "CreatedAtUtc");
b.ToTable("jobs", "assembler");
});
#pragma warning restore 612, 618
}
}
}