PeerTube/server/models/video-tag.js

19 lines
337 B
JavaScript
Raw Normal View History

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