- Gruppi
This commit is contained in:
10
src/server/populate/levels.js
Normal file
10
src/server/populate/levels.js
Normal file
@@ -0,0 +1,10 @@
|
||||
module.exports = {
|
||||
list: [
|
||||
{_id: 0, descr: '[Nessuno]', years_of_exp: 0},
|
||||
{_id: 1, descr: 'Principiante', years_of_exp: 1},
|
||||
{_id: 2, descr: 'Intermedio', years_of_exp: 3},
|
||||
{_id: 3, descr: 'Avanzato', years_of_exp: 5},
|
||||
{_id: 4, descr: 'Esperto', years_of_exp: 10},
|
||||
{_id: 5, descr: 'Veterano', years_of_exp: 20},
|
||||
],
|
||||
};
|
||||
@@ -25,7 +25,7 @@ module.exports = {
|
||||
},
|
||||
|
||||
popolaTabelleNuove() {
|
||||
const abilita = true;
|
||||
const abilita = false;
|
||||
const scrivi_citta = false;
|
||||
|
||||
let ris = null;
|
||||
@@ -42,6 +42,14 @@ module.exports = {
|
||||
const { SubSkill } = require('../models/subskill');
|
||||
this.insertIntoDb('subskills', SubSkill)
|
||||
|
||||
// Levels
|
||||
const { Level } = require('../models/level');
|
||||
this.insertIntoDb('levels', Level)
|
||||
|
||||
// Status
|
||||
const { StatusSkill } = require('../models/statusSkill');
|
||||
this.insertIntoDb('statusskills', StatusSkill)
|
||||
|
||||
if (scrivi_citta) {
|
||||
// Cities
|
||||
const {City} = require('../models/city');
|
||||
|
||||
6
src/server/populate/statusskills.js
Normal file
6
src/server/populate/statusskills.js
Normal file
@@ -0,0 +1,6 @@
|
||||
module.exports = {
|
||||
list: [
|
||||
{_id: 1, descr: 'Di Persona'},
|
||||
{_id: 2, descr: 'On Line'},
|
||||
],
|
||||
};
|
||||
Reference in New Issue
Block a user