node -v npm -v
docker run --name final-api -e MYSQL_ROOT_PASSWORD=root123 -e MYSQL_DATABASE=final-project -p 3306:3306 -d mysql
mysql -u root -p
npm init -y
npm install express dotenv nodemon mysql2 sequelize sequelize-cli jsonwebtoken swagger-jsdoc swagger-ui-express bcrypt --save
npx sequelize-cli init
npx sequelize-cli model:generate --name User --attributes full_name:string,email:string,password:string
npx sequelize-cli model:generate --name Address --attributes user_id:integer,street:string,number:string,city:string,state:string,zip_code:string
npx sequelize-cli model:generate --name Category --attributes name:string
npx sequelize-cli model:generate --name Product --attributes name:string,description:text,price:decimal,stock:integer,category_id:integer
npx sequelize-cli model:generate --name Order --attributes user_id:integer,address_id:integer,status:string
npx sequelize-cli model:generate --name OrderItem --attributes order_id:integer,product_id:integer,quantity:integer
npx sequelize-cli db:migrate
npx sequelize-cli seed:generate --name demo-data
npx sequelize-cli db:seed:all