aboutsummaryrefslogtreecommitdiffstats
path: root/app/Models/Traits
diff options
context:
space:
mode:
authorLibravatar vantezzen <properly@protonmail.com>2019-08-22 11:12:36 +0200
committerLibravatar vantezzen <properly@protonmail.com>2019-08-22 11:12:36 +0200
commitb018adf240679ec59a7344e30be39400f1ecd8af (patch)
treec076635761667dad302716b498088f1047281e46 /app/Models/Traits
downloadferdium-server-b018adf240679ec59a7344e30be39400f1ecd8af.tar.gz
ferdium-server-b018adf240679ec59a7344e30be39400f1ecd8af.tar.zst
ferdium-server-b018adf240679ec59a7344e30be39400f1ecd8af.zip
Initial commit
Diffstat (limited to 'app/Models/Traits')
-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