adonis-fullstack-app/app/Models/Traits/NoTimestamp.js

17 lines
253 B
JavaScript
Raw Normal View History

'use strict'
class NoTimestamp {
register (Model) {
2019-01-21 09:04:24 +00:00
Object.defineProperties(Model, {
createdAtColumn: {
get: () => null,
},
updatedAtColumn: {
get: () => null,
},
})
}
}
module.exports = NoTimestamp