diff --git a/cortex-js/src/infrastructure/database/sqlite-database.providers.ts b/cortex-js/src/infrastructure/database/sqlite-database.providers.ts index db33dc333..a37eea421 100644 --- a/cortex-js/src/infrastructure/database/sqlite-database.providers.ts +++ b/cortex-js/src/infrastructure/database/sqlite-database.providers.ts @@ -19,6 +19,9 @@ export const sqliteDatabaseProviders = [ logging: false, }); sequelize.addModels([ThreadEntity, MessageEntity, AssistantEntity]); + await ThreadEntity.sync(); + await MessageEntity.sync(); + await AssistantEntity.sync(); return sequelize; }, },