feat: manage tokens
This commit is contained in:
parent
75f09ec5db
commit
8e5a318d4c
4 changed files with 115 additions and 3 deletions
15
src/models/caldavToken.js
Normal file
15
src/models/caldavToken.js
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
import AbstractModel from './abstractModel'
|
||||
|
||||
export default class CaldavTokenModel extends AbstractModel {
|
||||
constructor(data) {
|
||||
super(data)
|
||||
this.created = new Date(this.created)
|
||||
}
|
||||
|
||||
defaults() {
|
||||
return {
|
||||
id: 0,
|
||||
created: null,
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in a new issue