parent
761ee3794f
commit
1944c40311
23
dbmodels.go
23
dbmodels.go
|
@ -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"},
|
||||
})
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue