Skip to content
Snippets Groups Projects
Commit 11672e1e authored by Martin Lehoux's avatar Martin Lehoux
Browse files

add first models

parent e47380d6
Branches
Tags
2 merge requests!2Release 0.2: Notifications & Errors,!1Release 0.1: Authentication & Session
node_modules
yarn.lock
\ No newline at end of file
const mongoose = require('mongoose');
const Character = new mongoose.Schema({
name: String,
level: Number,
});
module.exports = mongoose.model('Character', Character);
\ No newline at end of file
const mongoose = require('mongoose');
const Weapon = new mongoose.Schema({
name: String,
required_level: Number
});
module.exports = mongoose.model('Weapon', Weapon);
\ No newline at end of file
{
"dependencies": {
"eslint": "^5.13.0",
"mongoose": "^5.4.11"
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment