mirror of
https://github.com/flarum/framework.git
synced 2024-12-13 15:13:42 +08:00
a62e04f956
Note: npm source for ember-json-api changed to a fork, but I still had to apply a custom change to get polymorphic relationships to work (see https://github.com/kurko/ember-json-api/pull/71#issuecomment-85257281)
12 lines
240 B
JavaScript
12 lines
240 B
JavaScript
import DS from 'ember-data';
|
|
|
|
export default DS.Model.extend({
|
|
contentType: DS.attr('string'),
|
|
content: DS.attr(),
|
|
time: DS.attr('date'),
|
|
|
|
user: DS.belongsTo('user'),
|
|
sender: DS.belongsTo('user'),
|
|
post: DS.belongsTo('post')
|
|
});
|