const mongoose = require('mongoose')
mongoose.connect('mongodb://222.73.22.86:27017/commerce', err => console.log(err))

exports.users = mongoose.model('users', require('./user'))
exports.banners = mongoose.model('banners', require('./banner'))
exports.systems = mongoose.model('systems', require('./systems'))
exports.categorys = mongoose.model('categorys', require('./categorys'))
exports.hotLabels = mongoose.model('hotlabels', require('./hotLabels'))
exports.notices = mongoose.model('notices', require('./notices'))
exports.de_notices = mongoose.model('de_notices', require('./de_notices'))
exports.uploadHistorys = mongoose.model('uploadhistorys', require('./uploadHistory'))
exports.uploadTemporarys = mongoose.model('uploadTemporarys', require('./uploadTemporary'))
exports.levels = mongoose.model('levels', require('./levels'))
exports.specifications = mongoose.model('specifications', require('./specifications'))
exports.suppliers = mongoose.model('suppliers', require('./suppliers'))
exports.SEOS = mongoose.model('seos', require('./seo'))
exports.fee = mongoose.model('fees', require('./fee'))
exports.feeCountrys = mongoose.model('fee_cns', require('./feeCountrys'))
exports.feeExpress = mongoose.model('feeExpresses', require('./feeExpress'))
exports.feeExpressCountry = mongoose.model('feeExpressCountries', require('./feeExpressCountry'))
exports.countryFlags = mongoose.model('country_flags', require('./country_flags'))
exports.deltaPrice = mongoose.model('deltaPrices', require('./deltaPrice'))
exports.products = mongoose.model('products', require('./product'))

const mongoose = require('mongoose')
mongoose.connect('mongodb://127.0.0.1:27017/commerce', err => console.log(err))

exports.users = mongoose.model('users', require('./user'))
exports.banners = mongoose.model('banners', require('./banner'))
exports.systems = mongoose.model('systems', require('./systems'))
exports.categorys = mongoose.model('categorys', require('./categorys'))
exports.hotLabels = mongoose.model('hotlabels', require('./hotLabels'))
exports.notices = mongoose.model('notices', require('./notices'))
exports.de_notices = mongoose.model('de_notices', require('./de_notices'))
exports.uploadHistorys = mongoose.model('uploadhistorys', require('./uploadHistory'))
exports.uploadTemporarys = mongoose.model('uploadTemporarys', require('./uploadTemporary'))
exports.levels = mongoose.model('levels', require('./levels'))
exports.specifications = mongoose.model('specifications', require('./specifications'))
exports.suppliers = mongoose.model('suppliers', require('./suppliers'))
exports.SEOS = mongoose.model('seos', require('./seo'))
exports.fee = mongoose.model('fees', require('./fee'))
exports.feeCountrys = mongoose.model('fee_cns', require('./feeCountrys'))
exports.feeExpress = mongoose.model('feeExpresses', require('./feeExpress'))
exports.feeExpressCountry = mongoose.model('feeExpressCountries', require('./feeExpressCountry'))
exports.countryFlags = mongoose.model('country_flags', require('./country_flags'))
exports.deltaPrice = mongoose.model('deltaPrices', require('./deltaPrice'))
exports.products = mongoose.model('products', require('./product'))

change index