I am working on table, I want to create a single model for multiple tables with different DS attributes. how can i handle this.
ex:
table1 model is column
import { Model } from 'ember-pouch';
export default Model.extend({
abc: DS.attr('string'),
bcd: DS.attr('number'),
abcd: DS.attr('date')
})
The same model column for table2 but DS.attribute is not same as table1
ex:
import { Model } from 'ember-pouch';
export default Model.extend({
abc: DS.attr('number'),
bcd: DS.attr('date'),
abcd: DS.attr('boolean')
})
I am working on table, I want to create a single model for multiple tables with different DS attributes. how can i handle this. ex:
table1
model iscolumn
The same model
column
fortable2
but DS.attribute is not same astable1
ex: