aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models/video-tag.js
blob: cd9277a6e34a36f422f703e911e4279d8d98db30 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
'use strict'

// ---------------------------------------------------------------------------

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

  return VideoTag
}