3 // ---------------------------------------------------------------------------
5 module.exports = function (sequelize, DataTypes) {
6 const Tag = sequelize.define('Tag',
9 type: DataTypes.STRING,
23 // ---------------------------------------------------------------------------
25 function associate (models) {
26 this.belongsToMany(models.Video, {
28 through: models.VideoTag,