integrate TaskModel with FileModel

This commit is contained in:
marlon-erler
2024-07-22 02:16:58 +02:00
parent 5848de4c50
commit a776b977f8
2 changed files with 28 additions and 12 deletions
+23 -12
View File
@@ -1,20 +1,31 @@
// thile file is responsible for managing task files within chats.
import { FileContent } from "./fileModel";
import FileModel, { FileContent } from "./fileModel";
export default class TaskFileModel {}
import ChatModel from "../Chat/chatModel";
export default class TaskModel {
chatModel: ChatModel;
fileModel: FileModel;
// init
constructor(chatModel: ChatModel, fileModel: FileModel) {
this.chatModel = chatModel;
this.fileModel = fileModel;
}
}
// types
export interface TaskFileContent extends FileContent {
type: "task",
type: "task";
board: string;
category?: string;
status?: string;
board: string;
category?: string;
status?: string;
description?: string;
priority?: number;
date?: string;
time?: string;
}
description?: string;
priority?: number;
date?: string;
time?: string;
}