34 lines
690 B
TypeScript
34 lines
690 B
TypeScript
|
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
|