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