create chat document

This commit is contained in:
2024-12-06 23:00:31 +02:00
parent 3cb75c8cc2
commit cf87c0daa7
6 changed files with 67 additions and 9 deletions
@@ -0,0 +1,23 @@
import { type BaseDocument } from "./BaseDocument";
import type { Role } from "./Role";
/**
* Интерфейс для документа чата.
* Используется для хранения чатов, отправленных через QR‑код.
*/
export interface ChatDocument extends BaseDocument {
/** Тип документа, всегда 'chat' */
type: "chat";
/** Идентификатор QR‑кода, к которому относится чат */
qr_code_uri: string;
/** Идентификатор чата */
chat: string;
/** Роль пользователя в чате */
role: Role;
/** Идентификатор пользователя, которому принадлежит чат */
user_uuid: string;
}
+1
View File
@@ -1,5 +1,6 @@
export * from "./Role";
export * from "./BaseDocument";
export * from "./ChatDocument";
export * from "./MessageDocument";
export * from "./PublicSettingsDocument";
export * from "./QRCodeDocument";