old_contents: 'use strict'
  
  const Model = require('trails-model')
  
  /**
   * @module Region
   * @description Model describing a Region
   */
  module.exports = class Region extends Model {
  
    static config (app, Sequelize) {
  
    }
  
    static schema (app, Sequelize) {
  
    }
  
  }
  
new_contents: 'use strict'
  
  const Model = require('trails-model')
  
  /**
   * @module Region
   * @description Model describing a Region
   */
  module.exports = class Region extends Model {
  
    static config (app, Sequelize) {
      return {
        options: {
          classMethods: {
            associate: (models) => {
              models.Region.belongsToMany(models.Survey, {through: 'surveyregion'}),
              models.Region.belongsToMany(models.Office, {through: 'officeregion'}),
              models.Region.hasMany(models.Region, {
                onDelete: 'CASCADE',
                foreignKey: 'parentRegionId'
              })
            }
          }
        }
      }
    }
  
    static schema (app, Sequelize) {
      return {
        name: {
          type: Sequelize.STRING,
          allowNull: false
        }
      }
    }
  
  }
  
subject: add region associations. resolves #32