1 import * as Sequelize from 'sequelize'
3 import { addMethodsToModel } from '../utils'
6 AccountFollowAttributes,
9 } from './account-follow-interface'
11 let AccountFollow: Sequelize.Model<AccountFollowInstance, AccountFollowAttributes>
13 export default function (sequelize: Sequelize.Sequelize, DataTypes: Sequelize.DataTypes) {
14 AccountFollow = sequelize.define<AccountFollowInstance, AccountFollowAttributes>('AccountFollow',
19 fields: [ 'accountId' ],
23 fields: [ 'targetAccountId' ],
30 const classMethods = [
33 addMethodsToModel(AccountFollow, classMethods)
38 // ------------------------------ STATICS ------------------------------
40 function associate (models) {
41 AccountFollow.belongsTo(models.Account, {
49 AccountFollow.belongsTo(models.Account, {
51 name: 'targetAccountId',