regionCode.js 373 B

123456789101112131415
  1. /**
  2. * Created by Administrator on 2018/8/4.
  3. */
  4. var mongoose = require("./mongodb");
  5. var Schema = mongoose.Schema;
  6. var regionCodeSchema = new Schema(
  7. {
  8. code:{type: String,default:''},//编码
  9. name:{type: String,default:''}//地区
  10. });
  11. var regionCode = mongoose.model('regionCode',
  12. regionCodeSchema,'regionCode');
  13. module.exports = regionCode;