docs: sync from backend 8fc2309 — M43/M44 missing FKs + H37 dispute enums

This commit is contained in:
Siavash Sameni
2026-06-07 07:16:02 +04:00
parent a2967ec594
commit 0bb60dbc98
24 changed files with 3428 additions and 906 deletions

View File

@@ -532,7 +532,7 @@ The `messages` column stores all dispute messages in a single JSONB array. Any f
---
### 37. disputes status/priority/category stored as plain text instead of pgEnum
### 37. disputes status/priority/category stored as plain text instead of pgEnum | **FIXED** `8fc2309` v2.9.30
> **Category:** Wrong Schema | **File:** `src/db/schema/dispute.ts:90-92`
@@ -1014,7 +1014,7 @@ When `input.legacyObjectId` is set, the code does a SELECT to check existence (l
---
### 43. purchase_requests.categoryId and selectedOfferId have no FK references declared — orphaned rows can be created
### 43. purchase_requests.categoryId and selectedOfferId have no FK references declared — orphaned rows can be created | **FIXED** `8fc2309` v2.9.30
> **Category:** Data Integrity | **File:** `src/db/schema/purchaseRequest.ts:143, 175`
@@ -1024,7 +1024,7 @@ When `input.legacyObjectId` is set, the code does a SELECT to check existence (l
---
### 44. purchase_request child table FK columns lack .references() declarations — cascade deletes not enforced by DDL
### 44. purchase_request child table FK columns lack .references() declarations — cascade deletes not enforced by DDL | **FIXED** `8fc2309` v2.9.30
> **Category:** Data Integrity | **File:** `src/db/schema/purchaseRequest.ts:260, 315, 338, 363`