aboutsummaryrefslogtreecommitdiffstats
path: root/app/Models/Traits/NoTimestamp.js
diff options
context:
space:
mode:
Diffstat (limited to 'app/Models/Traits/NoTimestamp.js')
-rw-r--r--app/Models/Traits/NoTimestamp.js16
1 files changed, 16 insertions, 0 deletions
diff --git a/app/Models/Traits/NoTimestamp.js b/app/Models/Traits/NoTimestamp.js
new file mode 100644
index 0000000..edd07f0
--- /dev/null
+++ b/app/Models/Traits/NoTimestamp.js
@@ -0,0 +1,16 @@
1'use strict'
2
3class NoTimestamp {
4 register (Model) {
5 Object.defineProperties(Model, {
6 createdAtColumn: {
7 get: () => null,
8 },
9 updatedAtColumn: {
10 get: () => null,
11 }
12 })
13 }
14}
15
16module.exports = NoTimestamp