text: 
  // import the necessary modules
  var mongoose = require('mongoose');
  var resuable = require('./reusableobjects');
  
  var Schema = mongoose.Schema;
  
  // create an export function to encapsulate the model creation
  
    // define schema
  
  
  
    var AreaSchema = new Schema({
      code : {type : String, required:true, index: true},
      name : {type : String, required:true, index: true},
      locallangname : String,
      activefrom : Date,
      activeto : Date,
      cityuid : { type: Schema.ObjectId, ref: 'City' },
      city : String,
      stateuid : { type: Schema.ObjectId, ref: 'State' },
      state : String,
      countryuid : { type: Schema.ObjectId, ref: 'Country' },
      country : String,
      zipcodeuid : { type: Schema.ObjectId, ref: 'Zipcode' },
      zipcode : String,
      
    });  
  
  AreaSchema.plugin(resuable);
  module.exports = mongoose.model('Area', AreaSchema);
  
  