From a0e7b294769945525ef39dd8003a1a093291bfe5 Mon Sep 17 00:00:00 2001 From: Antonio Vivace Date: Tue, 16 Jan 2018 19:59:24 +0100 Subject: [PATCH] Add files property to gameSchema: related resources --- CONTRIBUTING.md | 2 +- schema.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index bf6de503..e5ca214a 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -73,7 +73,7 @@ The following fields are appreciated, but not strictly required: | devWebsite | Developer personal website/page | String | | onlineplay | Allow or not the game to be played directly on the website | Boolean | | wip | Flag a game as work-in-progress (not yet completely stable/bugfree) | Boolean | - +| files | Related files with (optional) description | Array of 2-d Arrays (`[['file1.zip', 'description of file1.zip'],['file2.zip', 'description of file2.zip']]`)| The possible categories are: `RPG`, `Open Source`, `Adventure`, `Action`, `Puzzle`, `Platform`. diff --git a/schema.js b/schema.js index e0be8ec1..ed28fffe 100644 --- a/schema.js +++ b/schema.js @@ -21,7 +21,8 @@ var gameSchema = mongoose.Schema({ gameWebsite : String, devWebsite : String, onlineplay : Boolean, - wip : Boolean + wip : Boolean, + files : [Array] } }); \ No newline at end of file