Solo salta el arbol..

This commit is contained in:
root
2019-11-30 06:20:07 +00:00
parent 1c78566f5b
commit 810c213b0f
440 changed files with 108008 additions and 35 deletions
Binary file not shown.
+11 -6
View File
@@ -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 -2
View File
@@ -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
View File
@@ -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
})