Skip to content

Commit

Permalink
Update the models to use new base model
Browse files Browse the repository at this point in the history
  • Loading branch information
Cruikshanks committed Jan 5, 2023
1 parent 525cbf1 commit ccd8473
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 16 deletions.
4 changes: 2 additions & 2 deletions app/models/water/billing-batch.model.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@

const { Model } = require('objection')

const BaseModel = require('../base.model.js')
const WaterBaseModel = require('./water-base.model.js')

class BillingBatchModel extends BaseModel {
class BillingBatchModel extends WaterBaseModel {
static get tableName () {
return 'billingBatches'
}
Expand Down
4 changes: 2 additions & 2 deletions app/models/water/billing-charge-category.model.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@

const { Model } = require('objection')

const BaseModel = require('../base.model.js')
const WaterBaseModel = require('./water-base.model.js')

class BillingChargeCategoryModel extends BaseModel {
class BillingChargeCategoryModel extends WaterBaseModel {
static get tableName () {
return 'billingChargeCategories'
}
Expand Down
4 changes: 2 additions & 2 deletions app/models/water/charge-element.model.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@

const { Model } = require('objection')

const BaseModel = require('../base.model.js')
const WaterBaseModel = require('./water-base.model.js')

class ChargeElementModel extends BaseModel {
class ChargeElementModel extends WaterBaseModel {
static get tableName () {
return 'chargeElements'
}
Expand Down
4 changes: 2 additions & 2 deletions app/models/water/charge-purpose.model.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@

const { Model } = require('objection')

const BaseModel = require('../base.model.js')
const WaterBaseModel = require('./water-base.model.js')

class ChargePurposeModel extends BaseModel {
class ChargePurposeModel extends WaterBaseModel {
static get tableName () {
return 'chargePurposes'
}
Expand Down
4 changes: 2 additions & 2 deletions app/models/water/charge-version.model.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@

const { Model } = require('objection')

const BaseModel = require('../base.model.js')
const WaterBaseModel = require('./water-base.model.js')

class ChargeVersionModel extends BaseModel {
class ChargeVersionModel extends WaterBaseModel {
static get tableName () {
return 'chargeVersions'
}
Expand Down
4 changes: 2 additions & 2 deletions app/models/water/event.model.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
* @module EventModel
*/

const BaseModel = require('../base.model.js')
const WaterBaseModel = require('./water-base.model.js')

class EventModel extends BaseModel {
class EventModel extends WaterBaseModel {
static get tableName () {
return 'events'
}
Expand Down
4 changes: 2 additions & 2 deletions app/models/water/licence.model.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@

const { Model } = require('objection')

const BaseModel = require('../base.model.js')
const WaterBaseModel = require('./water-base.model.js')

class LicenceModel extends BaseModel {
class LicenceModel extends WaterBaseModel {
static get tableName () {
return 'licences'
}
Expand Down
4 changes: 2 additions & 2 deletions app/models/water/region.model.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@

const { Model } = require('objection')

const BaseModel = require('../base.model.js')
const WaterBaseModel = require('./water-base.model.js')

class RegionModel extends BaseModel {
class RegionModel extends WaterBaseModel {
static get tableName () {
return 'regions'
}
Expand Down

0 comments on commit ccd8473

Please sign in to comment.