import DS from 'ember-data';

export default DS.Model.extend({
    questionTitle: DS.attr(),
    authorQuestion: DS.attr(),
    contentQuestion: DS.attr(),
});

import DS from 'ember-data';

export default DS.Model.extend({
    questionTitle: DS.attr(),
    authorQuestion: DS.attr(),
    contentQuestion: DS.attr(),
    answers: DS.hasMany('answer', {async: true})
});

Create one-to-many relationship Create one-to-many relationship between Question Model and Answer Model
Create one-to-many relationship
Create one-to-many relationship between Question Model and Answer Model
