parent
18f09017f1
commit
761ee3794f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue