Closed faraakhatTW closed 5 months ago
We have installed sequelize in our project and created database iw-complaint-manager
The issue was when we wrote sequelize_config file with .ts extension and compiled to .js, node could not read it with this error:
So we deleted compiled .js file and changed out .ts to .js. Database connection logs a success message now.
Finished defining a User model but can't run .ts file with following errors:
User Story
As a developer I want to integrate Sequelize into our project So that I can simplify database interactions and enhance data management capabilities
Definition of Done
sequelize
library is installed following the instructions specifically for TypescriptAcceptance Criteria
Given sequelize is installed When I create a dummy model (i.e. User) AND trigger the creation of that table using sequelize Then I see that table in dbeaver (localhost)
Note: Do not persist any dummy code/data