16 lines
276 B
JavaScript
16 lines
276 B
JavaScript
|
'use strict'
|
||
|
|
||
|
class NoTimestamp {
|
||
|
register (Model) {
|
||
|
Object.defineProperties(Model, 'createdAtColumn', {
|
||
|
get () { return null }
|
||
|
})
|
||
|
|
||
|
Object.defineProperties(Model, 'updatedAtColumn', {
|
||
|
get () { return null }
|
||
|
})
|
||
|
}
|
||
|
}
|
||
|
|
||
|
module.exports = NoTimestamp
|