fix: align docs and code with actual DB schema and format spec
- Rewrite db.md as canonical schema: add categories, sessions tables; add alias to accounts, is_category_confirmed/comment to transactions, FK references to categories(id); mark budgets as post-MVP - Fix account masking to use fixed 6 asterisks (code + docs) - Remove budgets from MVP requirements in agent_backend.md - Add explicit 'not in MVP' note to analytics.md budgets section - Fix test_Statement.json: convert amounts to kopecks (integers), remove fingerprint fields (computed by backend) Made-with: Cursor
This commit is contained in:
@@ -175,7 +175,7 @@ accountNumber|operationAt|amountSigned|commission|normalizedDescription
|
||||
{
|
||||
"accountId": 1,
|
||||
"isNewAccount": true,
|
||||
"accountNumberMasked": "408178**********5611",
|
||||
"accountNumberMasked": "408178******5611",
|
||||
"imported": 28,
|
||||
"duplicatesSkipped": 3,
|
||||
"totalInFile": 31
|
||||
@@ -197,8 +197,8 @@ accountNumber|operationAt|amountSigned|commission|normalizedDescription
|
||||
|
||||
- Первые 6 символов остаются открытыми.
|
||||
- Последние 4 символа остаются открытыми.
|
||||
- Промежуточные символы заменяются на `*`.
|
||||
- Пример: `40817810825104025611` → `408178**********5611`.
|
||||
- Промежуточные символы заменяются фиксированным набором из 6 символов `******` (количество звёздочек не раскрывает длину номера).
|
||||
- Пример: `40817810825104025611` → `408178******5611`.
|
||||
|
||||
Маскирование применяется в ответе этого эндпоинта и в `GET /api/accounts`.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user