framework/js/lib/models/Group.js

16 lines
370 B
JavaScript
Raw Normal View History

import Model from 'flarum/Model';
import mixin from 'flarum/utils/mixin';
class Group extends mixin(Model, {
nameSingular: Model.attribute('nameSingular'),
namePlural: Model.attribute('namePlural'),
color: Model.attribute('color'),
icon: Model.attribute('icon')
}) {}
2015-04-25 20:58:39 +08:00
2015-07-08 09:21:16 +08:00
Group.ADMINISTRATOR_ID = 1;
Group.GUEST_ID = 2;
Group.MEMBER_ID = 3;
2015-04-25 20:58:39 +08:00
export default Group;