fix(sorting): add the missing the resources columns.

This commit is contained in:
a.bouhuolia
2021-03-06 14:11:28 +02:00
parent 32e5695950
commit b03a27aefb
9 changed files with 84 additions and 7 deletions

View File

@@ -16,4 +16,29 @@ export default class ExchangeRate extends TenantModel {
get timestamps() {
return ['createdAt', 'updatedAt'];
}
/**
* Model defined fields.
*/
static get fields(){
return {
currency_code: {
label: 'Currency',
column: 'currency_code'
},
exchange_rate: {
label: 'Exchange rate',
column: 'exchange_rate',
},
date: {
label: 'Date',
column: 'date',
},
created_at: {
label: "Created at",
column: "created_at",
columnType: "date",
},
}
}
}