stuve-it-frontend/src/models/MessageTypes.ts

34 lines
690 B
TypeScript
Raw Normal View History

import {RecordModel} from "pocketbase";
import {UserModal} from "@/models/AuthTypes.ts";
export type MessagesModel = {
sender: string
recipients: string[]
thread: string | null
subject: string | null
content: string
repliedTo: string | null
isAnnouncement: boolean | null
expand: {
sender: UserModal
recipients: UserModal[]
thread: MessageThreadsModel | null
repliedTo: MessagesModel | null
}
} & RecordModel
export type MessageThreadsModel = {
name: string
participants: string[]
img: string | null
systemThread: boolean | null
expand: {
participants: UserModal[]
}
} & RecordModel