// using System; using System.Collections.Generic; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; using TeamUp.Modules.Governance.Persistence; #nullable disable namespace TeamUp.Modules.Governance.Persistence.Migrations { [DbContext(typeof(GovernanceDbContext))] [Migration("20260610041006_AddReviewItems")] partial class AddReviewItems { /// protected override void BuildTargetModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder .HasDefaultSchema("governance") .HasAnnotation("ProductVersion", "10.0.8") .HasAnnotation("Relational:MaxIdentifierLength", 63); NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder); modelBuilder.Entity("TeamUp.Modules.Governance.Domain.AuditEntry", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property("Action") .IsRequired() .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("ActorMemberId") .HasColumnType("uuid"); b.Property("Details") .HasMaxLength(2000) .HasColumnType("character varying(2000)"); b.Property("EntityId") .HasColumnType("uuid"); b.Property("EntityType") .IsRequired() .HasMaxLength(100) .HasColumnType("character varying(100)"); b.Property("OccurredAtUtc") .HasColumnType("timestamp with time zone"); b.HasKey("Id"); b.HasIndex("OccurredAtUtc"); b.HasIndex("EntityType", "EntityId"); b.ToTable("audit_entries", "governance"); }); modelBuilder.Entity("TeamUp.Modules.Governance.Domain.ReviewItem", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property("ActionKind") .IsRequired() .HasMaxLength(60) .HasColumnType("character varying(60)"); b.Property("AgentId") .HasColumnType("uuid"); b.Property("AgentRunId") .HasColumnType("uuid"); b.PrimitiveCollection>("ChildTitles") .IsRequired() .HasColumnType("text[]"); b.Property("Content") .IsRequired() .HasColumnType("text"); b.Property("CreatedAtUtc") .HasColumnType("timestamp with time zone"); b.Property("DecidedAtUtc") .HasColumnType("timestamp with time zone"); b.Property("DecidedByMemberId") .HasColumnType("uuid"); b.Property("Decision") .HasMaxLength(30) .HasColumnType("character varying(30)"); b.Property("EditDistance") .HasColumnType("double precision"); b.Property("OrganizationId") .HasColumnType("uuid"); b.Property("Risk") .IsRequired() .HasMaxLength(20) .HasColumnType("character varying(20)"); b.Property("SeatId") .HasColumnType("uuid"); b.Property("Status") .IsRequired() .HasMaxLength(20) .HasColumnType("character varying(20)"); b.Property("TeamId") .HasColumnType("uuid"); b.Property("Title") .IsRequired() .HasMaxLength(300) .HasColumnType("character varying(300)"); b.Property("Trace") .HasColumnType("text"); b.Property("WorkItemId") .HasColumnType("uuid"); b.HasKey("Id"); b.HasIndex("AgentRunId"); b.HasIndex("OrganizationId", "Status"); b.ToTable("review_items", "governance"); }); #pragma warning restore 612, 618 } } }