2026-04-22 09:50:31 +01:00
|
|
|
|
// <auto-generated />
|
|
|
|
|
|
using System;
|
|
|
|
|
|
using Bifrost.Web.Data;
|
|
|
|
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
|
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
|
|
|
|
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
|
|
|
|
|
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
|
|
|
|
|
|
|
|
|
|
|
#nullable disable
|
|
|
|
|
|
|
|
|
|
|
|
namespace Bifrost.Web.Data.Migrations
|
|
|
|
|
|
{
|
|
|
|
|
|
[DbContext(typeof(BifrostDbContext))]
|
|
|
|
|
|
partial class BifrostDbContextModelSnapshot : ModelSnapshot
|
|
|
|
|
|
{
|
|
|
|
|
|
protected override void BuildModel(ModelBuilder modelBuilder)
|
|
|
|
|
|
{
|
|
|
|
|
|
#pragma warning disable 612, 618
|
|
|
|
|
|
modelBuilder
|
2026-10-27 04:57:16 +01:00
|
|
|
|
.HasAnnotation("ProductVersion", "8.0.30")
|
2026-04-22 09:50:31 +01:00
|
|
|
|
.HasAnnotation("Relational:MaxIdentifierLength", 63);
|
|
|
|
|
|
|
|
|
|
|
|
NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder);
|
|
|
|
|
|
|
Account merge ledger: AccountMerge receipt, reductions, alias standing, undo and final sweep
AccountMergeLedger owns what a merge does to Bifrost records: PlanAsync (dry run, block codes),
CommitAsync (one save, total, idempotent), UndoLocalAsync (journal replay), FinalizeDueAsync
(AccountMergeSweeper) and StandingAsync/ResolveAsync. Votes and concept appraisals are voided by a
stamp that a model query filter hides from every tally. The actor accessor no longer ORs several
credentials under SingleOrDefault (a latent crash); a frozen or folded account resolves to no
account on every route, the OIDC authorize and chat refusal deny it, and patron intake follows the
alias. Migration AddAccountMerges is additive. No UI, no Heimdall call, nothing deployed.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-14 02:31:51 +00:00
|
|
|
|
modelBuilder.Entity("Bifrost.Web.Domain.AccountMerge", b =>
|
|
|
|
|
|
{
|
|
|
|
|
|
b.Property<Guid>("Id")
|
|
|
|
|
|
.ValueGeneratedOnAdd()
|
|
|
|
|
|
.HasColumnType("uuid");
|
|
|
|
|
|
|
2026-11-14 06:48:43 +00:00
|
|
|
|
b.Property<int>("Attempts")
|
|
|
|
|
|
.HasColumnType("integer");
|
|
|
|
|
|
|
Account merge ledger: AccountMerge receipt, reductions, alias standing, undo and final sweep
AccountMergeLedger owns what a merge does to Bifrost records: PlanAsync (dry run, block codes),
CommitAsync (one save, total, idempotent), UndoLocalAsync (journal replay), FinalizeDueAsync
(AccountMergeSweeper) and StandingAsync/ResolveAsync. Votes and concept appraisals are voided by a
stamp that a model query filter hides from every tally. The actor accessor no longer ORs several
credentials under SingleOrDefault (a latent crash); a frozen or folded account resolves to no
account on every route, the OIDC authorize and chat refusal deny it, and patron intake follows the
alias. Migration AddAccountMerges is additive. No UI, no Heimdall call, nothing deployed.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-14 02:31:51 +00:00
|
|
|
|
b.Property<DateTimeOffset?>("CommittedUtc")
|
|
|
|
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
|
|
|
2026-11-14 06:48:43 +00:00
|
|
|
|
b.Property<Guid?>("ConfirmedByUserAccountId")
|
|
|
|
|
|
.HasColumnType("uuid");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<DateTimeOffset?>("ConfirmedUtc")
|
|
|
|
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
|
|
|
Account merge ledger: AccountMerge receipt, reductions, alias standing, undo and final sweep
AccountMergeLedger owns what a merge does to Bifrost records: PlanAsync (dry run, block codes),
CommitAsync (one save, total, idempotent), UndoLocalAsync (journal replay), FinalizeDueAsync
(AccountMergeSweeper) and StandingAsync/ResolveAsync. Votes and concept appraisals are voided by a
stamp that a model query filter hides from every tally. The actor accessor no longer ORs several
credentials under SingleOrDefault (a latent crash); a frozen or folded account resolves to no
account on every route, the OIDC authorize and chat refusal deny it, and patron intake follows the
alias. Migration AddAccountMerges is additive. No UI, no Heimdall call, nothing deployed.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-14 02:31:51 +00:00
|
|
|
|
b.Property<DateTimeOffset>("CreatedUtc")
|
|
|
|
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<DateTimeOffset?>("FailedUtc")
|
|
|
|
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("FailureCode")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasMaxLength(64)
|
|
|
|
|
|
.HasColumnType("character varying(64)");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<DateTimeOffset?>("FinalizedUtc")
|
|
|
|
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
|
|
|
2026-11-14 06:48:43 +00:00
|
|
|
|
b.Property<string>("FoldedProofProviders")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasMaxLength(120)
|
|
|
|
|
|
.HasColumnType("character varying(120)");
|
|
|
|
|
|
|
Account merge ledger: AccountMerge receipt, reductions, alias standing, undo and final sweep
AccountMergeLedger owns what a merge does to Bifrost records: PlanAsync (dry run, block codes),
CommitAsync (one save, total, idempotent), UndoLocalAsync (journal replay), FinalizeDueAsync
(AccountMergeSweeper) and StandingAsync/ResolveAsync. Votes and concept appraisals are voided by a
stamp that a model query filter hides from every tally. The actor accessor no longer ORs several
credentials under SingleOrDefault (a latent crash); a frozen or folded account resolves to no
account on every route, the OIDC authorize and chat refusal deny it, and patron intake follows the
alias. Migration AddAccountMerges is additive. No UI, no Heimdall call, nothing deployed.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-14 02:31:51 +00:00
|
|
|
|
b.Property<Guid>("FoldedUserAccountId")
|
|
|
|
|
|
.HasColumnType("uuid");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<DateTimeOffset?>("GraceEndsUtc")
|
|
|
|
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
|
|
|
2026-11-14 06:48:43 +00:00
|
|
|
|
b.Property<string>("HeimdallMoveId")
|
|
|
|
|
|
.HasMaxLength(64)
|
|
|
|
|
|
.HasColumnType("character varying(64)");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("HeimdallReverseMoveId")
|
|
|
|
|
|
.HasMaxLength(64)
|
|
|
|
|
|
.HasColumnType("character varying(64)");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("LastOutcome")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasMaxLength(64)
|
|
|
|
|
|
.HasColumnType("character varying(64)");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("MovedIdentityIds")
|
|
|
|
|
|
.HasColumnType("text");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<DateTimeOffset?>("NextAttemptUtc")
|
|
|
|
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("PreviewDigest")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasMaxLength(64)
|
|
|
|
|
|
.HasColumnType("character varying(64)");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("ProofFromTier")
|
|
|
|
|
|
.HasMaxLength(8)
|
|
|
|
|
|
.HasColumnType("character varying(8)");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("ProofToTier")
|
|
|
|
|
|
.HasMaxLength(8)
|
|
|
|
|
|
.HasColumnType("character varying(8)");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<DateTimeOffset?>("ReversedUtc")
|
|
|
|
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("SealedProofs")
|
|
|
|
|
|
.HasColumnType("text");
|
|
|
|
|
|
|
Account merge ledger: AccountMerge receipt, reductions, alias standing, undo and final sweep
AccountMergeLedger owns what a merge does to Bifrost records: PlanAsync (dry run, block codes),
CommitAsync (one save, total, idempotent), UndoLocalAsync (journal replay), FinalizeDueAsync
(AccountMergeSweeper) and StandingAsync/ResolveAsync. Votes and concept appraisals are voided by a
stamp that a model query filter hides from every tally. The actor accessor no longer ORs several
credentials under SingleOrDefault (a latent crash); a frozen or folded account resolves to no
account on every route, the OIDC authorize and chat refusal deny it, and patron intake follows the
alias. Migration AddAccountMerges is additive. No UI, no Heimdall call, nothing deployed.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-14 02:31:51 +00:00
|
|
|
|
b.Property<string>("State")
|
2026-11-14 03:37:48 +00:00
|
|
|
|
.IsConcurrencyToken()
|
Account merge ledger: AccountMerge receipt, reductions, alias standing, undo and final sweep
AccountMergeLedger owns what a merge does to Bifrost records: PlanAsync (dry run, block codes),
CommitAsync (one save, total, idempotent), UndoLocalAsync (journal replay), FinalizeDueAsync
(AccountMergeSweeper) and StandingAsync/ResolveAsync. Votes and concept appraisals are voided by a
stamp that a model query filter hides from every tally. The actor accessor no longer ORs several
credentials under SingleOrDefault (a latent crash); a frozen or folded account resolves to no
account on every route, the OIDC authorize and chat refusal deny it, and patron intake follows the
alias. Migration AddAccountMerges is additive. No UI, no Heimdall call, nothing deployed.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-14 02:31:51 +00:00
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasMaxLength(24)
|
|
|
|
|
|
.HasColumnType("character varying(24)");
|
|
|
|
|
|
|
2026-11-14 06:48:43 +00:00
|
|
|
|
b.Property<string>("SurvivorProofProvider")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasMaxLength(32)
|
|
|
|
|
|
.HasColumnType("character varying(32)");
|
|
|
|
|
|
|
Account merge ledger: AccountMerge receipt, reductions, alias standing, undo and final sweep
AccountMergeLedger owns what a merge does to Bifrost records: PlanAsync (dry run, block codes),
CommitAsync (one save, total, idempotent), UndoLocalAsync (journal replay), FinalizeDueAsync
(AccountMergeSweeper) and StandingAsync/ResolveAsync. Votes and concept appraisals are voided by a
stamp that a model query filter hides from every tally. The actor accessor no longer ORs several
credentials under SingleOrDefault (a latent crash); a frozen or folded account resolves to no
account on every route, the OIDC authorize and chat refusal deny it, and patron intake follows the
alias. Migration AddAccountMerges is additive. No UI, no Heimdall call, nothing deployed.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-14 02:31:51 +00:00
|
|
|
|
b.Property<Guid>("SurvivorUserAccountId")
|
|
|
|
|
|
.HasColumnType("uuid");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<DateTimeOffset?>("UndoneUtc")
|
|
|
|
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
|
|
|
2026-11-14 06:48:43 +00:00
|
|
|
|
b.Property<DateTimeOffset?>("UndoRequestedUtc")
|
|
|
|
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
|
|
|
Account merge ledger: AccountMerge receipt, reductions, alias standing, undo and final sweep
AccountMergeLedger owns what a merge does to Bifrost records: PlanAsync (dry run, block codes),
CommitAsync (one save, total, idempotent), UndoLocalAsync (journal replay), FinalizeDueAsync
(AccountMergeSweeper) and StandingAsync/ResolveAsync. Votes and concept appraisals are voided by a
stamp that a model query filter hides from every tally. The actor accessor no longer ORs several
credentials under SingleOrDefault (a latent crash); a frozen or folded account resolves to no
account on every route, the OIDC authorize and chat refusal deny it, and patron intake follows the
alias. Migration AddAccountMerges is additive. No UI, no Heimdall call, nothing deployed.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-14 02:31:51 +00:00
|
|
|
|
b.HasKey("Id");
|
|
|
|
|
|
|
2026-11-14 03:37:48 +00:00
|
|
|
|
b.HasIndex("FoldedUserAccountId")
|
|
|
|
|
|
.IsUnique()
|
|
|
|
|
|
.HasDatabaseName("UX_AccountMerges_FoldedUserAccountId_Live")
|
|
|
|
|
|
.HasFilter("\"State\" IN ('Confirmed', 'HeimdallMoved', 'Committed', 'Final', 'UndoRequested', 'HeimdallReversed')");
|
|
|
|
|
|
|
Account merge ledger: AccountMerge receipt, reductions, alias standing, undo and final sweep
AccountMergeLedger owns what a merge does to Bifrost records: PlanAsync (dry run, block codes),
CommitAsync (one save, total, idempotent), UndoLocalAsync (journal replay), FinalizeDueAsync
(AccountMergeSweeper) and StandingAsync/ResolveAsync. Votes and concept appraisals are voided by a
stamp that a model query filter hides from every tally. The actor accessor no longer ORs several
credentials under SingleOrDefault (a latent crash); a frozen or folded account resolves to no
account on every route, the OIDC authorize and chat refusal deny it, and patron intake follows the
alias. Migration AddAccountMerges is additive. No UI, no Heimdall call, nothing deployed.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-14 02:31:51 +00:00
|
|
|
|
b.HasIndex("FoldedUserAccountId", "State");
|
|
|
|
|
|
|
2026-11-14 06:48:43 +00:00
|
|
|
|
b.HasIndex("HeimdallMoveId")
|
|
|
|
|
|
.IsUnique()
|
|
|
|
|
|
.HasFilter("\"HeimdallMoveId\" IS NOT NULL");
|
|
|
|
|
|
|
|
|
|
|
|
b.HasIndex("HeimdallReverseMoveId")
|
|
|
|
|
|
.IsUnique()
|
|
|
|
|
|
.HasFilter("\"HeimdallReverseMoveId\" IS NOT NULL");
|
|
|
|
|
|
|
Account merge ledger: AccountMerge receipt, reductions, alias standing, undo and final sweep
AccountMergeLedger owns what a merge does to Bifrost records: PlanAsync (dry run, block codes),
CommitAsync (one save, total, idempotent), UndoLocalAsync (journal replay), FinalizeDueAsync
(AccountMergeSweeper) and StandingAsync/ResolveAsync. Votes and concept appraisals are voided by a
stamp that a model query filter hides from every tally. The actor accessor no longer ORs several
credentials under SingleOrDefault (a latent crash); a frozen or folded account resolves to no
account on every route, the OIDC authorize and chat refusal deny it, and patron intake follows the
alias. Migration AddAccountMerges is additive. No UI, no Heimdall call, nothing deployed.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-14 02:31:51 +00:00
|
|
|
|
b.HasIndex("State", "GraceEndsUtc");
|
|
|
|
|
|
|
|
|
|
|
|
b.HasIndex("SurvivorUserAccountId", "State");
|
|
|
|
|
|
|
|
|
|
|
|
b.ToTable("AccountMerges");
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("Bifrost.Web.Domain.AccountMergeEntry", b =>
|
|
|
|
|
|
{
|
|
|
|
|
|
b.Property<Guid>("Id")
|
|
|
|
|
|
.ValueGeneratedOnAdd()
|
|
|
|
|
|
.HasColumnType("uuid");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Action")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasMaxLength(24)
|
|
|
|
|
|
.HasColumnType("character varying(24)");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<DateTimeOffset>("AtUtc")
|
|
|
|
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Kind")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasMaxLength(24)
|
|
|
|
|
|
.HasColumnType("character varying(24)");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<Guid>("MergeId")
|
|
|
|
|
|
.HasColumnType("uuid");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<DateTimeOffset?>("PriorAtUtc")
|
|
|
|
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("PriorText")
|
|
|
|
|
|
.HasMaxLength(120)
|
|
|
|
|
|
.HasColumnType("character varying(120)");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<Guid?>("PriorUserAccountId")
|
|
|
|
|
|
.HasColumnType("uuid");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<Guid>("RecordId")
|
|
|
|
|
|
.HasColumnType("uuid");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<int>("Seq")
|
|
|
|
|
|
.HasColumnType("integer");
|
|
|
|
|
|
|
|
|
|
|
|
b.HasKey("Id");
|
|
|
|
|
|
|
|
|
|
|
|
b.HasIndex("MergeId", "Seq")
|
|
|
|
|
|
.IsUnique();
|
|
|
|
|
|
|
|
|
|
|
|
b.ToTable("AccountMergeEntries");
|
|
|
|
|
|
});
|
|
|
|
|
|
|
2026-11-14 10:42:12 +00:00
|
|
|
|
modelBuilder.Entity("Bifrost.Web.Domain.AccountMergeNoticeAck", b =>
|
|
|
|
|
|
{
|
|
|
|
|
|
b.Property<Guid>("MergeId")
|
|
|
|
|
|
.HasColumnType("uuid");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Kind")
|
|
|
|
|
|
.HasMaxLength(16)
|
|
|
|
|
|
.HasColumnType("character varying(16)");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Target")
|
|
|
|
|
|
.HasMaxLength(16)
|
|
|
|
|
|
.HasColumnType("character varying(16)");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<DateTimeOffset>("AckedUtc")
|
|
|
|
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
|
|
|
|
|
|
|
|
b.HasKey("MergeId", "Kind", "Target");
|
|
|
|
|
|
|
|
|
|
|
|
b.ToTable("AccountMergeNoticeAcks");
|
|
|
|
|
|
});
|
|
|
|
|
|
|
2026-06-17 04:03:14 +01:00
|
|
|
|
modelBuilder.Entity("Bifrost.Web.Domain.AgentDispatchRun", b =>
|
|
|
|
|
|
{
|
|
|
|
|
|
b.Property<Guid>("Id")
|
|
|
|
|
|
.ValueGeneratedOnAdd()
|
|
|
|
|
|
.HasColumnType("uuid");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<DateTimeOffset?>("CompletedAtUtc")
|
|
|
|
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Error")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasColumnType("text");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("LaunchMode")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasMaxLength(40)
|
|
|
|
|
|
.HasColumnType("character varying(40)");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("LogPath")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasMaxLength(500)
|
|
|
|
|
|
.HasColumnType("character varying(500)");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Note")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasColumnType("text");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("RequestId")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasMaxLength(240)
|
|
|
|
|
|
.HasColumnType("character varying(240)");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("ResultPath")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasMaxLength(500)
|
|
|
|
|
|
.HasColumnType("character varying(500)");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<DateTimeOffset>("StartedAtUtc")
|
|
|
|
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<Guid?>("StartedByUserAccountId")
|
|
|
|
|
|
.HasColumnType("uuid");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Status")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasColumnType("text");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("TargetAgentIdentity")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasMaxLength(160)
|
|
|
|
|
|
.HasColumnType("character varying(160)");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("TargetRepoName")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasMaxLength(120)
|
|
|
|
|
|
.HasColumnType("character varying(120)");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("TargetRepositoryFullName")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasMaxLength(240)
|
|
|
|
|
|
.HasColumnType("character varying(240)");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("ThreadId")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasMaxLength(120)
|
|
|
|
|
|
.HasColumnType("character varying(120)");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("TurnId")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasMaxLength(120)
|
|
|
|
|
|
.HasColumnType("character varying(120)");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<DateTimeOffset>("UpdatedAtUtc")
|
|
|
|
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<int?>("WorkerProcessId")
|
|
|
|
|
|
.HasColumnType("integer");
|
|
|
|
|
|
|
|
|
|
|
|
b.HasKey("Id");
|
|
|
|
|
|
|
|
|
|
|
|
b.HasIndex("RequestId");
|
|
|
|
|
|
|
|
|
|
|
|
b.HasIndex("StartedByUserAccountId");
|
|
|
|
|
|
|
|
|
|
|
|
b.HasIndex("Status");
|
|
|
|
|
|
|
|
|
|
|
|
b.HasIndex("TargetRepoName", "TargetAgentIdentity", "Status");
|
|
|
|
|
|
|
|
|
|
|
|
b.ToTable("AgentDispatchRuns");
|
|
|
|
|
|
});
|
|
|
|
|
|
|
2026-06-17 04:49:22 +01:00
|
|
|
|
modelBuilder.Entity("Bifrost.Web.Domain.AgentTransportReceipt", b =>
|
|
|
|
|
|
{
|
|
|
|
|
|
b.Property<Guid>("Id")
|
|
|
|
|
|
.ValueGeneratedOnAdd()
|
|
|
|
|
|
.HasColumnType("uuid");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("ActivityKind")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasColumnType("text");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("ActorName")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasMaxLength(160)
|
|
|
|
|
|
.HasColumnType("character varying(160)");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<Guid?>("ActorUserAccountId")
|
|
|
|
|
|
.HasColumnType("uuid");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Note")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasColumnType("text");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<DateTimeOffset>("OccurredAtUtc")
|
|
|
|
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("RequestId")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasMaxLength(240)
|
|
|
|
|
|
.HasColumnType("character varying(240)");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Status")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasMaxLength(40)
|
|
|
|
|
|
.HasColumnType("character varying(40)");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("TargetAgentIdentity")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasMaxLength(160)
|
|
|
|
|
|
.HasColumnType("character varying(160)");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("TargetRepoName")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasMaxLength(120)
|
|
|
|
|
|
.HasColumnType("character varying(120)");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("TargetRepositoryFullName")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasMaxLength(240)
|
|
|
|
|
|
.HasColumnType("character varying(240)");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Title")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasMaxLength(240)
|
|
|
|
|
|
.HasColumnType("character varying(240)");
|
|
|
|
|
|
|
|
|
|
|
|
b.HasKey("Id");
|
|
|
|
|
|
|
|
|
|
|
|
b.HasIndex("ActorUserAccountId");
|
|
|
|
|
|
|
|
|
|
|
|
b.HasIndex("OccurredAtUtc");
|
|
|
|
|
|
|
|
|
|
|
|
b.HasIndex("RequestId");
|
|
|
|
|
|
|
|
|
|
|
|
b.HasIndex("TargetRepoName", "TargetAgentIdentity", "ActivityKind");
|
|
|
|
|
|
|
|
|
|
|
|
b.ToTable("AgentTransportReceipts");
|
|
|
|
|
|
});
|
|
|
|
|
|
|
2026-04-22 09:50:31 +01:00
|
|
|
|
modelBuilder.Entity("Bifrost.Web.Domain.Assignment", b =>
|
|
|
|
|
|
{
|
|
|
|
|
|
b.Property<Guid>("Id")
|
|
|
|
|
|
.ValueGeneratedOnAdd()
|
|
|
|
|
|
.HasColumnType("uuid");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<DateTimeOffset>("AssignedAtUtc")
|
|
|
|
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<Guid>("AssignedByUserAccountId")
|
|
|
|
|
|
.HasColumnType("uuid");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Note")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasColumnType("text");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<Guid>("UserAccountId")
|
|
|
|
|
|
.HasColumnType("uuid");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<Guid>("WorkItemId")
|
|
|
|
|
|
.HasColumnType("uuid");
|
|
|
|
|
|
|
|
|
|
|
|
b.HasKey("Id");
|
|
|
|
|
|
|
|
|
|
|
|
b.HasIndex("AssignedByUserAccountId");
|
|
|
|
|
|
|
|
|
|
|
|
b.HasIndex("UserAccountId");
|
|
|
|
|
|
|
|
|
|
|
|
b.HasIndex("WorkItemId");
|
|
|
|
|
|
|
|
|
|
|
|
b.ToTable("Assignments");
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("Bifrost.Web.Domain.AuditEvent", b =>
|
|
|
|
|
|
{
|
|
|
|
|
|
b.Property<Guid>("Id")
|
|
|
|
|
|
.ValueGeneratedOnAdd()
|
|
|
|
|
|
.HasColumnType("uuid");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Action")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasMaxLength(120)
|
|
|
|
|
|
.HasColumnType("character varying(120)");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<Guid?>("ActorUserAccountId")
|
|
|
|
|
|
.HasColumnType("uuid");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Detail")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasColumnType("text");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("EntityId")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasMaxLength(120)
|
|
|
|
|
|
.HasColumnType("character varying(120)");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("EntityType")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasMaxLength(120)
|
|
|
|
|
|
.HasColumnType("character varying(120)");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<DateTimeOffset>("OccurredAtUtc")
|
|
|
|
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
|
|
|
|
|
|
|
|
b.HasKey("Id");
|
|
|
|
|
|
|
|
|
|
|
|
b.HasIndex("ActorUserAccountId");
|
|
|
|
|
|
|
|
|
|
|
|
b.ToTable("AuditEvents");
|
|
|
|
|
|
});
|
|
|
|
|
|
|
2026-06-17 04:03:14 +01:00
|
|
|
|
modelBuilder.Entity("Bifrost.Web.Domain.BridgeAction", b =>
|
|
|
|
|
|
{
|
|
|
|
|
|
b.Property<Guid>("Id")
|
|
|
|
|
|
.ValueGeneratedOnAdd()
|
|
|
|
|
|
.HasColumnType("uuid");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("ActionKind")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasColumnType("text");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("ActorKind")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasColumnType("text");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("ActorName")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasMaxLength(160)
|
|
|
|
|
|
.HasColumnType("character varying(160)");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<Guid?>("ActorUserAccountId")
|
|
|
|
|
|
.HasColumnType("uuid");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("AuthorityReference")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasMaxLength(240)
|
|
|
|
|
|
.HasColumnType("character varying(240)");
|
|
|
|
|
|
|
2026-06-22 14:54:14 +01:00
|
|
|
|
b.Property<string>("BifrostIdentity")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasMaxLength(160)
|
|
|
|
|
|
.HasColumnType("character varying(160)");
|
|
|
|
|
|
|
2026-06-17 04:03:14 +01:00
|
|
|
|
b.Property<DateTimeOffset?>("CompletedAtUtc")
|
|
|
|
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
|
|
|
2026-06-22 14:54:14 +01:00
|
|
|
|
b.Property<string>("EpiphanyAgentIdentity")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasMaxLength(160)
|
|
|
|
|
|
.HasColumnType("character varying(160)");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("EpiphanyLaneId")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasMaxLength(120)
|
|
|
|
|
|
.HasColumnType("character varying(120)");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("EpiphanyRunId")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasMaxLength(160)
|
|
|
|
|
|
.HasColumnType("character varying(160)");
|
|
|
|
|
|
|
2026-06-17 04:03:14 +01:00
|
|
|
|
b.Property<string>("ExternalReceiptId")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasMaxLength(240)
|
|
|
|
|
|
.HasColumnType("character varying(240)");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("FailureReason")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasColumnType("text");
|
|
|
|
|
|
|
2026-06-22 14:54:14 +01:00
|
|
|
|
b.Property<string>("HeimdallCapabilityReference")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasMaxLength(240)
|
|
|
|
|
|
.HasColumnType("character varying(240)");
|
|
|
|
|
|
|
2026-06-17 04:03:14 +01:00
|
|
|
|
b.Property<Guid?>("MotionId")
|
|
|
|
|
|
.HasColumnType("uuid");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("PolicyDecision")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasMaxLength(500)
|
|
|
|
|
|
.HasColumnType("character varying(500)");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("ReceiptPayload")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasColumnType("text");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("ReceiptUrl")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasMaxLength(500)
|
|
|
|
|
|
.HasColumnType("character varying(500)");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<DateTimeOffset>("RequestedAtUtc")
|
|
|
|
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("SourceId")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasMaxLength(240)
|
|
|
|
|
|
.HasColumnType("character varying(240)");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("SourceKind")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasMaxLength(120)
|
|
|
|
|
|
.HasColumnType("character varying(120)");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<DateTimeOffset?>("StartedAtUtc")
|
|
|
|
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Status")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasColumnType("text");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Summary")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasColumnType("text");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("TargetLocator")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasMaxLength(500)
|
|
|
|
|
|
.HasColumnType("character varying(500)");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("TargetRepositoryFullName")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasMaxLength(240)
|
|
|
|
|
|
.HasColumnType("character varying(240)");
|
|
|
|
|
|
|
2026-10-10 06:39:59 +02:00
|
|
|
|
b.Property<string>("TargetSurface")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasColumnType("text");
|
|
|
|
|
|
|
2026-06-22 16:44:14 +01:00
|
|
|
|
b.Property<string>("TargetSurfaceName")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasMaxLength(120)
|
|
|
|
|
|
.HasColumnType("character varying(120)");
|
|
|
|
|
|
|
2026-06-17 04:03:14 +01:00
|
|
|
|
b.Property<string>("Title")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasMaxLength(240)
|
|
|
|
|
|
.HasColumnType("character varying(240)");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<DateTimeOffset>("UpdatedAtUtc")
|
|
|
|
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<Guid?>("WorkItemId")
|
|
|
|
|
|
.HasColumnType("uuid");
|
|
|
|
|
|
|
|
|
|
|
|
b.HasKey("Id");
|
|
|
|
|
|
|
|
|
|
|
|
b.HasIndex("ActorUserAccountId");
|
|
|
|
|
|
|
2026-06-22 14:54:14 +01:00
|
|
|
|
b.HasIndex("BifrostIdentity");
|
|
|
|
|
|
|
|
|
|
|
|
b.HasIndex("HeimdallCapabilityReference");
|
|
|
|
|
|
|
2026-06-17 04:03:14 +01:00
|
|
|
|
b.HasIndex("MotionId");
|
|
|
|
|
|
|
|
|
|
|
|
b.HasIndex("Status");
|
|
|
|
|
|
|
|
|
|
|
|
b.HasIndex("WorkItemId");
|
|
|
|
|
|
|
|
|
|
|
|
b.HasIndex("ActorKind", "ActorName");
|
|
|
|
|
|
|
|
|
|
|
|
b.HasIndex("SourceKind", "SourceId");
|
|
|
|
|
|
|
|
|
|
|
|
b.HasIndex("TargetSurface", "ActionKind", "Status");
|
|
|
|
|
|
|
2026-06-22 16:44:14 +01:00
|
|
|
|
b.HasIndex("TargetSurface", "TargetSurfaceName", "Status");
|
|
|
|
|
|
|
2026-06-17 04:03:14 +01:00
|
|
|
|
b.ToTable("BridgeActions");
|
|
|
|
|
|
});
|
|
|
|
|
|
|
2026-10-10 06:39:59 +02:00
|
|
|
|
modelBuilder.Entity("Bifrost.Web.Domain.ConceptAppraisal", b =>
|
|
|
|
|
|
{
|
|
|
|
|
|
b.Property<Guid>("Id")
|
|
|
|
|
|
.ValueGeneratedOnAdd()
|
|
|
|
|
|
.HasColumnType("uuid");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<DateTimeOffset>("CastAtUtc")
|
|
|
|
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("NetworkTag")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasMaxLength(64)
|
|
|
|
|
|
.HasColumnType("character varying(64)");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Stance")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasMaxLength(16)
|
|
|
|
|
|
.HasColumnType("character varying(16)");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<Guid>("SubjectId")
|
|
|
|
|
|
.HasColumnType("uuid");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<Guid?>("UserAccountId")
|
|
|
|
|
|
.HasColumnType("uuid");
|
|
|
|
|
|
|
Account merge ledger: AccountMerge receipt, reductions, alias standing, undo and final sweep
AccountMergeLedger owns what a merge does to Bifrost records: PlanAsync (dry run, block codes),
CommitAsync (one save, total, idempotent), UndoLocalAsync (journal replay), FinalizeDueAsync
(AccountMergeSweeper) and StandingAsync/ResolveAsync. Votes and concept appraisals are voided by a
stamp that a model query filter hides from every tally. The actor accessor no longer ORs several
credentials under SingleOrDefault (a latent crash); a frozen or folded account resolves to no
account on every route, the OIDC authorize and chat refusal deny it, and patron intake follows the
alias. Migration AddAccountMerges is additive. No UI, no Heimdall call, nothing deployed.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-14 02:31:51 +00:00
|
|
|
|
b.Property<Guid?>("VoidedByMergeId")
|
|
|
|
|
|
.HasColumnType("uuid");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<DateTimeOffset?>("VoidedUtc")
|
|
|
|
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
|
|
|
2026-10-10 06:39:59 +02:00
|
|
|
|
b.Property<string>("VoterClass")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasMaxLength(16)
|
|
|
|
|
|
.HasColumnType("character varying(16)");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("VoterKey")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasMaxLength(120)
|
|
|
|
|
|
.HasColumnType("character varying(120)");
|
|
|
|
|
|
|
|
|
|
|
|
b.HasKey("Id");
|
|
|
|
|
|
|
|
|
|
|
|
b.HasIndex("UserAccountId");
|
|
|
|
|
|
|
|
|
|
|
|
b.HasIndex("NetworkTag", "CastAtUtc");
|
|
|
|
|
|
|
|
|
|
|
|
b.HasIndex("SubjectId", "VoterKey")
|
|
|
|
|
|
.IsUnique();
|
|
|
|
|
|
|
|
|
|
|
|
b.ToTable("ConceptAppraisals");
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("Bifrost.Web.Domain.ConceptSubject", b =>
|
|
|
|
|
|
{
|
|
|
|
|
|
b.Property<Guid>("Id")
|
|
|
|
|
|
.ValueGeneratedOnAdd()
|
|
|
|
|
|
.HasColumnType("uuid");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Collection")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasMaxLength(80)
|
|
|
|
|
|
.HasColumnType("character varying(80)");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Key")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasMaxLength(80)
|
|
|
|
|
|
.HasColumnType("character varying(80)");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<DateTimeOffset>("RegisteredAtUtc")
|
|
|
|
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<DateTimeOffset?>("RetiredAtUtc")
|
|
|
|
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Title")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasMaxLength(240)
|
|
|
|
|
|
.HasColumnType("character varying(240)");
|
|
|
|
|
|
|
|
|
|
|
|
b.HasKey("Id");
|
|
|
|
|
|
|
|
|
|
|
|
b.HasIndex("Collection", "Key")
|
|
|
|
|
|
.IsUnique();
|
|
|
|
|
|
|
|
|
|
|
|
b.ToTable("ConceptSubjects");
|
|
|
|
|
|
});
|
|
|
|
|
|
|
2026-04-22 09:50:31 +01:00
|
|
|
|
modelBuilder.Entity("Bifrost.Web.Domain.DecayRun", b =>
|
|
|
|
|
|
{
|
|
|
|
|
|
b.Property<Guid>("Id")
|
|
|
|
|
|
.ValueGeneratedOnAdd()
|
|
|
|
|
|
.HasColumnType("uuid");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Notes")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasColumnType("text");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<DateTimeOffset>("RanAtUtc")
|
|
|
|
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<decimal>("Rate")
|
|
|
|
|
|
.HasPrecision(8, 4)
|
|
|
|
|
|
.HasColumnType("numeric(8,4)");
|
|
|
|
|
|
|
|
|
|
|
|
b.HasKey("Id");
|
|
|
|
|
|
|
|
|
|
|
|
b.ToTable("DecayRuns");
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("Bifrost.Web.Domain.GitHubIssueLink", b =>
|
|
|
|
|
|
{
|
|
|
|
|
|
b.Property<Guid>("Id")
|
|
|
|
|
|
.ValueGeneratedOnAdd()
|
|
|
|
|
|
.HasColumnType("uuid");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<int>("IssueNumber")
|
|
|
|
|
|
.HasColumnType("integer");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("IssueUrl")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasMaxLength(500)
|
|
|
|
|
|
.HasColumnType("character varying(500)");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<DateTimeOffset>("LastSynchronizedAtUtc")
|
|
|
|
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("RepositoryFullName")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasMaxLength(240)
|
|
|
|
|
|
.HasColumnType("character varying(240)");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("State")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasColumnType("text");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("TitleSnapshot")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasMaxLength(240)
|
|
|
|
|
|
.HasColumnType("character varying(240)");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<Guid>("WorkItemId")
|
|
|
|
|
|
.HasColumnType("uuid");
|
|
|
|
|
|
|
|
|
|
|
|
b.HasKey("Id");
|
|
|
|
|
|
|
|
|
|
|
|
b.HasIndex("WorkItemId")
|
|
|
|
|
|
.IsUnique();
|
|
|
|
|
|
|
|
|
|
|
|
b.HasIndex("RepositoryFullName", "IssueNumber")
|
|
|
|
|
|
.IsUnique();
|
|
|
|
|
|
|
|
|
|
|
|
b.ToTable("GitHubIssueLinks");
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("Bifrost.Web.Domain.GitHubPullRequestLink", b =>
|
|
|
|
|
|
{
|
|
|
|
|
|
b.Property<Guid>("Id")
|
|
|
|
|
|
.ValueGeneratedOnAdd()
|
|
|
|
|
|
.HasColumnType("uuid");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<bool>("IsMerged")
|
|
|
|
|
|
.HasColumnType("boolean");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<DateTimeOffset>("LastSynchronizedAtUtc")
|
|
|
|
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<int>("PullRequestNumber")
|
|
|
|
|
|
.HasColumnType("integer");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("PullRequestUrl")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasMaxLength(500)
|
|
|
|
|
|
.HasColumnType("character varying(500)");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("RepositoryFullName")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasMaxLength(240)
|
|
|
|
|
|
.HasColumnType("character varying(240)");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("ReviewDecision")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasColumnType("text");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("State")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasColumnType("text");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("TitleSnapshot")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasMaxLength(240)
|
|
|
|
|
|
.HasColumnType("character varying(240)");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<Guid>("WorkItemId")
|
|
|
|
|
|
.HasColumnType("uuid");
|
|
|
|
|
|
|
|
|
|
|
|
b.HasKey("Id");
|
|
|
|
|
|
|
|
|
|
|
|
b.HasIndex("WorkItemId");
|
|
|
|
|
|
|
|
|
|
|
|
b.HasIndex("RepositoryFullName", "PullRequestNumber")
|
|
|
|
|
|
.IsUnique();
|
|
|
|
|
|
|
|
|
|
|
|
b.ToTable("GitHubPullRequestLinks");
|
|
|
|
|
|
});
|
|
|
|
|
|
|
2026-06-17 05:21:29 +01:00
|
|
|
|
modelBuilder.Entity("Bifrost.Web.Domain.GovernanceActivityReceipt", b =>
|
|
|
|
|
|
{
|
|
|
|
|
|
b.Property<Guid>("Id")
|
|
|
|
|
|
.ValueGeneratedOnAdd()
|
|
|
|
|
|
.HasColumnType("uuid");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("ActivityKind")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasColumnType("text");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("ActorKind")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasMaxLength(40)
|
|
|
|
|
|
.HasColumnType("character varying(40)");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("ActorName")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasMaxLength(160)
|
|
|
|
|
|
.HasColumnType("character varying(160)");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<Guid?>("ActorUserAccountId")
|
|
|
|
|
|
.HasColumnType("uuid");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("CommentId")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasMaxLength(120)
|
|
|
|
|
|
.HasColumnType("character varying(120)");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("DispatchRequestId")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasMaxLength(240)
|
|
|
|
|
|
.HasColumnType("character varying(240)");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("JurisdictionAgentIdentity")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasMaxLength(160)
|
|
|
|
|
|
.HasColumnType("character varying(160)");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("JurisdictionRepoName")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasMaxLength(120)
|
|
|
|
|
|
.HasColumnType("character varying(120)");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Note")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasColumnType("text");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<DateTimeOffset>("OccurredAtUtc")
|
|
|
|
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Title")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasMaxLength(240)
|
|
|
|
|
|
.HasColumnType("character varying(240)");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("TopicId")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasMaxLength(120)
|
|
|
|
|
|
.HasColumnType("character varying(120)");
|
|
|
|
|
|
|
|
|
|
|
|
b.HasKey("Id");
|
|
|
|
|
|
|
|
|
|
|
|
b.HasIndex("ActorUserAccountId");
|
|
|
|
|
|
|
|
|
|
|
|
b.HasIndex("OccurredAtUtc");
|
|
|
|
|
|
|
|
|
|
|
|
b.HasIndex("TopicId");
|
|
|
|
|
|
|
|
|
|
|
|
b.HasIndex("JurisdictionRepoName", "JurisdictionAgentIdentity", "ActivityKind");
|
|
|
|
|
|
|
|
|
|
|
|
b.ToTable("GovernanceActivityReceipts");
|
|
|
|
|
|
});
|
|
|
|
|
|
|
2026-04-22 09:50:31 +01:00
|
|
|
|
modelBuilder.Entity("Bifrost.Web.Domain.LedgerEntry", b =>
|
|
|
|
|
|
{
|
|
|
|
|
|
b.Property<Guid>("Id")
|
|
|
|
|
|
.ValueGeneratedOnAdd()
|
|
|
|
|
|
.HasColumnType("uuid");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<DateTimeOffset>("CreatedAtUtc")
|
|
|
|
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<Guid>("CreatedByUserAccountId")
|
|
|
|
|
|
.HasColumnType("uuid");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<DateTimeOffset>("EffectiveAtUtc")
|
|
|
|
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("EntryType")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasColumnType("text");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<decimal>("NominalAmount")
|
|
|
|
|
|
.HasPrecision(18, 2)
|
|
|
|
|
|
.HasColumnType("numeric(18,2)");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Note")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasColumnType("text");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<decimal>("Points")
|
|
|
|
|
|
.HasPrecision(18, 2)
|
|
|
|
|
|
.HasColumnType("numeric(18,2)");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<Guid?>("ProjectId")
|
|
|
|
|
|
.HasColumnType("uuid");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Status")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasColumnType("text");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<Guid>("UserAccountId")
|
|
|
|
|
|
.HasColumnType("uuid");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<Guid?>("WorkItemId")
|
|
|
|
|
|
.HasColumnType("uuid");
|
|
|
|
|
|
|
|
|
|
|
|
b.HasKey("Id");
|
|
|
|
|
|
|
|
|
|
|
|
b.HasIndex("CreatedByUserAccountId");
|
|
|
|
|
|
|
|
|
|
|
|
b.HasIndex("ProjectId");
|
|
|
|
|
|
|
|
|
|
|
|
b.HasIndex("UserAccountId");
|
|
|
|
|
|
|
|
|
|
|
|
b.HasIndex("WorkItemId");
|
|
|
|
|
|
|
|
|
|
|
|
b.ToTable("LedgerEntries");
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("Bifrost.Web.Domain.MemberProfile", b =>
|
|
|
|
|
|
{
|
|
|
|
|
|
b.Property<Guid>("Id")
|
|
|
|
|
|
.ValueGeneratedOnAdd()
|
|
|
|
|
|
.HasColumnType("uuid");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Availability")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasColumnType("text");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Headline")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasMaxLength(240)
|
|
|
|
|
|
.HasColumnType("character varying(240)");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Nickname")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasMaxLength(120)
|
|
|
|
|
|
.HasColumnType("character varying(120)");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Notes")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasColumnType("text");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("PortfolioUrl")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasMaxLength(500)
|
|
|
|
|
|
.HasColumnType("character varying(500)");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Skills")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasColumnType("text");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<DateTimeOffset>("UpdatedAtUtc")
|
|
|
|
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<Guid>("UserAccountId")
|
|
|
|
|
|
.HasColumnType("uuid");
|
|
|
|
|
|
|
|
|
|
|
|
b.HasKey("Id");
|
|
|
|
|
|
|
|
|
|
|
|
b.HasIndex("UserAccountId")
|
|
|
|
|
|
.IsUnique();
|
|
|
|
|
|
|
|
|
|
|
|
b.ToTable("MemberProfiles");
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("Bifrost.Web.Domain.Membership", b =>
|
|
|
|
|
|
{
|
|
|
|
|
|
b.Property<Guid>("Id")
|
|
|
|
|
|
.ValueGeneratedOnAdd()
|
|
|
|
|
|
.HasColumnType("uuid");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<DateTimeOffset?>("ApprovedAtUtc")
|
|
|
|
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<bool>("CanManageLedger")
|
|
|
|
|
|
.HasColumnType("boolean");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<bool>("CanManageProjects")
|
|
|
|
|
|
.HasColumnType("boolean");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<bool>("CanModerateMotions")
|
|
|
|
|
|
.HasColumnType("boolean");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<DateTimeOffset>("CreatedAtUtc")
|
|
|
|
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<bool>("IsPlatformAdmin")
|
|
|
|
|
|
.HasColumnType("boolean");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Notes")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasColumnType("text");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Status")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasColumnType("text");
|
|
|
|
|
|
|
2026-11-11 14:12:47 +00:00
|
|
|
|
b.Property<string>("SuspensionReason")
|
|
|
|
|
|
.HasColumnType("text");
|
|
|
|
|
|
|
2026-04-22 09:50:31 +01:00
|
|
|
|
b.Property<Guid>("UserAccountId")
|
|
|
|
|
|
.HasColumnType("uuid");
|
|
|
|
|
|
|
|
|
|
|
|
b.HasKey("Id");
|
|
|
|
|
|
|
|
|
|
|
|
b.HasIndex("UserAccountId")
|
|
|
|
|
|
.IsUnique();
|
|
|
|
|
|
|
|
|
|
|
|
b.ToTable("Memberships");
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("Bifrost.Web.Domain.MembershipInvitation", b =>
|
|
|
|
|
|
{
|
|
|
|
|
|
b.Property<Guid>("Id")
|
|
|
|
|
|
.ValueGeneratedOnAdd()
|
|
|
|
|
|
.HasColumnType("uuid");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<DateTimeOffset?>("AcceptedAtUtc")
|
|
|
|
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<Guid?>("AcceptedByUserAccountId")
|
|
|
|
|
|
.HasColumnType("uuid");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("GitHubLogin")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasMaxLength(120)
|
|
|
|
|
|
.HasColumnType("character varying(120)");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<DateTimeOffset>("IssuedAtUtc")
|
|
|
|
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<Guid?>("IssuedByUserAccountId")
|
|
|
|
|
|
.HasColumnType("uuid");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("NormalizedGitHubLogin")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasMaxLength(120)
|
|
|
|
|
|
.HasColumnType("character varying(120)");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Notes")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasColumnType("text");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<DateTimeOffset?>("RevokedAtUtc")
|
|
|
|
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
|
|
|
|
|
|
|
|
b.HasKey("Id");
|
|
|
|
|
|
|
|
|
|
|
|
b.HasIndex("AcceptedByUserAccountId");
|
|
|
|
|
|
|
|
|
|
|
|
b.HasIndex("IssuedByUserAccountId");
|
|
|
|
|
|
|
|
|
|
|
|
b.HasIndex("NormalizedGitHubLogin")
|
|
|
|
|
|
.IsUnique();
|
|
|
|
|
|
|
|
|
|
|
|
b.ToTable("MembershipInvitations");
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("Bifrost.Web.Domain.Motion", b =>
|
|
|
|
|
|
{
|
|
|
|
|
|
b.Property<Guid>("Id")
|
|
|
|
|
|
.ValueGeneratedOnAdd()
|
|
|
|
|
|
.HasColumnType("uuid");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<decimal>("ApprovalThreshold")
|
|
|
|
|
|
.HasPrecision(6, 3)
|
|
|
|
|
|
.HasColumnType("numeric(6,3)");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Category")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasColumnType("text");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<DateTimeOffset>("ClosesAtUtc")
|
|
|
|
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
|
|
|
2026-11-09 20:24:49 +00:00
|
|
|
|
b.Property<string>("Candidates")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasColumnType("text");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<DateTimeOffset?>("CommitClosesAtUtc")
|
|
|
|
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
|
|
|
2026-04-22 09:50:31 +01:00
|
|
|
|
b.Property<DateTimeOffset>("CreatedAtUtc")
|
|
|
|
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<Guid>("CreatedByUserAccountId")
|
|
|
|
|
|
.HasColumnType("uuid");
|
|
|
|
|
|
|
2026-11-09 20:24:49 +00:00
|
|
|
|
b.Property<string>("Kind")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasColumnType("text");
|
|
|
|
|
|
|
2026-04-22 09:50:31 +01:00
|
|
|
|
b.Property<DateTimeOffset>("OpensAtUtc")
|
|
|
|
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
|
|
|
2026-11-09 20:24:49 +00:00
|
|
|
|
b.Property<Guid?>("PriorMotionId")
|
|
|
|
|
|
.HasColumnType("uuid");
|
|
|
|
|
|
|
2026-04-22 09:50:31 +01:00
|
|
|
|
b.Property<Guid?>("ProjectId")
|
|
|
|
|
|
.HasColumnType("uuid");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("ResolutionNote")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasColumnType("text");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<DateTimeOffset?>("ResolvedAtUtc")
|
|
|
|
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
|
|
|
2026-11-09 20:40:54 +00:00
|
|
|
|
b.Property<int>("RevealSeq")
|
|
|
|
|
|
.IsConcurrencyToken()
|
|
|
|
|
|
.HasColumnType("integer");
|
|
|
|
|
|
|
2026-11-09 20:24:49 +00:00
|
|
|
|
b.Property<string>("ResultDigest")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasColumnType("text");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<int>("Round")
|
|
|
|
|
|
.HasColumnType("integer");
|
|
|
|
|
|
|
2026-04-22 09:50:31 +01:00
|
|
|
|
b.Property<string>("Scope")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasColumnType("text");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Status")
|
2026-11-09 20:30:35 +00:00
|
|
|
|
.IsConcurrencyToken()
|
2026-04-22 09:50:31 +01:00
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasColumnType("text");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Summary")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasColumnType("text");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Title")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasColumnType("text");
|
|
|
|
|
|
|
|
|
|
|
|
b.HasKey("Id");
|
|
|
|
|
|
|
|
|
|
|
|
b.HasIndex("CreatedByUserAccountId");
|
|
|
|
|
|
|
|
|
|
|
|
b.HasIndex("ProjectId");
|
|
|
|
|
|
|
|
|
|
|
|
b.ToTable("Motions");
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("Bifrost.Web.Domain.PatronSupportEvent", b =>
|
|
|
|
|
|
{
|
|
|
|
|
|
b.Property<Guid>("Id")
|
|
|
|
|
|
.ValueGeneratedOnAdd()
|
|
|
|
|
|
.HasColumnType("uuid");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<decimal>("Amount")
|
|
|
|
|
|
.HasPrecision(18, 2)
|
|
|
|
|
|
.HasColumnType("numeric(18,2)");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("CurrencyCode")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasMaxLength(12)
|
|
|
|
|
|
.HasColumnType("character varying(12)");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("ExternalSupportId")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasMaxLength(240)
|
|
|
|
|
|
.HasColumnType("character varying(240)");
|
|
|
|
|
|
|
2026-06-09 16:28:30 +01:00
|
|
|
|
b.Property<bool>("IsCurrentRecurringSupport")
|
|
|
|
|
|
.HasColumnType("boolean");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Kind")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasColumnType("text");
|
|
|
|
|
|
|
2026-04-22 09:50:31 +01:00
|
|
|
|
b.Property<string>("Notes")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasColumnType("text");
|
|
|
|
|
|
|
2026-10-10 06:39:59 +02:00
|
|
|
|
b.Property<Guid?>("ProjectId")
|
|
|
|
|
|
.HasColumnType("uuid");
|
|
|
|
|
|
|
2026-06-09 17:16:27 +01:00
|
|
|
|
b.Property<string>("Provider")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasColumnType("text");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("ProviderEventId")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasMaxLength(240)
|
|
|
|
|
|
.HasColumnType("character varying(240)");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("ProviderPayerId")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasMaxLength(240)
|
|
|
|
|
|
.HasColumnType("character varying(240)");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("ProviderSubscriptionId")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasMaxLength(240)
|
|
|
|
|
|
.HasColumnType("character varying(240)");
|
|
|
|
|
|
|
2026-06-17 04:03:14 +01:00
|
|
|
|
b.Property<DateTimeOffset>("RecordedAtUtc")
|
|
|
|
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
|
|
|
2026-04-22 09:50:31 +01:00
|
|
|
|
b.Property<DateTimeOffset>("SupportedAtUtc")
|
|
|
|
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<Guid>("UserAccountId")
|
|
|
|
|
|
.HasColumnType("uuid");
|
|
|
|
|
|
|
|
|
|
|
|
b.HasKey("Id");
|
|
|
|
|
|
|
2026-10-10 06:39:59 +02:00
|
|
|
|
b.HasIndex("ProjectId");
|
|
|
|
|
|
|
2026-06-09 17:16:27 +01:00
|
|
|
|
b.HasIndex("Provider", "ProviderEventId")
|
|
|
|
|
|
.IsUnique()
|
|
|
|
|
|
.HasFilter("\"ProviderEventId\" <> ''");
|
|
|
|
|
|
|
2026-06-17 04:03:14 +01:00
|
|
|
|
b.HasIndex("UserAccountId", "Kind", "IsCurrentRecurringSupport");
|
|
|
|
|
|
|
2026-04-22 09:50:31 +01:00
|
|
|
|
b.ToTable("PatronSupportEvents");
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("Bifrost.Web.Domain.PayoutProposalBatch", b =>
|
|
|
|
|
|
{
|
|
|
|
|
|
b.Property<Guid>("Id")
|
|
|
|
|
|
.ValueGeneratedOnAdd()
|
|
|
|
|
|
.HasColumnType("uuid");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<DateTimeOffset>("CreatedAtUtc")
|
|
|
|
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<Guid>("CreatedByUserAccountId")
|
|
|
|
|
|
.HasColumnType("uuid");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Status")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasColumnType("text");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Summary")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasColumnType("text");
|
|
|
|
|
|
|
|
|
|
|
|
b.HasKey("Id");
|
|
|
|
|
|
|
|
|
|
|
|
b.HasIndex("CreatedByUserAccountId");
|
|
|
|
|
|
|
|
|
|
|
|
b.ToTable("PayoutProposalBatches");
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("Bifrost.Web.Domain.PointTransaction", b =>
|
|
|
|
|
|
{
|
|
|
|
|
|
b.Property<Guid>("Id")
|
|
|
|
|
|
.ValueGeneratedOnAdd()
|
|
|
|
|
|
.HasColumnType("uuid");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<decimal>("Amount")
|
|
|
|
|
|
.HasPrecision(18, 2)
|
|
|
|
|
|
.HasColumnType("numeric(18,2)");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<DateTimeOffset>("CreatedAtUtc")
|
|
|
|
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<bool>("IsDecaying")
|
|
|
|
|
|
.HasColumnType("boolean");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Note")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasColumnType("text");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<Guid?>("ProjectId")
|
|
|
|
|
|
.HasColumnType("uuid");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Type")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasColumnType("text");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<Guid>("UserAccountId")
|
|
|
|
|
|
.HasColumnType("uuid");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<Guid?>("WorkItemId")
|
|
|
|
|
|
.HasColumnType("uuid");
|
|
|
|
|
|
|
|
|
|
|
|
b.HasKey("Id");
|
|
|
|
|
|
|
|
|
|
|
|
b.HasIndex("ProjectId");
|
|
|
|
|
|
|
|
|
|
|
|
b.HasIndex("UserAccountId");
|
|
|
|
|
|
|
|
|
|
|
|
b.HasIndex("WorkItemId");
|
|
|
|
|
|
|
|
|
|
|
|
b.ToTable("PointTransactions");
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("Bifrost.Web.Domain.Project", b =>
|
|
|
|
|
|
{
|
|
|
|
|
|
b.Property<Guid>("Id")
|
|
|
|
|
|
.ValueGeneratedOnAdd()
|
|
|
|
|
|
.HasColumnType("uuid");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<DateTimeOffset>("CreatedAtUtc")
|
|
|
|
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("GitHubRepository")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasMaxLength(240)
|
|
|
|
|
|
.HasColumnType("character varying(240)");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Name")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasMaxLength(180)
|
|
|
|
|
|
.HasColumnType("character varying(180)");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<Guid>("OwnerUserAccountId")
|
|
|
|
|
|
.HasColumnType("uuid");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Slug")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasMaxLength(120)
|
|
|
|
|
|
.HasColumnType("character varying(120)");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Status")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasColumnType("text");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Summary")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasColumnType("text");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<DateTimeOffset>("UpdatedAtUtc")
|
|
|
|
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
|
|
|
|
|
|
|
|
b.HasKey("Id");
|
|
|
|
|
|
|
|
|
|
|
|
b.HasIndex("GitHubRepository");
|
|
|
|
|
|
|
|
|
|
|
|
b.HasIndex("OwnerUserAccountId");
|
|
|
|
|
|
|
|
|
|
|
|
b.HasIndex("Slug")
|
|
|
|
|
|
.IsUnique();
|
|
|
|
|
|
|
|
|
|
|
|
b.ToTable("Projects");
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("Bifrost.Web.Domain.RevenueEvent", b =>
|
|
|
|
|
|
{
|
|
|
|
|
|
b.Property<Guid>("Id")
|
|
|
|
|
|
.ValueGeneratedOnAdd()
|
|
|
|
|
|
.HasColumnType("uuid");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<decimal>("Amount")
|
|
|
|
|
|
.HasPrecision(18, 2)
|
|
|
|
|
|
.HasColumnType("numeric(18,2)");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("CurrencyCode")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasMaxLength(12)
|
|
|
|
|
|
.HasColumnType("character varying(12)");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Notes")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasColumnType("text");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<Guid?>("ProjectId")
|
|
|
|
|
|
.HasColumnType("uuid");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<DateTimeOffset>("ReceivedAtUtc")
|
|
|
|
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
|
|
|
|
|
|
|
|
b.HasKey("Id");
|
|
|
|
|
|
|
|
|
|
|
|
b.HasIndex("ProjectId");
|
|
|
|
|
|
|
|
|
|
|
|
b.ToTable("RevenueEvents");
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("Bifrost.Web.Domain.RevenueShareBatch", b =>
|
|
|
|
|
|
{
|
|
|
|
|
|
b.Property<Guid>("Id")
|
|
|
|
|
|
.ValueGeneratedOnAdd()
|
|
|
|
|
|
.HasColumnType("uuid");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<DateTimeOffset>("CreatedAtUtc")
|
|
|
|
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<Guid>("CreatedByUserAccountId")
|
|
|
|
|
|
.HasColumnType("uuid");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<Guid?>("RevenueEventId")
|
|
|
|
|
|
.HasColumnType("uuid");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Summary")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasColumnType("text");
|
|
|
|
|
|
|
|
|
|
|
|
b.HasKey("Id");
|
|
|
|
|
|
|
|
|
|
|
|
b.HasIndex("CreatedByUserAccountId");
|
|
|
|
|
|
|
|
|
|
|
|
b.HasIndex("RevenueEventId");
|
|
|
|
|
|
|
|
|
|
|
|
b.ToTable("RevenueShareBatches");
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("Bifrost.Web.Domain.RevenueShareLine", b =>
|
|
|
|
|
|
{
|
|
|
|
|
|
b.Property<Guid>("Id")
|
|
|
|
|
|
.ValueGeneratedOnAdd()
|
|
|
|
|
|
.HasColumnType("uuid");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<decimal>("Amount")
|
|
|
|
|
|
.HasPrecision(18, 2)
|
|
|
|
|
|
.HasColumnType("numeric(18,2)");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Basis")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasMaxLength(240)
|
|
|
|
|
|
.HasColumnType("character varying(240)");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Notes")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasColumnType("text");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<Guid?>("ProjectId")
|
|
|
|
|
|
.HasColumnType("uuid");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<Guid>("RevenueShareBatchId")
|
|
|
|
|
|
.HasColumnType("uuid");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<Guid?>("UserAccountId")
|
|
|
|
|
|
.HasColumnType("uuid");
|
|
|
|
|
|
|
|
|
|
|
|
b.HasKey("Id");
|
|
|
|
|
|
|
|
|
|
|
|
b.HasIndex("ProjectId");
|
|
|
|
|
|
|
|
|
|
|
|
b.HasIndex("RevenueShareBatchId");
|
|
|
|
|
|
|
|
|
|
|
|
b.HasIndex("UserAccountId");
|
|
|
|
|
|
|
|
|
|
|
|
b.ToTable("RevenueShareLines");
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("Bifrost.Web.Domain.RoleAssignment", b =>
|
|
|
|
|
|
{
|
|
|
|
|
|
b.Property<Guid>("Id")
|
|
|
|
|
|
.ValueGeneratedOnAdd()
|
|
|
|
|
|
.HasColumnType("uuid");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<DateTimeOffset>("AssignedAtUtc")
|
|
|
|
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<Guid?>("AssignedByUserAccountId")
|
|
|
|
|
|
.HasColumnType("uuid");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<Guid>("MembershipId")
|
|
|
|
|
|
.HasColumnType("uuid");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Notes")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasColumnType("text");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Role")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasColumnType("text");
|
|
|
|
|
|
|
|
|
|
|
|
b.HasKey("Id");
|
|
|
|
|
|
|
|
|
|
|
|
b.HasIndex("AssignedByUserAccountId");
|
|
|
|
|
|
|
|
|
|
|
|
b.HasIndex("MembershipId", "Role")
|
|
|
|
|
|
.IsUnique();
|
|
|
|
|
|
|
|
|
|
|
|
b.ToTable("RoleAssignments");
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("Bifrost.Web.Domain.TierSnapshot", b =>
|
|
|
|
|
|
{
|
|
|
|
|
|
b.Property<Guid>("Id")
|
|
|
|
|
|
.ValueGeneratedOnAdd()
|
|
|
|
|
|
.HasColumnType("uuid");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<DateTimeOffset>("CapturedAtUtc")
|
|
|
|
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<DateTimeOffset>("EffectiveFromUtc")
|
|
|
|
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<bool>("IsCurrent")
|
|
|
|
|
|
.HasColumnType("boolean");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Kind")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasColumnType("text");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Label")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasMaxLength(120)
|
|
|
|
|
|
.HasColumnType("character varying(120)");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<Guid>("MembershipId")
|
|
|
|
|
|
.HasColumnType("uuid");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Notes")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasColumnType("text");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<decimal>("Weight")
|
|
|
|
|
|
.HasPrecision(18, 2)
|
|
|
|
|
|
.HasColumnType("numeric(18,2)");
|
|
|
|
|
|
|
|
|
|
|
|
b.HasKey("Id");
|
|
|
|
|
|
|
|
|
|
|
|
b.HasIndex("MembershipId", "Kind", "IsCurrent");
|
|
|
|
|
|
|
2026-11-14 04:58:26 +00:00
|
|
|
|
b.HasIndex("MembershipId")
|
|
|
|
|
|
.IsUnique()
|
|
|
|
|
|
.HasDatabaseName("UX_TierSnapshots_MembershipId_CurrentPatron")
|
|
|
|
|
|
.HasFilter("\"Kind\" = 'Patron' AND \"IsCurrent\"");
|
|
|
|
|
|
|
2026-04-22 09:50:31 +01:00
|
|
|
|
b.ToTable("TierSnapshots");
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("Bifrost.Web.Domain.UserAccount", b =>
|
|
|
|
|
|
{
|
|
|
|
|
|
b.Property<Guid>("Id")
|
|
|
|
|
|
.ValueGeneratedOnAdd()
|
|
|
|
|
|
.HasColumnType("uuid");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("AvatarUrl")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasMaxLength(500)
|
|
|
|
|
|
.HasColumnType("character varying(500)");
|
|
|
|
|
|
|
2026-06-22 15:07:22 +01:00
|
|
|
|
b.Property<string>("BifrostIdentity")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasMaxLength(120)
|
|
|
|
|
|
.HasColumnType("character varying(120)");
|
|
|
|
|
|
|
2026-04-22 09:50:31 +01:00
|
|
|
|
b.Property<DateTimeOffset>("CreatedAtUtc")
|
|
|
|
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("DisplayName")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasMaxLength(200)
|
|
|
|
|
|
.HasColumnType("character varying(200)");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("GitHubLogin")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasMaxLength(120)
|
|
|
|
|
|
.HasColumnType("character varying(120)");
|
|
|
|
|
|
|
2026-06-08 21:04:51 +01:00
|
|
|
|
b.Property<long?>("GitHubUserId")
|
2026-04-22 09:50:31 +01:00
|
|
|
|
.HasColumnType("bigint");
|
|
|
|
|
|
|
2026-06-08 21:04:51 +01:00
|
|
|
|
b.Property<string>("HeimdallAccountId")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasMaxLength(160)
|
|
|
|
|
|
.HasColumnType("character varying(160)");
|
|
|
|
|
|
|
2026-04-22 09:50:31 +01:00
|
|
|
|
b.Property<DateTimeOffset>("LastSeenAtUtc")
|
|
|
|
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
|
|
|
2026-06-22 15:07:22 +01:00
|
|
|
|
b.Property<string>("NormalizedBifrostIdentity")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasMaxLength(120)
|
|
|
|
|
|
.HasColumnType("character varying(120)");
|
|
|
|
|
|
|
2026-04-22 09:50:31 +01:00
|
|
|
|
b.Property<string>("NormalizedGitHubLogin")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasMaxLength(120)
|
|
|
|
|
|
.HasColumnType("character varying(120)");
|
|
|
|
|
|
|
|
|
|
|
|
b.HasKey("Id");
|
|
|
|
|
|
|
|
|
|
|
|
b.HasIndex("GitHubUserId")
|
2026-06-08 21:04:51 +01:00
|
|
|
|
.IsUnique()
|
|
|
|
|
|
.HasFilter("\"GitHubUserId\" IS NOT NULL");
|
|
|
|
|
|
|
|
|
|
|
|
b.HasIndex("HeimdallAccountId")
|
|
|
|
|
|
.IsUnique()
|
|
|
|
|
|
.HasFilter("\"HeimdallAccountId\" <> ''");
|
2026-04-22 09:50:31 +01:00
|
|
|
|
|
2026-06-22 15:07:22 +01:00
|
|
|
|
b.HasIndex("NormalizedBifrostIdentity")
|
|
|
|
|
|
.IsUnique()
|
|
|
|
|
|
.HasFilter("\"NormalizedBifrostIdentity\" <> ''");
|
|
|
|
|
|
|
2026-04-22 09:50:31 +01:00
|
|
|
|
b.HasIndex("NormalizedGitHubLogin")
|
2026-06-08 21:04:51 +01:00
|
|
|
|
.IsUnique()
|
|
|
|
|
|
.HasFilter("\"NormalizedGitHubLogin\" <> ''");
|
2026-04-22 09:50:31 +01:00
|
|
|
|
|
|
|
|
|
|
b.ToTable("UserAccounts");
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("Bifrost.Web.Domain.VolunteerClaim", b =>
|
|
|
|
|
|
{
|
|
|
|
|
|
b.Property<Guid>("Id")
|
|
|
|
|
|
.ValueGeneratedOnAdd()
|
|
|
|
|
|
.HasColumnType("uuid");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<DateTimeOffset>("CreatedAtUtc")
|
|
|
|
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Note")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasColumnType("text");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Status")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasColumnType("text");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<Guid>("UserAccountId")
|
|
|
|
|
|
.HasColumnType("uuid");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<Guid>("WorkItemId")
|
|
|
|
|
|
.HasColumnType("uuid");
|
|
|
|
|
|
|
|
|
|
|
|
b.HasKey("Id");
|
|
|
|
|
|
|
|
|
|
|
|
b.HasIndex("UserAccountId");
|
|
|
|
|
|
|
|
|
|
|
|
b.HasIndex("WorkItemId", "UserAccountId")
|
|
|
|
|
|
.IsUnique();
|
|
|
|
|
|
|
|
|
|
|
|
b.ToTable("VolunteerClaims");
|
|
|
|
|
|
});
|
|
|
|
|
|
|
2026-11-11 10:15:46 +00:00
|
|
|
|
modelBuilder.Entity("Bifrost.Web.Domain.ConsentReceipt", b =>
|
|
|
|
|
|
{
|
|
|
|
|
|
b.Property<Guid>("Id")
|
|
|
|
|
|
.ValueGeneratedOnAdd()
|
|
|
|
|
|
.HasColumnType("uuid");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<DateTimeOffset>("AcceptedAtUtc")
|
|
|
|
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<int>("NoticeVersion")
|
|
|
|
|
|
.HasColumnType("integer");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<Guid>("UserAccountId")
|
|
|
|
|
|
.HasColumnType("uuid");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<DateTimeOffset?>("WithdrawnAtUtc")
|
|
|
|
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
|
|
|
|
|
|
|
|
b.HasKey("Id");
|
|
|
|
|
|
|
|
|
|
|
|
b.HasIndex("UserAccountId", "NoticeVersion")
|
2026-11-11 12:11:02 +00:00
|
|
|
|
.IsUnique()
|
|
|
|
|
|
.HasFilter("\"WithdrawnAtUtc\" IS NULL");
|
2026-11-11 10:15:46 +00:00
|
|
|
|
|
|
|
|
|
|
b.ToTable("ConsentReceipts");
|
|
|
|
|
|
});
|
|
|
|
|
|
|
2026-11-14 00:37:56 +00:00
|
|
|
|
modelBuilder.Entity("Bifrost.Web.Domain.PasskeyCredential", b =>
|
|
|
|
|
|
{
|
|
|
|
|
|
b.Property<Guid>("Id")
|
|
|
|
|
|
.ValueGeneratedOnAdd()
|
|
|
|
|
|
.HasColumnType("uuid");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<Guid?>("AaGuid")
|
|
|
|
|
|
.HasColumnType("uuid");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<DateTimeOffset>("CreatedUtc")
|
|
|
|
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<byte[]>("CredentialId")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasColumnType("bytea");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Label")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasColumnType("text");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<DateTimeOffset?>("LastUsedUtc")
|
|
|
|
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<byte[]>("PublicKey")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasColumnType("bytea");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<DateTimeOffset?>("RevokedUtc")
|
|
|
|
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<long>("SignCount")
|
|
|
|
|
|
.HasColumnType("bigint");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<DateTimeOffset>("StrongFromUtc")
|
|
|
|
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Transports")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasColumnType("text");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<Guid>("UserAccountId")
|
|
|
|
|
|
.HasColumnType("uuid");
|
|
|
|
|
|
|
|
|
|
|
|
b.HasKey("Id");
|
|
|
|
|
|
|
|
|
|
|
|
b.HasIndex("CredentialId")
|
|
|
|
|
|
.IsUnique();
|
|
|
|
|
|
|
|
|
|
|
|
b.HasIndex("UserAccountId");
|
|
|
|
|
|
|
|
|
|
|
|
b.ToTable("PasskeyCredentials");
|
|
|
|
|
|
});
|
|
|
|
|
|
|
2026-11-09 20:37:47 +00:00
|
|
|
|
modelBuilder.Entity("Bifrost.Web.Domain.MindKey", b =>
|
|
|
|
|
|
{
|
|
|
|
|
|
b.Property<Guid>("Id")
|
|
|
|
|
|
.ValueGeneratedOnAdd()
|
|
|
|
|
|
.HasColumnType("uuid");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("PersonaId")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasColumnType("text");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("PublicKey")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasColumnType("text");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<Guid>("RegisteredByUserAccountId")
|
|
|
|
|
|
.HasColumnType("uuid");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<DateTimeOffset>("RegisteredAtUtc")
|
|
|
|
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<DateTimeOffset?>("RevokedAtUtc")
|
|
|
|
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<Guid?>("RevokedByUserAccountId")
|
|
|
|
|
|
.HasColumnType("uuid");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<Guid>("UserAccountId")
|
|
|
|
|
|
.HasColumnType("uuid");
|
|
|
|
|
|
|
|
|
|
|
|
b.HasKey("Id");
|
|
|
|
|
|
|
|
|
|
|
|
b.HasIndex("PersonaId", "PublicKey")
|
|
|
|
|
|
.IsUnique();
|
|
|
|
|
|
|
|
|
|
|
|
b.ToTable("MindKeys");
|
|
|
|
|
|
});
|
|
|
|
|
|
|
2026-11-09 20:50:41 +00:00
|
|
|
|
modelBuilder.Entity("Bifrost.Web.Domain.MindPersona", b =>
|
|
|
|
|
|
{
|
|
|
|
|
|
b.Property<Guid>("Id")
|
|
|
|
|
|
.ValueGeneratedOnAdd()
|
|
|
|
|
|
.HasColumnType("uuid");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("PersonaId")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasColumnType("text");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<Guid>("UserAccountId")
|
|
|
|
|
|
.HasColumnType("uuid");
|
|
|
|
|
|
|
|
|
|
|
|
b.HasKey("Id");
|
|
|
|
|
|
|
|
|
|
|
|
b.HasIndex("PersonaId")
|
|
|
|
|
|
.IsUnique();
|
|
|
|
|
|
|
|
|
|
|
|
b.HasIndex("UserAccountId")
|
|
|
|
|
|
.IsUnique();
|
|
|
|
|
|
|
|
|
|
|
|
b.ToTable("MindPersonas");
|
|
|
|
|
|
});
|
|
|
|
|
|
|
2026-11-09 20:37:47 +00:00
|
|
|
|
modelBuilder.Entity("Bifrost.Web.Domain.MindNonce", b =>
|
|
|
|
|
|
{
|
|
|
|
|
|
b.Property<Guid>("Id")
|
|
|
|
|
|
.ValueGeneratedOnAdd()
|
|
|
|
|
|
.HasColumnType("uuid");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Nonce")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasColumnType("text");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("PersonaId")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasColumnType("text");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<DateTimeOffset>("SeenAtUtc")
|
|
|
|
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
|
|
|
|
|
|
|
|
b.HasKey("Id");
|
|
|
|
|
|
|
|
|
|
|
|
b.HasIndex("PersonaId", "Nonce")
|
|
|
|
|
|
.IsUnique();
|
|
|
|
|
|
|
|
|
|
|
|
b.ToTable("MindNonces");
|
|
|
|
|
|
});
|
|
|
|
|
|
|
2026-11-09 20:24:49 +00:00
|
|
|
|
modelBuilder.Entity("Bifrost.Web.Domain.SealedBallot", b =>
|
|
|
|
|
|
{
|
|
|
|
|
|
b.Property<Guid>("Id")
|
|
|
|
|
|
.ValueGeneratedOnAdd()
|
|
|
|
|
|
.HasColumnType("uuid");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Commitment")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasColumnType("text");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<DateTimeOffset>("CommittedAtUtc")
|
|
|
|
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<Guid>("MotionId")
|
|
|
|
|
|
.HasColumnType("uuid");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("RevealedCandidate")
|
|
|
|
|
|
.HasColumnType("text");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("RevealedReason")
|
|
|
|
|
|
.HasColumnType("text");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<DateTimeOffset?>("RevealedAtUtc")
|
|
|
|
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<int>("Revision")
|
|
|
|
|
|
.HasColumnType("integer");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Salt")
|
|
|
|
|
|
.HasColumnType("text");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<Guid>("UserAccountId")
|
|
|
|
|
|
.HasColumnType("uuid");
|
|
|
|
|
|
|
|
|
|
|
|
b.HasKey("Id");
|
|
|
|
|
|
|
|
|
|
|
|
b.HasIndex("UserAccountId");
|
|
|
|
|
|
|
|
|
|
|
|
b.HasIndex("MotionId", "UserAccountId")
|
|
|
|
|
|
.IsUnique();
|
|
|
|
|
|
|
|
|
|
|
|
b.ToTable("SealedBallots");
|
|
|
|
|
|
});
|
|
|
|
|
|
|
2026-04-22 09:50:31 +01:00
|
|
|
|
modelBuilder.Entity("Bifrost.Web.Domain.Vote", b =>
|
|
|
|
|
|
{
|
|
|
|
|
|
b.Property<Guid>("Id")
|
|
|
|
|
|
.ValueGeneratedOnAdd()
|
|
|
|
|
|
.HasColumnType("uuid");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<DateTimeOffset>("CastAtUtc")
|
|
|
|
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Choice")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasColumnType("text");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Comment")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasColumnType("text");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<Guid>("MotionId")
|
|
|
|
|
|
.HasColumnType("uuid");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<Guid>("UserAccountId")
|
|
|
|
|
|
.HasColumnType("uuid");
|
|
|
|
|
|
|
Account merge ledger: AccountMerge receipt, reductions, alias standing, undo and final sweep
AccountMergeLedger owns what a merge does to Bifrost records: PlanAsync (dry run, block codes),
CommitAsync (one save, total, idempotent), UndoLocalAsync (journal replay), FinalizeDueAsync
(AccountMergeSweeper) and StandingAsync/ResolveAsync. Votes and concept appraisals are voided by a
stamp that a model query filter hides from every tally. The actor accessor no longer ORs several
credentials under SingleOrDefault (a latent crash); a frozen or folded account resolves to no
account on every route, the OIDC authorize and chat refusal deny it, and patron intake follows the
alias. Migration AddAccountMerges is additive. No UI, no Heimdall call, nothing deployed.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-14 02:31:51 +00:00
|
|
|
|
b.Property<Guid?>("VoidedByMergeId")
|
|
|
|
|
|
.HasColumnType("uuid");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<DateTimeOffset?>("VoidedUtc")
|
|
|
|
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
|
|
|
2026-04-22 09:50:31 +01:00
|
|
|
|
b.Property<decimal>("Weight")
|
|
|
|
|
|
.HasPrecision(18, 2)
|
|
|
|
|
|
.HasColumnType("numeric(18,2)");
|
|
|
|
|
|
|
|
|
|
|
|
b.HasKey("Id");
|
|
|
|
|
|
|
|
|
|
|
|
b.HasIndex("UserAccountId");
|
|
|
|
|
|
|
|
|
|
|
|
b.HasIndex("MotionId", "UserAccountId")
|
|
|
|
|
|
.IsUnique();
|
|
|
|
|
|
|
|
|
|
|
|
b.ToTable("Votes");
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("Bifrost.Web.Domain.WorkItem", b =>
|
|
|
|
|
|
{
|
|
|
|
|
|
b.Property<Guid>("Id")
|
|
|
|
|
|
.ValueGeneratedOnAdd()
|
|
|
|
|
|
.HasColumnType("uuid");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<Guid?>("AssignedToUserAccountId")
|
|
|
|
|
|
.HasColumnType("uuid");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Category")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasMaxLength(120)
|
|
|
|
|
|
.HasColumnType("character varying(120)");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<DateTimeOffset?>("CompletedAtUtc")
|
|
|
|
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<decimal>("ContributionPoints")
|
|
|
|
|
|
.HasPrecision(18, 2)
|
|
|
|
|
|
.HasColumnType("numeric(18,2)");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<DateTimeOffset>("CreatedAtUtc")
|
|
|
|
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<decimal>("EstimatedHours")
|
|
|
|
|
|
.HasPrecision(18, 2)
|
|
|
|
|
|
.HasColumnType("numeric(18,2)");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("ExternalSourceId")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasMaxLength(240)
|
|
|
|
|
|
.HasColumnType("character varying(240)");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<Guid>("ProjectId")
|
|
|
|
|
|
.HasColumnType("uuid");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<Guid>("RequestedByUserAccountId")
|
|
|
|
|
|
.HasColumnType("uuid");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("ReviewStatus")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasColumnType("text");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("SkillLevel")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasColumnType("text");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("SourceType")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasColumnType("text");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Status")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasColumnType("text");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<DateTimeOffset?>("SubmittedAtUtc")
|
|
|
|
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Summary")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasColumnType("text");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<DateTimeOffset?>("TargetDateUtc")
|
|
|
|
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Title")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasMaxLength(180)
|
|
|
|
|
|
.HasColumnType("character varying(180)");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<DateTimeOffset>("UpdatedAtUtc")
|
|
|
|
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
|
|
|
|
|
|
|
|
b.HasKey("Id");
|
|
|
|
|
|
|
|
|
|
|
|
b.HasIndex("AssignedToUserAccountId");
|
|
|
|
|
|
|
|
|
|
|
|
b.HasIndex("ProjectId");
|
|
|
|
|
|
|
|
|
|
|
|
b.HasIndex("RequestedByUserAccountId");
|
|
|
|
|
|
|
|
|
|
|
|
b.ToTable("WorkItems");
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("Bifrost.Web.Domain.WorkLog", b =>
|
|
|
|
|
|
{
|
|
|
|
|
|
b.Property<Guid>("Id")
|
|
|
|
|
|
.ValueGeneratedOnAdd()
|
|
|
|
|
|
.HasColumnType("uuid");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("ApprovalStatus")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasColumnType("text");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<DateTimeOffset>("CreatedAtUtc")
|
|
|
|
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<decimal>("Hours")
|
|
|
|
|
|
.HasPrecision(18, 2)
|
|
|
|
|
|
.HasColumnType("numeric(18,2)");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Note")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasColumnType("text");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<DateTimeOffset?>("ReviewedAtUtc")
|
|
|
|
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<Guid?>("ReviewedByUserAccountId")
|
|
|
|
|
|
.HasColumnType("uuid");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<Guid>("UserAccountId")
|
|
|
|
|
|
.HasColumnType("uuid");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<Guid>("WorkItemId")
|
|
|
|
|
|
.HasColumnType("uuid");
|
|
|
|
|
|
|
|
|
|
|
|
b.HasKey("Id");
|
|
|
|
|
|
|
|
|
|
|
|
b.HasIndex("ReviewedByUserAccountId");
|
|
|
|
|
|
|
|
|
|
|
|
b.HasIndex("UserAccountId");
|
|
|
|
|
|
|
|
|
|
|
|
b.HasIndex("WorkItemId");
|
|
|
|
|
|
|
|
|
|
|
|
b.ToTable("WorkLogs");
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("Bifrost.Web.Domain.WorkReview", b =>
|
|
|
|
|
|
{
|
|
|
|
|
|
b.Property<Guid>("Id")
|
|
|
|
|
|
.ValueGeneratedOnAdd()
|
|
|
|
|
|
.HasColumnType("uuid");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Note")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasColumnType("text");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<DateTimeOffset>("ReviewedAtUtc")
|
|
|
|
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("ReviewerName")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasMaxLength(200)
|
|
|
|
|
|
.HasColumnType("character varying(200)");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<Guid?>("ReviewerUserAccountId")
|
|
|
|
|
|
.HasColumnType("uuid");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Status")
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
.HasColumnType("text");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<Guid>("WorkItemId")
|
|
|
|
|
|
.HasColumnType("uuid");
|
|
|
|
|
|
|
|
|
|
|
|
b.HasKey("Id");
|
|
|
|
|
|
|
|
|
|
|
|
b.HasIndex("ReviewerUserAccountId");
|
|
|
|
|
|
|
|
|
|
|
|
b.HasIndex("WorkItemId");
|
|
|
|
|
|
|
|
|
|
|
|
b.ToTable("WorkReviews");
|
|
|
|
|
|
});
|
|
|
|
|
|
|
2026-10-27 04:57:16 +01:00
|
|
|
|
modelBuilder.Entity("OpenIddict.EntityFrameworkCore.Models.OpenIddictEntityFrameworkCoreApplication", b =>
|
|
|
|
|
|
{
|
|
|
|
|
|
b.Property<string>("Id")
|
|
|
|
|
|
.ValueGeneratedOnAdd()
|
|
|
|
|
|
.HasColumnType("text");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("ApplicationType")
|
|
|
|
|
|
.HasMaxLength(50)
|
|
|
|
|
|
.HasColumnType("character varying(50)");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("ClientId")
|
|
|
|
|
|
.HasMaxLength(100)
|
|
|
|
|
|
.HasColumnType("character varying(100)");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("ClientSecret")
|
|
|
|
|
|
.HasColumnType("text");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("ClientType")
|
|
|
|
|
|
.HasMaxLength(50)
|
|
|
|
|
|
.HasColumnType("character varying(50)");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("ConcurrencyToken")
|
|
|
|
|
|
.IsConcurrencyToken()
|
|
|
|
|
|
.HasMaxLength(50)
|
|
|
|
|
|
.HasColumnType("character varying(50)");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("ConsentType")
|
|
|
|
|
|
.HasMaxLength(50)
|
|
|
|
|
|
.HasColumnType("character varying(50)");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("DisplayName")
|
|
|
|
|
|
.HasColumnType("text");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("DisplayNames")
|
|
|
|
|
|
.HasColumnType("text");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("JsonWebKeySet")
|
|
|
|
|
|
.HasColumnType("text");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Permissions")
|
|
|
|
|
|
.HasColumnType("text");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("PostLogoutRedirectUris")
|
|
|
|
|
|
.HasColumnType("text");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Properties")
|
|
|
|
|
|
.HasColumnType("text");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("RedirectUris")
|
|
|
|
|
|
.HasColumnType("text");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Requirements")
|
|
|
|
|
|
.HasColumnType("text");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Settings")
|
|
|
|
|
|
.HasColumnType("text");
|
|
|
|
|
|
|
|
|
|
|
|
b.HasKey("Id");
|
|
|
|
|
|
|
|
|
|
|
|
b.HasIndex("ClientId")
|
|
|
|
|
|
.IsUnique();
|
|
|
|
|
|
|
|
|
|
|
|
b.ToTable("OpenIddictApplications", (string)null);
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("OpenIddict.EntityFrameworkCore.Models.OpenIddictEntityFrameworkCoreAuthorization", b =>
|
|
|
|
|
|
{
|
|
|
|
|
|
b.Property<string>("Id")
|
|
|
|
|
|
.ValueGeneratedOnAdd()
|
|
|
|
|
|
.HasColumnType("text");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("ApplicationId")
|
|
|
|
|
|
.HasColumnType("text");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("ConcurrencyToken")
|
|
|
|
|
|
.IsConcurrencyToken()
|
|
|
|
|
|
.HasMaxLength(50)
|
|
|
|
|
|
.HasColumnType("character varying(50)");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<DateTime?>("CreationDate")
|
|
|
|
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Properties")
|
|
|
|
|
|
.HasColumnType("text");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Scopes")
|
|
|
|
|
|
.HasColumnType("text");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Status")
|
|
|
|
|
|
.HasMaxLength(50)
|
|
|
|
|
|
.HasColumnType("character varying(50)");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Subject")
|
|
|
|
|
|
.HasMaxLength(400)
|
|
|
|
|
|
.HasColumnType("character varying(400)");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Type")
|
|
|
|
|
|
.HasMaxLength(50)
|
|
|
|
|
|
.HasColumnType("character varying(50)");
|
|
|
|
|
|
|
|
|
|
|
|
b.HasKey("Id");
|
|
|
|
|
|
|
|
|
|
|
|
b.HasIndex("ApplicationId", "Status", "Subject", "Type");
|
|
|
|
|
|
|
|
|
|
|
|
b.ToTable("OpenIddictAuthorizations", (string)null);
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("OpenIddict.EntityFrameworkCore.Models.OpenIddictEntityFrameworkCoreScope", b =>
|
|
|
|
|
|
{
|
|
|
|
|
|
b.Property<string>("Id")
|
|
|
|
|
|
.ValueGeneratedOnAdd()
|
|
|
|
|
|
.HasColumnType("text");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("ConcurrencyToken")
|
|
|
|
|
|
.IsConcurrencyToken()
|
|
|
|
|
|
.HasMaxLength(50)
|
|
|
|
|
|
.HasColumnType("character varying(50)");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Description")
|
|
|
|
|
|
.HasColumnType("text");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Descriptions")
|
|
|
|
|
|
.HasColumnType("text");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("DisplayName")
|
|
|
|
|
|
.HasColumnType("text");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("DisplayNames")
|
|
|
|
|
|
.HasColumnType("text");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Name")
|
|
|
|
|
|
.HasMaxLength(200)
|
|
|
|
|
|
.HasColumnType("character varying(200)");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Properties")
|
|
|
|
|
|
.HasColumnType("text");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Resources")
|
|
|
|
|
|
.HasColumnType("text");
|
|
|
|
|
|
|
|
|
|
|
|
b.HasKey("Id");
|
|
|
|
|
|
|
|
|
|
|
|
b.HasIndex("Name")
|
|
|
|
|
|
.IsUnique();
|
|
|
|
|
|
|
|
|
|
|
|
b.ToTable("OpenIddictScopes", (string)null);
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("OpenIddict.EntityFrameworkCore.Models.OpenIddictEntityFrameworkCoreToken", b =>
|
|
|
|
|
|
{
|
|
|
|
|
|
b.Property<string>("Id")
|
|
|
|
|
|
.ValueGeneratedOnAdd()
|
|
|
|
|
|
.HasColumnType("text");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("ApplicationId")
|
|
|
|
|
|
.HasColumnType("text");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("AuthorizationId")
|
|
|
|
|
|
.HasColumnType("text");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("ConcurrencyToken")
|
|
|
|
|
|
.IsConcurrencyToken()
|
|
|
|
|
|
.HasMaxLength(50)
|
|
|
|
|
|
.HasColumnType("character varying(50)");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<DateTime?>("CreationDate")
|
|
|
|
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<DateTime?>("ExpirationDate")
|
|
|
|
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Payload")
|
|
|
|
|
|
.HasColumnType("text");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Properties")
|
|
|
|
|
|
.HasColumnType("text");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<DateTime?>("RedemptionDate")
|
|
|
|
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("ReferenceId")
|
|
|
|
|
|
.HasMaxLength(100)
|
|
|
|
|
|
.HasColumnType("character varying(100)");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Status")
|
|
|
|
|
|
.HasMaxLength(50)
|
|
|
|
|
|
.HasColumnType("character varying(50)");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Subject")
|
|
|
|
|
|
.HasMaxLength(400)
|
|
|
|
|
|
.HasColumnType("character varying(400)");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Type")
|
|
|
|
|
|
.HasMaxLength(150)
|
|
|
|
|
|
.HasColumnType("character varying(150)");
|
|
|
|
|
|
|
|
|
|
|
|
b.HasKey("Id");
|
|
|
|
|
|
|
|
|
|
|
|
b.HasIndex("AuthorizationId");
|
|
|
|
|
|
|
|
|
|
|
|
b.HasIndex("ReferenceId")
|
|
|
|
|
|
.IsUnique();
|
|
|
|
|
|
|
|
|
|
|
|
b.HasIndex("ApplicationId", "Status", "Subject", "Type");
|
|
|
|
|
|
|
|
|
|
|
|
b.ToTable("OpenIddictTokens", (string)null);
|
|
|
|
|
|
});
|
|
|
|
|
|
|
Account merge ledger: AccountMerge receipt, reductions, alias standing, undo and final sweep
AccountMergeLedger owns what a merge does to Bifrost records: PlanAsync (dry run, block codes),
CommitAsync (one save, total, idempotent), UndoLocalAsync (journal replay), FinalizeDueAsync
(AccountMergeSweeper) and StandingAsync/ResolveAsync. Votes and concept appraisals are voided by a
stamp that a model query filter hides from every tally. The actor accessor no longer ORs several
credentials under SingleOrDefault (a latent crash); a frozen or folded account resolves to no
account on every route, the OIDC authorize and chat refusal deny it, and patron intake follows the
alias. Migration AddAccountMerges is additive. No UI, no Heimdall call, nothing deployed.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-14 02:31:51 +00:00
|
|
|
|
modelBuilder.Entity("Bifrost.Web.Domain.AccountMerge", b =>
|
|
|
|
|
|
{
|
|
|
|
|
|
b.HasOne("Bifrost.Web.Domain.UserAccount", null)
|
|
|
|
|
|
.WithMany()
|
|
|
|
|
|
.HasForeignKey("FoldedUserAccountId")
|
|
|
|
|
|
.OnDelete(DeleteBehavior.Restrict)
|
|
|
|
|
|
.IsRequired();
|
|
|
|
|
|
|
|
|
|
|
|
b.HasOne("Bifrost.Web.Domain.UserAccount", null)
|
|
|
|
|
|
.WithMany()
|
|
|
|
|
|
.HasForeignKey("SurvivorUserAccountId")
|
|
|
|
|
|
.OnDelete(DeleteBehavior.Restrict)
|
|
|
|
|
|
.IsRequired();
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("Bifrost.Web.Domain.AccountMergeEntry", b =>
|
|
|
|
|
|
{
|
|
|
|
|
|
b.HasOne("Bifrost.Web.Domain.AccountMerge", "Merge")
|
|
|
|
|
|
.WithMany("Entries")
|
|
|
|
|
|
.HasForeignKey("MergeId")
|
|
|
|
|
|
.OnDelete(DeleteBehavior.Restrict)
|
|
|
|
|
|
.IsRequired();
|
|
|
|
|
|
|
|
|
|
|
|
b.Navigation("Merge");
|
|
|
|
|
|
});
|
|
|
|
|
|
|
2026-11-14 10:42:12 +00:00
|
|
|
|
modelBuilder.Entity("Bifrost.Web.Domain.AccountMergeNoticeAck", b =>
|
|
|
|
|
|
{
|
|
|
|
|
|
b.HasOne("Bifrost.Web.Domain.AccountMerge", null)
|
|
|
|
|
|
.WithMany()
|
|
|
|
|
|
.HasForeignKey("MergeId")
|
|
|
|
|
|
.OnDelete(DeleteBehavior.Restrict)
|
|
|
|
|
|
.IsRequired();
|
|
|
|
|
|
});
|
|
|
|
|
|
|
2026-06-17 04:03:14 +01:00
|
|
|
|
modelBuilder.Entity("Bifrost.Web.Domain.AgentDispatchRun", b =>
|
|
|
|
|
|
{
|
|
|
|
|
|
b.HasOne("Bifrost.Web.Domain.UserAccount", "StartedByUserAccount")
|
|
|
|
|
|
.WithMany("AgentDispatchRuns")
|
|
|
|
|
|
.HasForeignKey("StartedByUserAccountId")
|
|
|
|
|
|
.OnDelete(DeleteBehavior.SetNull);
|
|
|
|
|
|
|
|
|
|
|
|
b.Navigation("StartedByUserAccount");
|
|
|
|
|
|
});
|
|
|
|
|
|
|
2026-06-17 04:49:22 +01:00
|
|
|
|
modelBuilder.Entity("Bifrost.Web.Domain.AgentTransportReceipt", b =>
|
|
|
|
|
|
{
|
|
|
|
|
|
b.HasOne("Bifrost.Web.Domain.UserAccount", "ActorUserAccount")
|
|
|
|
|
|
.WithMany("AgentTransportReceipts")
|
|
|
|
|
|
.HasForeignKey("ActorUserAccountId")
|
|
|
|
|
|
.OnDelete(DeleteBehavior.SetNull);
|
|
|
|
|
|
|
|
|
|
|
|
b.Navigation("ActorUserAccount");
|
|
|
|
|
|
});
|
|
|
|
|
|
|
2026-04-22 09:50:31 +01:00
|
|
|
|
modelBuilder.Entity("Bifrost.Web.Domain.Assignment", b =>
|
|
|
|
|
|
{
|
|
|
|
|
|
b.HasOne("Bifrost.Web.Domain.UserAccount", "AssignedByUserAccount")
|
|
|
|
|
|
.WithMany()
|
|
|
|
|
|
.HasForeignKey("AssignedByUserAccountId")
|
|
|
|
|
|
.OnDelete(DeleteBehavior.Restrict)
|
|
|
|
|
|
.IsRequired();
|
|
|
|
|
|
|
|
|
|
|
|
b.HasOne("Bifrost.Web.Domain.UserAccount", "UserAccount")
|
|
|
|
|
|
.WithMany("Assignments")
|
|
|
|
|
|
.HasForeignKey("UserAccountId")
|
|
|
|
|
|
.OnDelete(DeleteBehavior.Restrict)
|
|
|
|
|
|
.IsRequired();
|
|
|
|
|
|
|
|
|
|
|
|
b.HasOne("Bifrost.Web.Domain.WorkItem", "WorkItem")
|
|
|
|
|
|
.WithMany("Assignments")
|
|
|
|
|
|
.HasForeignKey("WorkItemId")
|
|
|
|
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
|
|
|
|
.IsRequired();
|
|
|
|
|
|
|
|
|
|
|
|
b.Navigation("AssignedByUserAccount");
|
|
|
|
|
|
|
|
|
|
|
|
b.Navigation("UserAccount");
|
|
|
|
|
|
|
|
|
|
|
|
b.Navigation("WorkItem");
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("Bifrost.Web.Domain.AuditEvent", b =>
|
|
|
|
|
|
{
|
|
|
|
|
|
b.HasOne("Bifrost.Web.Domain.UserAccount", "ActorUserAccount")
|
|
|
|
|
|
.WithMany("AuditEvents")
|
|
|
|
|
|
.HasForeignKey("ActorUserAccountId")
|
|
|
|
|
|
.OnDelete(DeleteBehavior.SetNull);
|
|
|
|
|
|
|
|
|
|
|
|
b.Navigation("ActorUserAccount");
|
|
|
|
|
|
});
|
|
|
|
|
|
|
2026-06-17 04:03:14 +01:00
|
|
|
|
modelBuilder.Entity("Bifrost.Web.Domain.BridgeAction", b =>
|
|
|
|
|
|
{
|
|
|
|
|
|
b.HasOne("Bifrost.Web.Domain.UserAccount", "ActorUserAccount")
|
|
|
|
|
|
.WithMany("BridgeActions")
|
|
|
|
|
|
.HasForeignKey("ActorUserAccountId")
|
|
|
|
|
|
.OnDelete(DeleteBehavior.SetNull);
|
|
|
|
|
|
|
|
|
|
|
|
b.HasOne("Bifrost.Web.Domain.Motion", "Motion")
|
|
|
|
|
|
.WithMany()
|
|
|
|
|
|
.HasForeignKey("MotionId")
|
|
|
|
|
|
.OnDelete(DeleteBehavior.SetNull);
|
|
|
|
|
|
|
|
|
|
|
|
b.HasOne("Bifrost.Web.Domain.WorkItem", "WorkItem")
|
|
|
|
|
|
.WithMany()
|
|
|
|
|
|
.HasForeignKey("WorkItemId")
|
|
|
|
|
|
.OnDelete(DeleteBehavior.SetNull);
|
|
|
|
|
|
|
|
|
|
|
|
b.Navigation("ActorUserAccount");
|
|
|
|
|
|
|
|
|
|
|
|
b.Navigation("Motion");
|
|
|
|
|
|
|
|
|
|
|
|
b.Navigation("WorkItem");
|
|
|
|
|
|
});
|
|
|
|
|
|
|
2026-10-10 06:39:59 +02:00
|
|
|
|
modelBuilder.Entity("Bifrost.Web.Domain.ConceptAppraisal", b =>
|
|
|
|
|
|
{
|
|
|
|
|
|
b.HasOne("Bifrost.Web.Domain.ConceptSubject", "Subject")
|
|
|
|
|
|
.WithMany()
|
|
|
|
|
|
.HasForeignKey("SubjectId")
|
|
|
|
|
|
.OnDelete(DeleteBehavior.Restrict)
|
|
|
|
|
|
.IsRequired();
|
|
|
|
|
|
|
|
|
|
|
|
b.HasOne("Bifrost.Web.Domain.UserAccount", null)
|
|
|
|
|
|
.WithMany()
|
|
|
|
|
|
.HasForeignKey("UserAccountId")
|
|
|
|
|
|
.OnDelete(DeleteBehavior.SetNull);
|
|
|
|
|
|
|
|
|
|
|
|
b.Navigation("Subject");
|
|
|
|
|
|
});
|
|
|
|
|
|
|
2026-04-22 09:50:31 +01:00
|
|
|
|
modelBuilder.Entity("Bifrost.Web.Domain.GitHubIssueLink", b =>
|
|
|
|
|
|
{
|
|
|
|
|
|
b.HasOne("Bifrost.Web.Domain.WorkItem", "WorkItem")
|
|
|
|
|
|
.WithOne("GitHubIssueLink")
|
|
|
|
|
|
.HasForeignKey("Bifrost.Web.Domain.GitHubIssueLink", "WorkItemId")
|
|
|
|
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
|
|
|
|
.IsRequired();
|
|
|
|
|
|
|
|
|
|
|
|
b.Navigation("WorkItem");
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("Bifrost.Web.Domain.GitHubPullRequestLink", b =>
|
|
|
|
|
|
{
|
|
|
|
|
|
b.HasOne("Bifrost.Web.Domain.WorkItem", "WorkItem")
|
|
|
|
|
|
.WithMany("GitHubPullRequestLinks")
|
|
|
|
|
|
.HasForeignKey("WorkItemId")
|
|
|
|
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
|
|
|
|
.IsRequired();
|
|
|
|
|
|
|
|
|
|
|
|
b.Navigation("WorkItem");
|
|
|
|
|
|
});
|
|
|
|
|
|
|
2026-06-17 05:21:29 +01:00
|
|
|
|
modelBuilder.Entity("Bifrost.Web.Domain.GovernanceActivityReceipt", b =>
|
|
|
|
|
|
{
|
|
|
|
|
|
b.HasOne("Bifrost.Web.Domain.UserAccount", "ActorUserAccount")
|
|
|
|
|
|
.WithMany("GovernanceActivityReceipts")
|
|
|
|
|
|
.HasForeignKey("ActorUserAccountId")
|
|
|
|
|
|
.OnDelete(DeleteBehavior.SetNull);
|
|
|
|
|
|
|
|
|
|
|
|
b.Navigation("ActorUserAccount");
|
|
|
|
|
|
});
|
|
|
|
|
|
|
2026-04-22 09:50:31 +01:00
|
|
|
|
modelBuilder.Entity("Bifrost.Web.Domain.LedgerEntry", b =>
|
|
|
|
|
|
{
|
|
|
|
|
|
b.HasOne("Bifrost.Web.Domain.UserAccount", "CreatedByUserAccount")
|
|
|
|
|
|
.WithMany()
|
|
|
|
|
|
.HasForeignKey("CreatedByUserAccountId")
|
|
|
|
|
|
.OnDelete(DeleteBehavior.Restrict)
|
|
|
|
|
|
.IsRequired();
|
|
|
|
|
|
|
|
|
|
|
|
b.HasOne("Bifrost.Web.Domain.Project", "Project")
|
|
|
|
|
|
.WithMany("LedgerEntries")
|
|
|
|
|
|
.HasForeignKey("ProjectId")
|
|
|
|
|
|
.OnDelete(DeleteBehavior.SetNull);
|
|
|
|
|
|
|
|
|
|
|
|
b.HasOne("Bifrost.Web.Domain.UserAccount", "UserAccount")
|
|
|
|
|
|
.WithMany("LedgerEntries")
|
|
|
|
|
|
.HasForeignKey("UserAccountId")
|
|
|
|
|
|
.OnDelete(DeleteBehavior.Restrict)
|
|
|
|
|
|
.IsRequired();
|
|
|
|
|
|
|
|
|
|
|
|
b.HasOne("Bifrost.Web.Domain.WorkItem", "WorkItem")
|
|
|
|
|
|
.WithMany("LedgerEntries")
|
|
|
|
|
|
.HasForeignKey("WorkItemId")
|
|
|
|
|
|
.OnDelete(DeleteBehavior.SetNull);
|
|
|
|
|
|
|
|
|
|
|
|
b.Navigation("CreatedByUserAccount");
|
|
|
|
|
|
|
|
|
|
|
|
b.Navigation("Project");
|
|
|
|
|
|
|
|
|
|
|
|
b.Navigation("UserAccount");
|
|
|
|
|
|
|
|
|
|
|
|
b.Navigation("WorkItem");
|
|
|
|
|
|
});
|
|
|
|
|
|
|
2026-11-11 10:15:46 +00:00
|
|
|
|
modelBuilder.Entity("Bifrost.Web.Domain.ConsentReceipt", b =>
|
|
|
|
|
|
{
|
|
|
|
|
|
b.HasOne("Bifrost.Web.Domain.UserAccount", "UserAccount")
|
|
|
|
|
|
.WithMany()
|
2026-11-14 00:37:56 +00:00
|
|
|
|
.HasForeignKey("UserAccountId")
|
|
|
|
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
|
|
|
|
.IsRequired();
|
|
|
|
|
|
|
|
|
|
|
|
b.Navigation("UserAccount");
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("Bifrost.Web.Domain.PasskeyCredential", b =>
|
|
|
|
|
|
{
|
|
|
|
|
|
b.HasOne("Bifrost.Web.Domain.UserAccount", "UserAccount")
|
|
|
|
|
|
.WithMany()
|
2026-11-11 10:15:46 +00:00
|
|
|
|
.HasForeignKey("UserAccountId")
|
|
|
|
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
|
|
|
|
.IsRequired();
|
|
|
|
|
|
|
|
|
|
|
|
b.Navigation("UserAccount");
|
|
|
|
|
|
});
|
|
|
|
|
|
|
2026-04-22 09:50:31 +01:00
|
|
|
|
modelBuilder.Entity("Bifrost.Web.Domain.MemberProfile", b =>
|
|
|
|
|
|
{
|
|
|
|
|
|
b.HasOne("Bifrost.Web.Domain.UserAccount", "UserAccount")
|
|
|
|
|
|
.WithOne("MemberProfile")
|
|
|
|
|
|
.HasForeignKey("Bifrost.Web.Domain.MemberProfile", "UserAccountId")
|
|
|
|
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
|
|
|
|
.IsRequired();
|
|
|
|
|
|
|
|
|
|
|
|
b.Navigation("UserAccount");
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("Bifrost.Web.Domain.Membership", b =>
|
|
|
|
|
|
{
|
|
|
|
|
|
b.HasOne("Bifrost.Web.Domain.UserAccount", "UserAccount")
|
|
|
|
|
|
.WithOne("Membership")
|
|
|
|
|
|
.HasForeignKey("Bifrost.Web.Domain.Membership", "UserAccountId")
|
|
|
|
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
|
|
|
|
.IsRequired();
|
|
|
|
|
|
|
|
|
|
|
|
b.Navigation("UserAccount");
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("Bifrost.Web.Domain.MembershipInvitation", b =>
|
|
|
|
|
|
{
|
|
|
|
|
|
b.HasOne("Bifrost.Web.Domain.UserAccount", "AcceptedByUserAccount")
|
|
|
|
|
|
.WithMany()
|
|
|
|
|
|
.HasForeignKey("AcceptedByUserAccountId")
|
|
|
|
|
|
.OnDelete(DeleteBehavior.SetNull);
|
|
|
|
|
|
|
|
|
|
|
|
b.HasOne("Bifrost.Web.Domain.UserAccount", "IssuedByUserAccount")
|
|
|
|
|
|
.WithMany()
|
|
|
|
|
|
.HasForeignKey("IssuedByUserAccountId")
|
|
|
|
|
|
.OnDelete(DeleteBehavior.SetNull);
|
|
|
|
|
|
|
|
|
|
|
|
b.Navigation("AcceptedByUserAccount");
|
|
|
|
|
|
|
|
|
|
|
|
b.Navigation("IssuedByUserAccount");
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("Bifrost.Web.Domain.Motion", b =>
|
|
|
|
|
|
{
|
|
|
|
|
|
b.HasOne("Bifrost.Web.Domain.UserAccount", "CreatedByUserAccount")
|
|
|
|
|
|
.WithMany("CreatedMotions")
|
|
|
|
|
|
.HasForeignKey("CreatedByUserAccountId")
|
|
|
|
|
|
.OnDelete(DeleteBehavior.Restrict)
|
|
|
|
|
|
.IsRequired();
|
|
|
|
|
|
|
|
|
|
|
|
b.HasOne("Bifrost.Web.Domain.Project", "Project")
|
|
|
|
|
|
.WithMany("Motions")
|
|
|
|
|
|
.HasForeignKey("ProjectId")
|
|
|
|
|
|
.OnDelete(DeleteBehavior.SetNull);
|
|
|
|
|
|
|
|
|
|
|
|
b.Navigation("CreatedByUserAccount");
|
|
|
|
|
|
|
|
|
|
|
|
b.Navigation("Project");
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("Bifrost.Web.Domain.PatronSupportEvent", b =>
|
|
|
|
|
|
{
|
2026-07-05 19:07:48 +01:00
|
|
|
|
b.HasOne("Bifrost.Web.Domain.Project", "Project")
|
|
|
|
|
|
.WithMany("PatronSupportEvents")
|
|
|
|
|
|
.HasForeignKey("ProjectId")
|
|
|
|
|
|
.OnDelete(DeleteBehavior.SetNull);
|
|
|
|
|
|
|
2026-04-22 09:50:31 +01:00
|
|
|
|
b.HasOne("Bifrost.Web.Domain.UserAccount", "UserAccount")
|
|
|
|
|
|
.WithMany("PatronSupportEvents")
|
|
|
|
|
|
.HasForeignKey("UserAccountId")
|
|
|
|
|
|
.OnDelete(DeleteBehavior.Restrict)
|
|
|
|
|
|
.IsRequired();
|
|
|
|
|
|
|
2026-07-05 19:07:48 +01:00
|
|
|
|
b.Navigation("Project");
|
|
|
|
|
|
|
2026-04-22 09:50:31 +01:00
|
|
|
|
b.Navigation("UserAccount");
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("Bifrost.Web.Domain.PayoutProposalBatch", b =>
|
|
|
|
|
|
{
|
|
|
|
|
|
b.HasOne("Bifrost.Web.Domain.UserAccount", "CreatedByUserAccount")
|
|
|
|
|
|
.WithMany()
|
|
|
|
|
|
.HasForeignKey("CreatedByUserAccountId")
|
|
|
|
|
|
.OnDelete(DeleteBehavior.Restrict)
|
|
|
|
|
|
.IsRequired();
|
|
|
|
|
|
|
|
|
|
|
|
b.Navigation("CreatedByUserAccount");
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("Bifrost.Web.Domain.PointTransaction", b =>
|
|
|
|
|
|
{
|
|
|
|
|
|
b.HasOne("Bifrost.Web.Domain.Project", "Project")
|
|
|
|
|
|
.WithMany("PointTransactions")
|
|
|
|
|
|
.HasForeignKey("ProjectId")
|
|
|
|
|
|
.OnDelete(DeleteBehavior.SetNull);
|
|
|
|
|
|
|
|
|
|
|
|
b.HasOne("Bifrost.Web.Domain.UserAccount", "UserAccount")
|
|
|
|
|
|
.WithMany("PointTransactions")
|
|
|
|
|
|
.HasForeignKey("UserAccountId")
|
|
|
|
|
|
.OnDelete(DeleteBehavior.Restrict)
|
|
|
|
|
|
.IsRequired();
|
|
|
|
|
|
|
|
|
|
|
|
b.HasOne("Bifrost.Web.Domain.WorkItem", "WorkItem")
|
|
|
|
|
|
.WithMany("PointTransactions")
|
|
|
|
|
|
.HasForeignKey("WorkItemId")
|
|
|
|
|
|
.OnDelete(DeleteBehavior.SetNull);
|
|
|
|
|
|
|
|
|
|
|
|
b.Navigation("Project");
|
|
|
|
|
|
|
|
|
|
|
|
b.Navigation("UserAccount");
|
|
|
|
|
|
|
|
|
|
|
|
b.Navigation("WorkItem");
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("Bifrost.Web.Domain.Project", b =>
|
|
|
|
|
|
{
|
|
|
|
|
|
b.HasOne("Bifrost.Web.Domain.UserAccount", "OwnerUserAccount")
|
|
|
|
|
|
.WithMany("OwnedProjects")
|
|
|
|
|
|
.HasForeignKey("OwnerUserAccountId")
|
|
|
|
|
|
.OnDelete(DeleteBehavior.Restrict)
|
|
|
|
|
|
.IsRequired();
|
|
|
|
|
|
|
|
|
|
|
|
b.Navigation("OwnerUserAccount");
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("Bifrost.Web.Domain.RevenueEvent", b =>
|
|
|
|
|
|
{
|
|
|
|
|
|
b.HasOne("Bifrost.Web.Domain.Project", "Project")
|
|
|
|
|
|
.WithMany("RevenueEvents")
|
|
|
|
|
|
.HasForeignKey("ProjectId")
|
|
|
|
|
|
.OnDelete(DeleteBehavior.SetNull);
|
|
|
|
|
|
|
|
|
|
|
|
b.Navigation("Project");
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("Bifrost.Web.Domain.RevenueShareBatch", b =>
|
|
|
|
|
|
{
|
|
|
|
|
|
b.HasOne("Bifrost.Web.Domain.UserAccount", "CreatedByUserAccount")
|
|
|
|
|
|
.WithMany()
|
|
|
|
|
|
.HasForeignKey("CreatedByUserAccountId")
|
|
|
|
|
|
.OnDelete(DeleteBehavior.Restrict)
|
|
|
|
|
|
.IsRequired();
|
|
|
|
|
|
|
|
|
|
|
|
b.HasOne("Bifrost.Web.Domain.RevenueEvent", "RevenueEvent")
|
|
|
|
|
|
.WithMany("RevenueShareBatches")
|
|
|
|
|
|
.HasForeignKey("RevenueEventId")
|
|
|
|
|
|
.OnDelete(DeleteBehavior.SetNull);
|
|
|
|
|
|
|
|
|
|
|
|
b.Navigation("CreatedByUserAccount");
|
|
|
|
|
|
|
|
|
|
|
|
b.Navigation("RevenueEvent");
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("Bifrost.Web.Domain.RevenueShareLine", b =>
|
|
|
|
|
|
{
|
|
|
|
|
|
b.HasOne("Bifrost.Web.Domain.Project", "Project")
|
|
|
|
|
|
.WithMany("RevenueShareLines")
|
|
|
|
|
|
.HasForeignKey("ProjectId")
|
|
|
|
|
|
.OnDelete(DeleteBehavior.SetNull);
|
|
|
|
|
|
|
|
|
|
|
|
b.HasOne("Bifrost.Web.Domain.RevenueShareBatch", "RevenueShareBatch")
|
|
|
|
|
|
.WithMany("Lines")
|
|
|
|
|
|
.HasForeignKey("RevenueShareBatchId")
|
|
|
|
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
|
|
|
|
.IsRequired();
|
|
|
|
|
|
|
|
|
|
|
|
b.HasOne("Bifrost.Web.Domain.UserAccount", "UserAccount")
|
|
|
|
|
|
.WithMany()
|
|
|
|
|
|
.HasForeignKey("UserAccountId")
|
|
|
|
|
|
.OnDelete(DeleteBehavior.SetNull);
|
|
|
|
|
|
|
|
|
|
|
|
b.Navigation("Project");
|
|
|
|
|
|
|
|
|
|
|
|
b.Navigation("RevenueShareBatch");
|
|
|
|
|
|
|
|
|
|
|
|
b.Navigation("UserAccount");
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("Bifrost.Web.Domain.RoleAssignment", b =>
|
|
|
|
|
|
{
|
|
|
|
|
|
b.HasOne("Bifrost.Web.Domain.UserAccount", "AssignedByUserAccount")
|
|
|
|
|
|
.WithMany()
|
|
|
|
|
|
.HasForeignKey("AssignedByUserAccountId")
|
|
|
|
|
|
.OnDelete(DeleteBehavior.SetNull);
|
|
|
|
|
|
|
|
|
|
|
|
b.HasOne("Bifrost.Web.Domain.Membership", "Membership")
|
|
|
|
|
|
.WithMany("RoleAssignments")
|
|
|
|
|
|
.HasForeignKey("MembershipId")
|
|
|
|
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
|
|
|
|
.IsRequired();
|
|
|
|
|
|
|
|
|
|
|
|
b.Navigation("AssignedByUserAccount");
|
|
|
|
|
|
|
|
|
|
|
|
b.Navigation("Membership");
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("Bifrost.Web.Domain.TierSnapshot", b =>
|
|
|
|
|
|
{
|
|
|
|
|
|
b.HasOne("Bifrost.Web.Domain.Membership", "Membership")
|
|
|
|
|
|
.WithMany("TierSnapshots")
|
|
|
|
|
|
.HasForeignKey("MembershipId")
|
|
|
|
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
|
|
|
|
.IsRequired();
|
|
|
|
|
|
|
|
|
|
|
|
b.Navigation("Membership");
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("Bifrost.Web.Domain.VolunteerClaim", b =>
|
|
|
|
|
|
{
|
|
|
|
|
|
b.HasOne("Bifrost.Web.Domain.UserAccount", "UserAccount")
|
|
|
|
|
|
.WithMany("VolunteerClaims")
|
|
|
|
|
|
.HasForeignKey("UserAccountId")
|
|
|
|
|
|
.OnDelete(DeleteBehavior.Restrict)
|
|
|
|
|
|
.IsRequired();
|
|
|
|
|
|
|
|
|
|
|
|
b.HasOne("Bifrost.Web.Domain.WorkItem", "WorkItem")
|
|
|
|
|
|
.WithMany("VolunteerClaims")
|
|
|
|
|
|
.HasForeignKey("WorkItemId")
|
|
|
|
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
|
|
|
|
.IsRequired();
|
|
|
|
|
|
|
|
|
|
|
|
b.Navigation("UserAccount");
|
|
|
|
|
|
|
|
|
|
|
|
b.Navigation("WorkItem");
|
|
|
|
|
|
});
|
|
|
|
|
|
|
2026-11-09 20:24:49 +00:00
|
|
|
|
modelBuilder.Entity("Bifrost.Web.Domain.SealedBallot", b =>
|
|
|
|
|
|
{
|
|
|
|
|
|
b.HasOne("Bifrost.Web.Domain.Motion", "Motion")
|
|
|
|
|
|
.WithMany("SealedBallots")
|
|
|
|
|
|
.HasForeignKey("MotionId")
|
|
|
|
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
|
|
|
|
.IsRequired();
|
|
|
|
|
|
|
|
|
|
|
|
b.HasOne("Bifrost.Web.Domain.UserAccount", "UserAccount")
|
|
|
|
|
|
.WithMany()
|
|
|
|
|
|
.HasForeignKey("UserAccountId")
|
|
|
|
|
|
.OnDelete(DeleteBehavior.Restrict)
|
|
|
|
|
|
.IsRequired();
|
|
|
|
|
|
|
|
|
|
|
|
b.Navigation("Motion");
|
|
|
|
|
|
|
|
|
|
|
|
b.Navigation("UserAccount");
|
|
|
|
|
|
});
|
|
|
|
|
|
|
2026-04-22 09:50:31 +01:00
|
|
|
|
modelBuilder.Entity("Bifrost.Web.Domain.Vote", b =>
|
|
|
|
|
|
{
|
|
|
|
|
|
b.HasOne("Bifrost.Web.Domain.Motion", "Motion")
|
|
|
|
|
|
.WithMany("Votes")
|
|
|
|
|
|
.HasForeignKey("MotionId")
|
|
|
|
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
|
|
|
|
.IsRequired();
|
|
|
|
|
|
|
|
|
|
|
|
b.HasOne("Bifrost.Web.Domain.UserAccount", "UserAccount")
|
|
|
|
|
|
.WithMany("Votes")
|
|
|
|
|
|
.HasForeignKey("UserAccountId")
|
|
|
|
|
|
.OnDelete(DeleteBehavior.Restrict)
|
|
|
|
|
|
.IsRequired();
|
|
|
|
|
|
|
|
|
|
|
|
b.Navigation("Motion");
|
|
|
|
|
|
|
|
|
|
|
|
b.Navigation("UserAccount");
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("Bifrost.Web.Domain.WorkItem", b =>
|
|
|
|
|
|
{
|
|
|
|
|
|
b.HasOne("Bifrost.Web.Domain.UserAccount", "AssignedToUserAccount")
|
|
|
|
|
|
.WithMany("AssignedWorkItems")
|
|
|
|
|
|
.HasForeignKey("AssignedToUserAccountId")
|
|
|
|
|
|
.OnDelete(DeleteBehavior.SetNull);
|
|
|
|
|
|
|
|
|
|
|
|
b.HasOne("Bifrost.Web.Domain.Project", "Project")
|
|
|
|
|
|
.WithMany("WorkItems")
|
|
|
|
|
|
.HasForeignKey("ProjectId")
|
|
|
|
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
|
|
|
|
.IsRequired();
|
|
|
|
|
|
|
|
|
|
|
|
b.HasOne("Bifrost.Web.Domain.UserAccount", "RequestedByUserAccount")
|
|
|
|
|
|
.WithMany("RequestedWorkItems")
|
|
|
|
|
|
.HasForeignKey("RequestedByUserAccountId")
|
|
|
|
|
|
.OnDelete(DeleteBehavior.Restrict)
|
|
|
|
|
|
.IsRequired();
|
|
|
|
|
|
|
|
|
|
|
|
b.Navigation("AssignedToUserAccount");
|
|
|
|
|
|
|
|
|
|
|
|
b.Navigation("Project");
|
|
|
|
|
|
|
|
|
|
|
|
b.Navigation("RequestedByUserAccount");
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("Bifrost.Web.Domain.WorkLog", b =>
|
|
|
|
|
|
{
|
|
|
|
|
|
b.HasOne("Bifrost.Web.Domain.UserAccount", "ReviewedByUserAccount")
|
|
|
|
|
|
.WithMany()
|
|
|
|
|
|
.HasForeignKey("ReviewedByUserAccountId")
|
|
|
|
|
|
.OnDelete(DeleteBehavior.SetNull);
|
|
|
|
|
|
|
|
|
|
|
|
b.HasOne("Bifrost.Web.Domain.UserAccount", "UserAccount")
|
|
|
|
|
|
.WithMany("WorkLogs")
|
|
|
|
|
|
.HasForeignKey("UserAccountId")
|
|
|
|
|
|
.OnDelete(DeleteBehavior.Restrict)
|
|
|
|
|
|
.IsRequired();
|
|
|
|
|
|
|
|
|
|
|
|
b.HasOne("Bifrost.Web.Domain.WorkItem", "WorkItem")
|
|
|
|
|
|
.WithMany("WorkLogs")
|
|
|
|
|
|
.HasForeignKey("WorkItemId")
|
|
|
|
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
|
|
|
|
.IsRequired();
|
|
|
|
|
|
|
|
|
|
|
|
b.Navigation("ReviewedByUserAccount");
|
|
|
|
|
|
|
|
|
|
|
|
b.Navigation("UserAccount");
|
|
|
|
|
|
|
|
|
|
|
|
b.Navigation("WorkItem");
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("Bifrost.Web.Domain.WorkReview", b =>
|
|
|
|
|
|
{
|
|
|
|
|
|
b.HasOne("Bifrost.Web.Domain.UserAccount", "ReviewerUserAccount")
|
|
|
|
|
|
.WithMany("WorkReviews")
|
|
|
|
|
|
.HasForeignKey("ReviewerUserAccountId")
|
|
|
|
|
|
.OnDelete(DeleteBehavior.SetNull);
|
|
|
|
|
|
|
|
|
|
|
|
b.HasOne("Bifrost.Web.Domain.WorkItem", "WorkItem")
|
|
|
|
|
|
.WithMany("WorkReviews")
|
|
|
|
|
|
.HasForeignKey("WorkItemId")
|
|
|
|
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
|
|
|
|
.IsRequired();
|
|
|
|
|
|
|
|
|
|
|
|
b.Navigation("ReviewerUserAccount");
|
|
|
|
|
|
|
|
|
|
|
|
b.Navigation("WorkItem");
|
|
|
|
|
|
});
|
|
|
|
|
|
|
2026-10-27 04:57:16 +01:00
|
|
|
|
modelBuilder.Entity("OpenIddict.EntityFrameworkCore.Models.OpenIddictEntityFrameworkCoreAuthorization", b =>
|
|
|
|
|
|
{
|
|
|
|
|
|
b.HasOne("OpenIddict.EntityFrameworkCore.Models.OpenIddictEntityFrameworkCoreApplication", "Application")
|
|
|
|
|
|
.WithMany("Authorizations")
|
|
|
|
|
|
.HasForeignKey("ApplicationId");
|
|
|
|
|
|
|
|
|
|
|
|
b.Navigation("Application");
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("OpenIddict.EntityFrameworkCore.Models.OpenIddictEntityFrameworkCoreToken", b =>
|
|
|
|
|
|
{
|
|
|
|
|
|
b.HasOne("OpenIddict.EntityFrameworkCore.Models.OpenIddictEntityFrameworkCoreApplication", "Application")
|
|
|
|
|
|
.WithMany("Tokens")
|
|
|
|
|
|
.HasForeignKey("ApplicationId");
|
|
|
|
|
|
|
|
|
|
|
|
b.HasOne("OpenIddict.EntityFrameworkCore.Models.OpenIddictEntityFrameworkCoreAuthorization", "Authorization")
|
|
|
|
|
|
.WithMany("Tokens")
|
|
|
|
|
|
.HasForeignKey("AuthorizationId");
|
|
|
|
|
|
|
|
|
|
|
|
b.Navigation("Application");
|
|
|
|
|
|
|
|
|
|
|
|
b.Navigation("Authorization");
|
|
|
|
|
|
});
|
|
|
|
|
|
|
Account merge ledger: AccountMerge receipt, reductions, alias standing, undo and final sweep
AccountMergeLedger owns what a merge does to Bifrost records: PlanAsync (dry run, block codes),
CommitAsync (one save, total, idempotent), UndoLocalAsync (journal replay), FinalizeDueAsync
(AccountMergeSweeper) and StandingAsync/ResolveAsync. Votes and concept appraisals are voided by a
stamp that a model query filter hides from every tally. The actor accessor no longer ORs several
credentials under SingleOrDefault (a latent crash); a frozen or folded account resolves to no
account on every route, the OIDC authorize and chat refusal deny it, and patron intake follows the
alias. Migration AddAccountMerges is additive. No UI, no Heimdall call, nothing deployed.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-14 02:31:51 +00:00
|
|
|
|
modelBuilder.Entity("Bifrost.Web.Domain.AccountMerge", b =>
|
|
|
|
|
|
{
|
|
|
|
|
|
b.Navigation("Entries");
|
|
|
|
|
|
});
|
|
|
|
|
|
|
2026-04-22 09:50:31 +01:00
|
|
|
|
modelBuilder.Entity("Bifrost.Web.Domain.Membership", b =>
|
|
|
|
|
|
{
|
|
|
|
|
|
b.Navigation("RoleAssignments");
|
|
|
|
|
|
|
|
|
|
|
|
b.Navigation("TierSnapshots");
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("Bifrost.Web.Domain.Motion", b =>
|
|
|
|
|
|
{
|
2026-11-09 20:24:49 +00:00
|
|
|
|
b.Navigation("SealedBallots");
|
|
|
|
|
|
|
2026-04-22 09:50:31 +01:00
|
|
|
|
b.Navigation("Votes");
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("Bifrost.Web.Domain.Project", b =>
|
|
|
|
|
|
{
|
|
|
|
|
|
b.Navigation("LedgerEntries");
|
|
|
|
|
|
|
|
|
|
|
|
b.Navigation("Motions");
|
|
|
|
|
|
|
2026-07-05 19:07:48 +01:00
|
|
|
|
b.Navigation("PatronSupportEvents");
|
|
|
|
|
|
|
2026-04-22 09:50:31 +01:00
|
|
|
|
b.Navigation("PointTransactions");
|
|
|
|
|
|
|
|
|
|
|
|
b.Navigation("RevenueEvents");
|
|
|
|
|
|
|
|
|
|
|
|
b.Navigation("RevenueShareLines");
|
|
|
|
|
|
|
|
|
|
|
|
b.Navigation("WorkItems");
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("Bifrost.Web.Domain.RevenueEvent", b =>
|
|
|
|
|
|
{
|
|
|
|
|
|
b.Navigation("RevenueShareBatches");
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("Bifrost.Web.Domain.RevenueShareBatch", b =>
|
|
|
|
|
|
{
|
|
|
|
|
|
b.Navigation("Lines");
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("Bifrost.Web.Domain.UserAccount", b =>
|
|
|
|
|
|
{
|
2026-06-17 04:03:14 +01:00
|
|
|
|
b.Navigation("AgentDispatchRuns");
|
|
|
|
|
|
|
2026-06-17 04:49:22 +01:00
|
|
|
|
b.Navigation("AgentTransportReceipts");
|
|
|
|
|
|
|
2026-04-22 09:50:31 +01:00
|
|
|
|
b.Navigation("AssignedWorkItems");
|
|
|
|
|
|
|
|
|
|
|
|
b.Navigation("Assignments");
|
|
|
|
|
|
|
|
|
|
|
|
b.Navigation("AuditEvents");
|
|
|
|
|
|
|
2026-06-17 04:03:14 +01:00
|
|
|
|
b.Navigation("BridgeActions");
|
|
|
|
|
|
|
2026-04-22 09:50:31 +01:00
|
|
|
|
b.Navigation("CreatedMotions");
|
|
|
|
|
|
|
2026-06-17 05:21:29 +01:00
|
|
|
|
b.Navigation("GovernanceActivityReceipts");
|
|
|
|
|
|
|
2026-04-22 09:50:31 +01:00
|
|
|
|
b.Navigation("LedgerEntries");
|
|
|
|
|
|
|
|
|
|
|
|
b.Navigation("MemberProfile");
|
|
|
|
|
|
|
|
|
|
|
|
b.Navigation("Membership");
|
|
|
|
|
|
|
|
|
|
|
|
b.Navigation("OwnedProjects");
|
|
|
|
|
|
|
|
|
|
|
|
b.Navigation("PatronSupportEvents");
|
|
|
|
|
|
|
|
|
|
|
|
b.Navigation("PointTransactions");
|
|
|
|
|
|
|
|
|
|
|
|
b.Navigation("RequestedWorkItems");
|
|
|
|
|
|
|
|
|
|
|
|
b.Navigation("VolunteerClaims");
|
|
|
|
|
|
|
|
|
|
|
|
b.Navigation("Votes");
|
|
|
|
|
|
|
|
|
|
|
|
b.Navigation("WorkLogs");
|
|
|
|
|
|
|
|
|
|
|
|
b.Navigation("WorkReviews");
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("Bifrost.Web.Domain.WorkItem", b =>
|
|
|
|
|
|
{
|
|
|
|
|
|
b.Navigation("Assignments");
|
|
|
|
|
|
|
|
|
|
|
|
b.Navigation("GitHubIssueLink");
|
|
|
|
|
|
|
|
|
|
|
|
b.Navigation("GitHubPullRequestLinks");
|
|
|
|
|
|
|
|
|
|
|
|
b.Navigation("LedgerEntries");
|
|
|
|
|
|
|
|
|
|
|
|
b.Navigation("PointTransactions");
|
|
|
|
|
|
|
|
|
|
|
|
b.Navigation("VolunteerClaims");
|
|
|
|
|
|
|
|
|
|
|
|
b.Navigation("WorkLogs");
|
|
|
|
|
|
|
|
|
|
|
|
b.Navigation("WorkReviews");
|
|
|
|
|
|
});
|
2026-10-27 04:57:16 +01:00
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("OpenIddict.EntityFrameworkCore.Models.OpenIddictEntityFrameworkCoreApplication", b =>
|
|
|
|
|
|
{
|
|
|
|
|
|
b.Navigation("Authorizations");
|
|
|
|
|
|
|
|
|
|
|
|
b.Navigation("Tokens");
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("OpenIddict.EntityFrameworkCore.Models.OpenIddictEntityFrameworkCoreAuthorization", b =>
|
|
|
|
|
|
{
|
|
|
|
|
|
b.Navigation("Tokens");
|
|
|
|
|
|
});
|
2026-04-22 09:50:31 +01:00
|
|
|
|
#pragma warning restore 612, 618
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|