2019-03-02 10:25:10 +00:00
|
|
|
import AbstractModel from './abstractModel'
|
|
|
|
|
|
|
|
export default class UserModel extends AbstractModel {
|
2020-02-08 13:16:06 +00:00
|
|
|
constructor(data) {
|
|
|
|
super(data)
|
|
|
|
this.created = new Date(this.created)
|
|
|
|
this.updated = new Date(this.updated)
|
|
|
|
}
|
|
|
|
|
2019-03-02 10:25:10 +00:00
|
|
|
defaults() {
|
|
|
|
return {
|
|
|
|
id: 0,
|
2019-06-06 10:52:05 +00:00
|
|
|
avatarUrl: '',
|
2019-03-02 10:25:10 +00:00
|
|
|
email: '',
|
|
|
|
username: '',
|
2020-02-08 13:16:06 +00:00
|
|
|
created: null,
|
|
|
|
updated: null,
|
2019-03-02 10:25:10 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|