1 import * as Sequelize from 'sequelize'
3 import { addMethodsToModel } from '../utils'
4 import { VideoShareAttributes, VideoShareInstance } from './video-share-interface'
6 let VideoShare: Sequelize.Model<VideoShareInstance, VideoShareAttributes>
8 export default function (sequelize: Sequelize.Sequelize, DataTypes: Sequelize.DataTypes) {
9 VideoShare = sequelize.define<VideoShareInstance, VideoShareAttributes>('VideoShare',
14 fields: [ 'accountId' ]
23 const classMethods = [
26 addMethodsToModel(VideoShare, classMethods)
31 // ------------------------------ METHODS ------------------------------
33 function associate (models) {
34 VideoShare.belongsTo(models.Account, {
42 VideoShare.belongsTo(models.Video, {