diff options
author | vantezzen <properly@protonmail.com> | 2019-08-22 11:12:36 +0200 |
---|---|---|
committer | vantezzen <properly@protonmail.com> | 2019-08-22 11:12:36 +0200 |
commit | b018adf240679ec59a7344e30be39400f1ecd8af (patch) | |
tree | c076635761667dad302716b498088f1047281e46 /app/Models/Traits | |
download | ferdium-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.js | 16 |
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 | |||
3 | class NoTimestamp { | ||
4 | register (Model) { | ||
5 | Object.defineProperties(Model, { | ||
6 | createdAtColumn: { | ||
7 | get: () => null, | ||
8 | }, | ||
9 | updatedAtColumn: { | ||
10 | get: () => null, | ||
11 | } | ||
12 | }) | ||
13 | } | ||
14 | } | ||
15 | |||
16 | module.exports = NoTimestamp | ||