📅  最后修改于: 2022-03-11 14:57:40.260000             🧑  作者: Mango
if (_.isArray(_.get(definition, 'options.timestamps'))) {
definition.attributes[_.get(definition, 'options.timestamps[0]')] = {
type: 'timestamp',
};
definition.attributes[_.get(definition, 'options.timestamps[1]')] = {
type: 'timestampUpdate',
};
}
// Save all attributes (with timestamps)
target[model].allAttributes = _.clone(definition.attributes);