Commands: Add core missing command

This commit is contained in:
2023-06-05 17:56:48 +02:00
parent 5a47d0695f
commit 088079cc0e
3 changed files with 103 additions and 0 deletions

View File

@@ -13,6 +13,7 @@ module.exports = (sequelize, DataTypes) => {
Character.belongsTo(models.Group, { foreignKey: 'groupId', });
// A character can belong to many badges
Character.belongsToMany(models.Badge, { through: 'BadgeCharacter' });
Character.hasMany(models.Card, { foreignKey: 'characterId' });
}
}
Character.init({