use schedule;
db.jobinfo.drop();
db.jobinfo.createIndex({"time": 1})
db.jobinfo.createIndex({"status": 1})
db.jobinfo.createIndex({"type": 1, "name": 1}, {unique: true});
db.jobinfo.save({"type": "instagramdump", "name": "twicetagram", "time": "030000", "jobCallUrl": "http://localhost:8080/launchJob?url=https://www.instagram.com/twicestagram/", "status": "on"});
db.jobinfo.save({"type": "instagramdump", "name": "chengxiao_0715", "time": "031000", "jobCallUrl": "http://localhost:8080/launchJob?url=https://www.instagram.com/chengxiao_0715/", "status": "on"});
db.jobinfo.save({"type": "instagramdump", "name": "e_lludda", "time": "032000", "jobCallUrl": "http://localhost:8080/launchJob?url=https://www.instagram.com/chengxiao_0715/e_ludda", "status": "on"});
db.jobinfo.save({"type": "instagramdump", "name": "wm_ohmygirl", "time": "033000", "jobCallUrl": "http://localhost:8080/launchJob?url=https://www.instagram.com/wm_ohmygirl/", "status": "on"});
db.jobinfo.save({"type": "instagramdump", "name": "redvelvet.smtown", "time": "034000", "jobCallUrl": "http://localhost:8080/launchJob?url=https://www.instagram.com/chengxiao_0715/redvelvet.smtown", "status": "on"});
db.jobinfo.save({"type": "instagramdump", "name": "jypetwice_japan", "time": "035000", "jobCallUrl": "http://localhost:8080/launchJob?url=https://www.instagram.com/jypetwice_japan/", "status": "on"});
db.jobinfo.save({"type": "instagramdump", "name": "official_izone", "time": "040000", "jobCallUrl": "http://localhost:8080/launchJob?url=https://www.instagram.com/official_izone", "status": "on"});
//db.jobinfo.update({type: "test", name: "testJob"}, {$set: {time: "002700", jobCallUrl: "http://localhost:8080/launchJob?url=https://www.instagram.com/wm_ohmygirl/"}})
db.jobinfo.save({"type": "test", "name": "testJob", "time": "003000", "jobCallUrl": "http://localhost:8080/launchJob?url=https://www.instagram.com/wm_ohmygirl/", "status": "on"});