Solo salta el arbol..
This commit is contained in:
Binary file not shown.
@@ -1,17 +1,19 @@
|
||||
const mongoose = require('mongoose'),
|
||||
animalModel = new mongoose.Schema({
|
||||
id: mongoose.Schema.Types.ObjectId,
|
||||
uuid: mongoose.Schema.Types.String,
|
||||
name: mongoose.Schema.Types.String,
|
||||
specie: {type: mongoose.Schema.Types.ObjectId, ref: 'species'},
|
||||
sex: mongoose.Schema.Types.String,
|
||||
photo: mongoose.Schema.Types.String,
|
||||
user: {type: mongoose.Schema.Types.ObjectId, ref: 'user'},
|
||||
inital_level: mongoose.Schema.Types.Number,
|
||||
initial_level: mongoose.Schema.Types.Number,
|
||||
level: mongoose.Schema.Types.Number,
|
||||
description: mongoose.Schema.Types.String,
|
||||
initial_health: mongoose.Schema.Types.Decimal128,
|
||||
initial_energy: mongoose.Schema.Types.Decimal128,
|
||||
initial_oxigen: mongoose.Schema.Types.Decimal128,
|
||||
initial_food: mongoose.Schema.Types.Decimal128,
|
||||
intital_damage: mongoose.Schema.Types.Decimal128,
|
||||
initial_damage: mongoose.Schema.Types.Decimal128,
|
||||
initial_velocity: mongoose.Schema.Types.Decimal128,
|
||||
health: mongoose.Schema.Types.Decimal128,
|
||||
energy: mongoose.Schema.Types.Decimal128,
|
||||
@@ -21,9 +23,12 @@ const mongoose = require('mongoose'),
|
||||
velocity: mongoose.Schema.Types.Decimal128,
|
||||
inconsistency: mongoose.Schema.Types.Decimal128,
|
||||
imprint: mongoose.Schema.Types.Decimal128,
|
||||
father: {type: mongoose.Schema.Types.ObjectId, ref: 'user'},
|
||||
mother: {type: mongoose.Schema.Types.ObjectId, ref: 'user'},
|
||||
mutation: mongoose.Schema.Types.Decimal128
|
||||
father: {type: mongoose.Schema.Types.ObjectId, ref: 'animal'},
|
||||
mother: {type: mongoose.Schema.Types.ObjectId, ref: 'animal'},
|
||||
mutations: mongoose.Schema.Types.Number,
|
||||
server: mongoose.Schema.Types.String,
|
||||
base: mongoose.Schema.Types.String,
|
||||
breeder: mongoose.Schema.Types.String
|
||||
})
|
||||
|
||||
module.exports = db => db.model('animal', animalModel)
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
const mongoose = require('mongoose'),
|
||||
speciesModel = new mongoose.Schema({
|
||||
id: mongoose.Schema.Types.ObjectId,
|
||||
name: mongoose.Schema.Types.String,
|
||||
descripotion: mongoose.Schema.Types.String
|
||||
description: mongoose.Schema.Types.String
|
||||
})
|
||||
|
||||
module.exports = db => db.model('species', speciesModel)
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
const mongoose = require('mongoose'),
|
||||
userModel = new mongoose.Schema({
|
||||
id: mongoose.Schema.Types.ObjectId,
|
||||
nick: mongoose.Schema.Types.String,
|
||||
password: mongoose.Schema.Types.String
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user