From ddeea128a4ee50247f25a013ad2f487232a0590c Mon Sep 17 00:00:00 2001 From: alex Date: Wed, 8 Mar 2023 20:04:08 +0100 Subject: [PATCH] added room state --- dbmodels.go | 1 + dbstructs/dbstructs.go | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/dbmodels.go b/dbmodels.go index 55d2067..45aecbf 100644 --- a/dbmodels.go +++ b/dbmodels.go @@ -202,6 +202,7 @@ var ( Name: "rooms", Columns: []string{ "id", + "state", "sync_count", "last_changes", "created_at", diff --git a/dbstructs/dbstructs.go b/dbstructs/dbstructs.go index b5401c3..79f8990 100644 --- a/dbstructs/dbstructs.go +++ b/dbstructs/dbstructs.go @@ -65,7 +65,8 @@ type UserSignUpProcess struct { // TABLE rooms type Room struct { - Id string + Id string + State uint8 // 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 changes like messages, reactions, replies