seepur/app/Models/Traits/NoTimestamp.js
2020-01-13 20:57:43 -05:00

16 lines
253 B
JavaScript

'use strict'
class NoTimestamp {
register (Model) {
Object.defineProperties(Model, {
createdAtColumn: {
get: () => null,
},
updatedAtColumn: {
get: () => null,
},
})
}
}
module.exports = NoTimestamp