'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) {

  }

}

@@ -200,49 +200,580 @@
 ) %7B%0A
-%0A  %7D%0A%0A  static schema (app, Sequelize) %7B%0A
+    return %7B%0A      options: %7B%0A        classMethods: %7B%0A          associate: (models) =%3E %7B%0A            models.Region.belongsToMany(models.Survey, %7Bthrough: 'surveyregion'%7D),%0A            models.Region.belongsToMany(models.Office, %7Bthrough: 'officeregion'%7D),%0A            models.Region.hasMany(models.Region, %7B%0A              onDelete: 'CASCADE',%0A              foreignKey: 'parentRegionId'%0A            %7D)%0A          %7D%0A        %7D%0A      %7D%0A    %7D%0A  %7D%0A%0A  static schema (app, Sequelize) %7B%0A    return %7B%0A      name: %7B%0A        type: Sequelize.STRING,%0A        allowNull: false%0A      %7D%0A    %7D
 %0A  %7D

add region associations. resolves #32