mirror of
https://github.com/flarum/framework.git
synced 2025-01-06 02:23:36 +08:00
12 lines
241 B
JavaScript
12 lines
241 B
JavaScript
|
import DS from 'ember-data';
|
||
|
|
||
|
export default DS.Model.extend({
|
||
|
type: DS.attr('string'),
|
||
|
content: DS.attr('string'),
|
||
|
time: DS.attr('date'),
|
||
|
|
||
|
user: DS.belongsTo('user'),
|
||
|
sender: DS.belongsTo('user'),
|
||
|
post: DS.belongsTo('post')
|
||
|
});
|