mirror of
https://github.com/flarum/framework.git
synced 2024-12-13 07:03:35 +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')
|
|
});
|