rooms
parent
611b3f641c
commit
1fe2f33eba
|
@ -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"},
|
||||
})
|
||||
)
|
||||
|
|
|
@ -76,8 +76,8 @@ type Room struct {
|
|||
|
||||
// TABLE room_users
|
||||
type RoomUsers struct {
|
||||
RoomId string
|
||||
UserId string
|
||||
RoomId string
|
||||
Role uint8
|
||||
JoinedAt int64
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue