1
0

feat: add properties to models

This commit is contained in:
Dominik Pschenitschni
2022-06-23 03:22:21 +02:00
parent 74ad6e65e8
commit 797de0c543
33 changed files with 367 additions and 186 deletions

View File

@ -1,6 +1,12 @@
import AbstractModel from './abstractModel'
export default class FileModel extends AbstractModel {
id: number
mime: string
name: string
size: number
created: Date
constructor(data) {
super(data)
this.created = new Date(this.created)