2019-08-09 13:23:39 +02:00
|
|
|
'use strict';
|
|
|
|
|
|
|
|
/**
|
2019-08-22 14:10:45 +02:00
|
|
|
* Lifecycle callbacks for the `Restaurant` model.
|
2019-08-09 13:23:39 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
module.exports = {
|
2020-04-23 18:14:12 +02:00
|
|
|
beforeCreate(...args) {
|
2020-04-20 22:27:20 +02:00
|
|
|
console.log('beforeCreate', ...args);
|
|
|
|
},
|
2020-04-23 18:14:12 +02:00
|
|
|
afterCreate(...args) {
|
2020-04-20 22:27:20 +02:00
|
|
|
console.log('afterCreate', ...args);
|
|
|
|
},
|
2020-04-23 18:14:12 +02:00
|
|
|
beforeUpdate(...args) {
|
2020-04-20 22:27:20 +02:00
|
|
|
console.log('beforeUpdate', ...args);
|
|
|
|
},
|
2020-04-23 18:14:12 +02:00
|
|
|
afterUpdate(...args) {
|
2020-04-20 22:27:20 +02:00
|
|
|
console.log('afterUpdate', ...args);
|
|
|
|
},
|
2020-04-23 18:14:12 +02:00
|
|
|
beforeDelete(...args) {
|
|
|
|
console.log('beforeDelete', ...args);
|
2020-04-20 22:27:20 +02:00
|
|
|
},
|
2020-04-23 18:14:12 +02:00
|
|
|
afterDelete(...args) {
|
|
|
|
console.log('afterDelete', ...args);
|
|
|
|
},
|
|
|
|
beforeFind(...args) {
|
|
|
|
console.log('beforeFind', ...args);
|
|
|
|
},
|
|
|
|
afterFind(...args) {
|
|
|
|
console.log('afterFind', ...args);
|
|
|
|
},
|
|
|
|
beforeFindOne(...args) {
|
|
|
|
console.log('beforeFindOne', ...args);
|
|
|
|
},
|
|
|
|
afterFindOne(...args) {
|
|
|
|
console.log('afterFindOne', ...args);
|
|
|
|
},
|
|
|
|
beforeCount(...args) {
|
|
|
|
console.log('beforeCount', ...args);
|
|
|
|
},
|
|
|
|
afterCount(...args) {
|
|
|
|
console.log('afterCount', ...args);
|
|
|
|
},
|
|
|
|
beforeSearch(...args) {
|
|
|
|
console.log('beforeSearch', ...args);
|
|
|
|
},
|
|
|
|
afterSearch(...args) {
|
|
|
|
console.log('afterSearch', ...args);
|
|
|
|
},
|
|
|
|
beforeCountSearch(...args) {
|
|
|
|
console.log('beforeCountSearch', ...args);
|
|
|
|
},
|
|
|
|
afterCountSearch(...args) {
|
|
|
|
console.log('afterCountSearch', ...args);
|
2020-04-20 22:27:20 +02:00
|
|
|
},
|
2019-08-09 13:23:39 +02:00
|
|
|
};
|