You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
390 B
13 lines
390 B
module.exports = (sequelize, DataTypes) => { |
|
var Album = sequelize.define('Album', { |
|
name: DataTypes.STRING, |
|
storeLinks: DataTypes.JSON, |
|
}); |
|
|
|
Album.associate = function (models) { |
|
models.Album.belongsToMany(models.Song, { through: "SongAlbums" }) |
|
models.Album.belongsToMany(models.Artist, { through: "AlbumArtists" }) |
|
}; |
|
|
|
return Album; |
|
}; |