changed chat to rooms

alpha v1.0.76
alex 2023-03-07 22:37:15 +01:00
parent 18f09017f1
commit 761ee3794f
1 changed files with 14 additions and 8 deletions

View File

@ -63,16 +63,22 @@ type UserSignUpProcess struct {
ExpiresAt int64
}
// TABLE chats
type Chat struct {
UserFirstId string
UserSecondId string
// TABLE rooms
type Room struct {
Id string
// Represents the current number of message activities in a chat. This includes reactions to messages, replying to messages, deleting messages, and more
SyncCount int
// Contains number X of last message activities. Needed e.g. for web
LastMessages []string
BlockedState uint8
CreatedAt int64
// Contains number X of last changes like messages, reactions, replies
LastChanges []string
CreatedAt int64
}
// TABLE room_users
type RoomUsers struct {
RoomId string
UserId string
Role uint8
JoinedAt int64
}
// Representation of the event model