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