Files
zhanghongyu_0626 3fb0ceb334 Enhance suitability assessment and documentation
- Implemented `check_suitability` method in `CoreReadOnlyRepository` for suitability determination based on customer and product risk levels.
- Added `build_suitability_log_row` function in `suitability.py` for mapping suitability check results to `risk_suitability_log`.
- Updated `AGENTS.md`, `ENVIRONMENT.md`, and `FLOW.md` to reflect changes in suitability assessment processes and documentation.
- Revised `FRAMEWORK.md` and `MEMORY.md` to clarify project structure and data flow related to suitability checks.
- Expanded `TODO.md` with tasks related to logging and auditing suitability assessments.
2026-09-07 11:15:30 +08:00

44 lines
1.1 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Core 模拟库 · 初始化
> 库名 `jinrong_core` · 与 `jinrong_agent` 同 MySQL 实例 · Agent **只读**
## 一键重置(Windows)
```powershell
.\scripts\core\reset.ps1
```
## 手动顺序
```powershell
mysql -u root -p < scripts/core/00-create-database.sql
mysql -u root -p < scripts/core/01-ddl.sql
mysql -u root -p < scripts/core/02-seed-base.sql
mysql -u root -p < scripts/core/03-seed-customers.sql
mysql -u root -p < scripts/core/04-seed-holdings.sql
mysql -u root -p < scripts/core/05-seed-trades.sql
mysql -u root -p < scripts/core/06-seed-nav.sql
# Agent 库(若未建)
mysql -u root -p < docs/项目框架设计/表设计/01-mysql-共用底座.sql
python scripts/sync/sync_advisor_rel.py
python scripts/sync/sync_neo4j.py
```
## 种子规模(当前)
| 类型 | 数量 |
| --- | --- |
| 客户 | 28 + 5 手册示范(CUST-DEMO-A~E) |
| 理财代理人 | 5 |
| 分析/风控/合规/运营 | 2+2+2+1 |
| 双角色 staff | 1(STAFF-10091 advisor+compliance) |
| 产品 | 14 |
| 持仓记录 | ~45 |
| 交易 | 25+ |
## RBAC 联调账号见
[rbac-seed-reference.md](../dev/rbac-seed-reference.md)