db timestamps
This commit is contained in:
1 parent
e23c0d2e31
commit
6ee9c6f6eb
2 files changed
+4
-12
No files matched your search
@@ -36,22 +36,22 @@ var Track = mongoose.model('Track', new mongoose.Schema({
|
||||
source: String,
|
||||
explicit: Boolean,
|
||||
banned: Boolean
|
||||
}, { collection: 'tracks' })),
|
||||
}, { collection: 'tracks', timestamps: { createdAt: 'createdAt', updatedAt: 'updatedAt' } })),
|
||||
|
||||
Vote = mongoose.model('Vote', new mongoose.Schema({
|
||||
uid: String,
|
||||
tid: String,
|
||||
flag: String,
|
||||
comment: String
|
||||
}, { collection: 'votes', timestamps: { createdAt: 'createdAt' } })),
|
||||
}, { collection: 'votes', timestamps: { createdAt: 'createdAt', updatedAt: false } })),
|
||||
|
||||
User = mongoose.model('User', new mongoose.Schema({
|
||||
id: String,
|
||||
name: String,
|
||||
mail: String,
|
||||
token: String,
|
||||
admin: Number
|
||||
}, { collection: 'users' })),
|
||||
admin: Number,
|
||||
}, { collection: 'users', timestamps: { createdAt: 'createdAt', updatedAt: 'updatedAt' } })),
|
||||
|
||||
Previous = mongoose.model('Previous', new mongoose.Schema({
|
||||
tid: String
|
||||
|
||||
@@ -1,8 +0,0 @@
|
||||
{
|
||||
"clientId": "95d8d4e954bd4a52a312786c591b2158",
|
||||
"clientSecret": "6bf7c8c7bf2c4a6ca4ea2b64d92100a4",
|
||||
"lastToken": {
|
||||
"value": "BQAZYEprAYKsyjdDYUyu-VynBsAlFBKyQXNH0wGdxvaF9We04JJrQwasKk-KYzQQeAVmYAi4aBRnIdVFEQs",
|
||||
"expires": 1599136198615
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user