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