en_btr_frontend/app/models/book.js

8 lines
155 B
JavaScript

import Model, { attr, hasMany } from '@ember-data/model';
export default class BookModel extends Model {
@attr name;
@hasMany('chapter') chapters;
}