]>
git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - server/models/tag.js
d6c2d3bb12ff2c75a7a489951d2d97411ecb0af5
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
,