changed chats to rooms

alpha v1.0.77
alex 2023-03-08 17:30:42 +01:00
parent 761ee3794f
commit 1944c40311
1 changed files with 16 additions and 7 deletions

View File

@ -198,16 +198,25 @@ var (
PartKey: []string{"user_id"},
})
DbMChats = table.New(table.Metadata{
Name: "chats",
DbMRooms = table.New(table.Metadata{
Name: "rooms",
Columns: []string{
"user_first_id",
"user_second_id",
"id",
"sync_count",
"last_messages",
"blocked_state",
"last_changes",
"created_at",
},
PartKey: []string{"user_first_id", "user_second_id"},
PartKey: []string{"id"},
})
DbMRoomUsers = table.New(table.Metadata{
Name: "room_users",
Columns: []string{
"room_id",
"user_id",
"role",
"joined_at",
},
PartKey: []string{"room_id"},
})
)