Fixes#1050
The calendar_token.js model file was creating a circular dependency by
importing sequelize from ./models instead of receiving it as a parameter.
This caused InboxItem and other models to be undefined when accessed by
the MCP inbox tools, resulting in crashes.
Changes:
- Refactored calendar_token.js to follow the standard model pattern
(export function that receives sequelize parameter)
- Added CalendarToken import in models/index.js
- Set up User<->CalendarToken associations
- Exported CalendarToken from models/index.js
This eliminates the circular dependency and ensures all models are
properly initialized before use.