WIP basic card dropping
This commit is contained in:
@@ -15,7 +15,6 @@ module.exports = (sequelize, DataTypes) => {
|
||||
}
|
||||
}
|
||||
Band.init({
|
||||
uniqueId: DataTypes.INTEGER,
|
||||
name: DataTypes.STRING,
|
||||
description: DataTypes.TEXT,
|
||||
imageURL: DataTypes.STRING,
|
||||
|
||||
@@ -10,7 +10,6 @@ module.exports = (sequelize, DataTypes) => {
|
||||
* The `models/index` file will call this method automatically.
|
||||
*/
|
||||
static associate(models) {
|
||||
Character.belongsToMany(models.Card, { through: 'CardCharacter' });
|
||||
Character.belongsTo(models.Band, { foreignKey: 'bandId', });
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user