1
0

feat(api tokens): add basic api token overview

This commit is contained in:
kolaente
2023-09-01 11:15:48 +02:00
parent 7b57b10804
commit a20eef2453
7 changed files with 148 additions and 0 deletions

View File

@ -0,0 +1,20 @@
import AbstractModel from '@/models/abstractModel'
import type {IApiToken} from '@/modelTypes/IApiToken'
export default class ApiTokenModel extends AbstractModel<IApiToken> {
id = 0
token = ''
permissions = null
expiresAt: Date = null
created: Date = null
constructor(data: Partial<IApiToken>) {
super()
this.assignData(data)
this.expiresAt = new Date(this.expiresAt)
this.created = new Date(this.created)
this.updated = new Date(this.updated)
}
}