Update stuff
This commit is contained in:
parent
0254e42b9c
commit
553ba9db9a
40 changed files with 7343 additions and 717 deletions
|
@ -12,12 +12,11 @@ export default function (sequelize, DataTypes) {
|
|||
fields: ['userId'],
|
||||
},
|
||||
],
|
||||
classMethods: {
|
||||
associate: (models) => {
|
||||
Transaction.belongsTo(models.user);
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
Transaction.associate = function associate(models) {
|
||||
Transaction.belongsTo(models.user);
|
||||
};
|
||||
|
||||
return Transaction;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue