aboutsummaryrefslogtreecommitdiffstats
path: root/app/Models/Traits/NoTimestamp.js
blob: edd07f0a95309b007aa8c202b62ba0b7917f0ea9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
'use strict'

class NoTimestamp {
  register (Model) {
    Object.defineProperties(Model, {
      createdAtColumn: {
        get: () => null,
      },
      updatedAtColumn: {
        get: () => null,
      }
    })
  }
}

module.exports = NoTimestamp