seepur/app/Models/Traits/NoTimestamp.js

17 lines
253 B
JavaScript
Raw Normal View History

2020-01-14 01:57:43 +00:00
'use strict'
class NoTimestamp {
register (Model) {
Object.defineProperties(Model, {
createdAtColumn: {
get: () => null,
},
updatedAtColumn: {
get: () => null,
},
})
}
}
module.exports = NoTimestamp