P1 entity foundation — lead-first / account-centric / transaction-grouped refactor

Featurekamo-shared-library
Shipped
July 5, 2026 at 8:48 PM UTC
Author
Kamo
Commit
ca99d39

NEW entities (additive; KI runs DDL): - TransactionGroupStatus enum + LoanTransactionStatusDeriver: derived group lifecycle (Created→…→Completed) rolled up from member LoanFileStatus (never stored authoritatively). - AccountGuid (accounts): long-lived cookie GUID↔Account (nullable) for the leads-first anonymous flow. - AccountBorrowerParty (accounts): shared loan-borrower identity (Member optional) + doc-vault key. - MemberDocument (mlos.docs): account/member-level reusable document vault. - LoanTransactionTimeline (+event enum), SharedTransactionTask (+status/severity enums): shared group feed + tasks. - repos for all of the above. Enum appends (id-stable / ordinal-safe): - LoanFileStatus.SOLD_BOARDED(9) — appended at END (ORDINAL storage); +isTerminal; fixed exhaustive switches. - **************** — imaging-member-vault bucket. - **************** — General Settings (serviceType=null) for the admin account-merge tool. FK columns (nullable, pinned columnDefinition, no default — unique_rowid/gen_random_uuid orphan trap): - LoanFile.loan_transaction_id, **************** Lead.account_guid_id, CommerceMarket.lead_market_id, **************** **************** Design: **************** No version bump.

All changes

Like what you see shipping?

Every one of these updates lands in your workspace automatically. Start free and watch it grow week after week.

Start Free ForeverView Pricing