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

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

module.exports = NoTimestamp;