--- description: Automatically sync new SQL files to docs/sql and update the index --- # SQL Files Management Rule **CRITICAL RULE**: Whenever you create or add a new SQL file (e.g. database migrations, init scripts) in this project (such as in `sql/mysql/` or anywhere else), you MUST: 1. **Copy/Create a duplicate** of that SQL file in the `docs/sql/` directory. 2. **Update the SQL Index**: Record the newly added SQL file in `docs/sql/README.md` (create the README file if it does not exist) with a brief description of what the SQL file does. Always remember this when you are generating new SQL scripts to maintain the project's documentation consistency.