21 lines
377 B
JavaScript
21 lines
377 B
JavaScript
|
import AbstractModel from '@/models/abstractModel'
|
||
|
import UserModel from '@/models/user'
|
||
|
|
||
|
export default class SubscriptionModel extends AbstractModel {
|
||
|
constructor(data) {
|
||
|
super(data)
|
||
|
this.user = new UserModel(this.user)
|
||
|
this.created = new Date(this.created)
|
||
|
}
|
||
|
|
||
|
defaults() {
|
||
|
return {
|
||
|
id: 0,
|
||
|
entity: '',
|
||
|
entityId: 0,
|
||
|
created: null,
|
||
|
user: {},
|
||
|
}
|
||
|
}
|
||
|
}
|