PeerTube/server/models/video-tag.ts

15 lines
243 B
TypeScript

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