adonis-fullstack-app/app/Models/Traits/NoTimestamp.js
2019-01-21 10:04:24 +01:00

17 lines
253 B
JavaScript

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