Nextjs + Sequelize build
Unanswered
German Hound posted this in #help-forum
German HoundOP
Hello all,
I am using Nextjs 14 + Sequelize 7 alpha with SQLite3 dialect. When I build, all models name has been changed. Additionally, model name that is used in queries of association method is different with changed model name. For instance, I have two models including User and Session, with One-to-Many relationship, One user can have many sessions. After build, two model name is 's' and 'l', however, when I using user.createSession(...), then query to create new session by use is
Thank.
I am using Nextjs 14 + Sequelize 7 alpha with SQLite3 dialect. When I build, all models name has been changed. Additionally, model name that is used in queries of association method is different with changed model name. For instance, I have two models including User and Session, with One-to-Many relationship, One user can have many sessions. After build, two model name is 's' and 'l', however, when I using user.createSession(...), then query to create new session by use is
'INSERT INTO 'os' (...) VALUES (...).Thank.