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

@ -2,6 +2,16 @@ import AbstractModel from './abstractModel'
import UserModel from './user'
export default class LinkShareModel extends AbstractModel {
id: number
hash: string
right: Right
sharedBy: UserModel
sharingType: number // FIXME: use correct numbers
listId: number
name: string
password: string
created: Date
updated: Date
constructor(data) {
// The constructor of AbstractModel handles all the default parsing.