How mock data is generated
When you runant generate route users --mock '[{"id": 1, "name": "Alice"}]', the generated service returns the mock data directly:
Replacing mock data with real logic
Open the service file and replace the mock return with a repository call:get_all_users() in the repository:
Seeding initial data
To seed the database with initial records, add a seed function to a repository and call it frominit_db() in startup/Alchemy.py: