Im using sequelize /w node and node-mysql.
I create models using the sequelize-cli, and this is the result:
'use strict';
module.exports = function(sequelize, DataTypes) {
let songs = sequelize.define('songs', {
name: DataTypes.STRING,
link: DataTypes.STRING,
artist: DataTypes.STRING,
lyrics: DataTypes.TEXT,
writer: DataTypes.STRING,
composer: DataTypes.STRING
});
return songs;
};
I want to be able to define collation and charset to each property of the model. the default collation is 'latin1_swedish_ci', and i need it in 'utf-8'.
Anyone? Tnx