now able to create chats with oneself and print them

This commit is contained in:
Jona Kläß
2024-05-04 13:59:15 +02:00
parent 74d9c2a62e
commit 288f7e0522
4 changed files with 130 additions and 30 deletions

View File

@@ -10,3 +10,26 @@ export interface responseModel {
message: string;
response: any;
}
export interface chat{
id: number;
members: ptpUser[];
messages: message[];
displayName: string;
}
export interface user{
id: number;
keycloakID: string;
firstName: string;
lastName: string;
username: string;
chats: chat[];
}
export interface message{
id: number;
chat: chat;
sender: user;
content: string;
}