Skip to content

Standardize Sequelize Model Imports to Use db/models/index.ts #139

@markcrivera

Description

@markcrivera

Update all Sequelize model imports throughout the codebase to reference db/models/index.ts instead of importing individual model files directly (e.g., db/models/user.ts).

Importing from db/models/index.ts ensures all models are fully initialized and all associations are defined. Directly importing an individual model file may bypass the centralized association wiring, leading to missing methods.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions