PeerTube/server/models/video-tag.js

19 lines
337 B
JavaScript

'use strict'
// ---------------------------------------------------------------------------
module.exports = function (sequelize, DataTypes) {
const VideoTag = sequelize.define('VideoTag', {}, {
indexes: [
{
fields: [ 'videoId' ]
},
{
fields: [ 'tagId' ]
}
]
})
return VideoTag
}