v1.0.81
alex 2023-03-09 22:34:47 +01:00
parent 611b3f641c
commit 1fe2f33eba
2 changed files with 3 additions and 3 deletions

View File

@ -213,11 +213,11 @@ var (
DbMRoomUsers = table.New(table.Metadata{
Name: "room_users",
Columns: []string{
"room_id",
"user_id",
"room_id",
"role",
"joined_at",
},
PartKey: []string{"room_id"},
PartKey: []string{"user_id", "room_id"},
})
)

View File

@ -76,8 +76,8 @@ type Room struct {
// TABLE room_users
type RoomUsers struct {
RoomId string
UserId string
RoomId string
Role uint8
JoinedAt int64
}