PeerTube/server/models/video-tag.js

19 lines
337 B
JavaScript
Raw Normal View History

2016-12-24 09:59:17 -06:00
'use strict'
// ---------------------------------------------------------------------------
module.exports = function (sequelize, DataTypes) {
2016-12-29 02:33:28 -06:00
const VideoTag = sequelize.define('VideoTag', {}, {
indexes: [
{
fields: [ 'videoId' ]
},
{
fields: [ 'tagId' ]
}
]
})
2016-12-24 09:59:17 -06:00
return VideoTag
}