This repository has been archived on 2024-02-08. You can view files and clone it, but cannot push or open issues or pull requests.
2021-02-14 19:18:51 +00:00
|
|
|
import AbstractModel from '@/models/abstractModel'
|
|
|
|
import UserModel from '@/models/user'
|
|
|
|
|
|
|
|
export default class SubscriptionModel extends AbstractModel {
|
2022-01-30 15:47:23 +00:00
|
|
|
id = 0
|
|
|
|
entity = ''
|
|
|
|
entityId = 0
|
|
|
|
created = null
|
|
|
|
user = UserModel
|
|
|
|
|
2021-02-14 19:18:51 +00:00
|
|
|
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: {},
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|