feat: add properties to models

This commit is contained in:
Dominik Pschenitschni 2022-06-23 03:22:21 +02:00
parent 74ad6e65e8
commit 797de0c543
No known key found for this signature in database
GPG key ID: B257AC0149F43A77
33 changed files with 367 additions and 186 deletions

View file

@ -4,6 +4,17 @@ import {colorIsDark} from '@/helpers/color/colorIsDark'
const DEFAULT_LABEL_BACKGROUND_COLOR = 'e8e8e8'
export default class LabelModel extends AbstractModel {
id: number
title: string
hexColor: string
description: string
createdBy: UserModel
listId: number
textColor: string
created: Date
updated: Date
constructor(data) {
super(data)
// FIXME: this should be empty and be definied in the client.