- Pagina MySkills personale

This commit is contained in:
paoloar77
2022-01-26 01:31:22 +01:00
parent 6b8e4af737
commit 842a041fe5
9 changed files with 473 additions and 21 deletions

View File

@@ -0,0 +1,96 @@
const {ObjectID} = require('mongodb');
module.exports = {
list: [
{
"_id" : ObjectID("615a353c002c8298f4495be7"),
"idapp" : "1",
"__v" : 0,
"label" : "Dono"
},
{
"_id" : ObjectID("61bc466567de9a1f54b25494"),
"idapp" : "1",
"__v" : 0,
"label" : "Offerta Libera"
},
{
"_id" : ObjectID("61bc454867de9a1f54b25462"),
"idapp" : "1",
"__v" : 0,
"label" : "Baratto"
},
{
"_id" : ObjectID("61bc482667de9a1f54b2549b"),
"idapp" : "1",
"__v" : 0,
"label" : "Euro"
},
{
"_id" : ObjectID("61bc482667de9a1f54b2549b"),
"idapp" : "1",
"__v" : 0,
"label" : "Scambio di Beni"
},
{
"_id" : ObjectID("61bc482667de9a1f54b2549c"),
"idapp" : "1",
"__v" : 0,
"label" : "Scambio di Lavoro"
},
{
"_id" : ObjectID("61cae7da4c7b5931a5f367c9"),
"idapp" : "1",
"__v" : 0,
"label" : "Sardex"
},
{
"_id" : ObjectID("615a353c002c8298f4495bf7"),
"idapp" : "12",
"__v" : 0,
"label" : "Dono"
},
{
"_id" : ObjectID("61bc466567de9a1f54b254f4"),
"idapp" : "12",
"__v" : 0,
"label" : "Offerta Libera"
},
{
"_id" : ObjectID("61bc454867de9a1f54b254f2"),
"idapp" : "12",
"__v" : 0,
"label" : "Baratto"
},
{
"_id" : ObjectID("61bc482667de9a1f54b254fb"),
"idapp" : "12",
"__v" : 0,
"label" : "Euro"
},
{
"_id" : ObjectID("61bc482667de9a1f54b25411"),
"idapp" : "12",
"__v" : 0,
"label" : "Scambio di Beni"
},
{
"_id" : ObjectID("61bc482667de9a1f54b25412"),
"idapp" : "12",
"__v" : 0,
"label" : "Scambio di Lavoro"
},
{
"_id" : ObjectID("61cae7da4c7b5931a5f36712"),
"idapp" : "12",
"__v" : 0,
"label" : "Sardex"
},
]
}

View File

@@ -25,28 +25,34 @@ module.exports = {
},
popolaTabelleNuove() {
const abilita = false;
let ris = null;
// Sectors
const { Sector } = require('../models/sector');
this.insertIntoDb('sectors', Sector)
if (abilita) {
// Sectors
const { Sector } = require('../models/sector');
this.insertIntoDb('sectors', Sector)
// Skills (Competenze)
const { Skill } = require('../models/skill');
this.insertIntoDb('skills', Skill)
// Skills (Competenze)
const { Skill } = require('../models/skill');
this.insertIntoDb('skills', Skill)
// SubSectors
const { SubSkill } = require('../models/subskill');
this.insertIntoDb('subskills', SubSkill)
// SubSectors
const { SubSkill } = require('../models/subskill');
this.insertIntoDb('subskills', SubSkill)
// Cities
const { City } = require('../models/city');
ris = this.insertIntoDb('cities', City)
// Cities
const {City} = require('../models/city');
this.insertIntoDb('cities', City)
// Province
const { Province } = require('../models/province');
ris = this.insertIntoDb('provinces', Province)
// Province
const { Province } = require('../models/province');
this.insertIntoDb('provinces', Province)
// Contribtypes
const { Contribtype } = require('../models/contribtype');
this.insertIntoDb('contribtypes', Contribtype)
}
},