feat: add modelTypes

This commit is contained in:
Dominik Pschenitschni 2022-08-04 20:57:43 +02:00
parent 8416b1f448
commit 7d4ba6249e
No known key found for this signature in database
GPG key ID: B257AC0149F43A77
91 changed files with 751 additions and 513 deletions

View file

@ -1,22 +1,13 @@
import AbstractModel, { type IAbstract } from './abstractModel'
import UserModel, { type IUser } from './user'
import AbstractModel from './abstractModel'
import UserModel from './user'
import type {ILabel} from '@/modelTypes/ILabel'
import type {IUser} from '@/modelTypes/IUser'
import {colorIsDark} from '@/helpers/color/colorIsDark'
const DEFAULT_LABEL_BACKGROUND_COLOR = 'e8e8e8'
export interface ILabel extends IAbstract {
id: number
title: string
hexColor: string
description: string
createdBy: IUser
listId: number
textColor: string
created: Date
updated: Date
}
export default class LabelModel extends AbstractModel implements ILabel {
id = 0
title = ''