Compare commits
2 Commits
Author | SHA1 | Date |
---|---|---|
|
241bb99dee | |
|
1fe2f33eba |
13
dbmodels.go
13
dbmodels.go
|
@ -213,8 +213,19 @@ var (
|
|||
DbMRoomUsers = table.New(table.Metadata{
|
||||
Name: "room_users",
|
||||
Columns: []string{
|
||||
"room_id",
|
||||
"user_id",
|
||||
"room_id",
|
||||
"role",
|
||||
"joined_at",
|
||||
},
|
||||
PartKey: []string{"user_id", "room_id"},
|
||||
})
|
||||
|
||||
DbMRoomUsersHelperPKRoomId = table.New(table.Metadata{
|
||||
Name: "room_users",
|
||||
Columns: []string{
|
||||
"user_id",
|
||||
"room_id",
|
||||
"role",
|
||||
"joined_at",
|
||||
},
|
||||
|
|
|
@ -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