add game support for games

This commit is contained in:
Nikola Petrov
2023-08-02 18:28:58 +02:00
parent f240d4e7c5
commit 9f21d37002
7 changed files with 196 additions and 19 deletions

11
models/gameModel.js Normal file
View File

@@ -0,0 +1,11 @@
var mongoose = require('mongoose');
var Schema = mongoose.Schema;
var gameSchema = new Schema({
'title': String,
'released': String,
'webImg': String,
'code': String
});
module.exports = mongoose.model('game', gameSchema);

View File

@@ -4,6 +4,8 @@ var Schema = mongoose.Schema;
var userSchema = new Schema({
'pass': String,
'key': String,
'client_id': String,
'client_secret': String,
});
module.exports = mongoose.model('user', userSchema);