aboutsummaryrefslogtreecommitdiffstats
path: root/app/Models/Traits/NoTimestamp.js
blob: 914f542f067e57b96de04396567d7d9dfbef07d1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
class NoTimestamp {
  register(Model) {
    Object.defineProperties(Model, {
      createdAtColumn: {
        get: () => null,
      },
      updatedAtColumn: {
        get: () => null,
      },
    });
  }
}

module.exports = NoTimestamp;