how to get model in sequilize migration with feathers code example
Example 1: feathersjs mysql example
CREATE TABLE testConnect
( name VARCHAR(30) NOT NULL
, address VARCHAR(30) NOT NULL
, createdAt DATETIME NOT NULL ## required sequelize column
, updatedAt DATETIME NOT NULL ## required sequelize column
, id TINYINT(3) UNSIGNED NOT NULL AUTO_INCREMENT ## required sequelize column
, PRIMARY KEY (`id`)
);
Example 2: feathersjs mysql example
mysql://myDbUserName:myDbPassWord@123.123.123.123:3306/myDbTable
Example 3: feathersjs mysql example
sudo curl --silent --location https://rpm.nodesource.com/setup_8.x | sudo bash - ;
sudo yum install --assumeyes nodejs ;
node --version; npm --version ; ## Its best to make sure node and npm are properly installed