Store directs in database rather than account data
This commit is contained in:
38
src/db/orm-defs.d.ts
vendored
38
src/db/orm-defs.d.ts
vendored
@@ -1,4 +1,9 @@
|
||||
export type Models = {
|
||||
auto_emoji: {
|
||||
name: string
|
||||
emoji_id: string
|
||||
}
|
||||
|
||||
channel_room: {
|
||||
channel_id: string
|
||||
room_id: string
|
||||
@@ -14,6 +19,18 @@ export type Models = {
|
||||
custom_topic: number
|
||||
}
|
||||
|
||||
direct: {
|
||||
mxid: string
|
||||
room_id: string
|
||||
}
|
||||
|
||||
emoji: {
|
||||
emoji_id: string
|
||||
name: string
|
||||
animated: number
|
||||
mxc_url: string
|
||||
}
|
||||
|
||||
event_message: {
|
||||
event_id: string
|
||||
message_id: string
|
||||
@@ -55,6 +72,10 @@ export type Models = {
|
||||
mxc_url: string
|
||||
}
|
||||
|
||||
media_proxy: {
|
||||
permitted_hash: number
|
||||
}
|
||||
|
||||
member_cache: {
|
||||
room_id: string
|
||||
mxid: string
|
||||
@@ -99,29 +120,12 @@ export type Models = {
|
||||
webhook_token: string
|
||||
}
|
||||
|
||||
emoji: {
|
||||
emoji_id: string
|
||||
name: string
|
||||
animated: number
|
||||
mxc_url: string
|
||||
}
|
||||
|
||||
reaction: {
|
||||
hashed_event_id: number
|
||||
message_id: string
|
||||
encoded_emoji: string
|
||||
original_encoding: string | null
|
||||
}
|
||||
|
||||
auto_emoji: {
|
||||
name: string
|
||||
emoji_id: string
|
||||
guild_id: string
|
||||
}
|
||||
|
||||
media_proxy: {
|
||||
permitted_hash: number
|
||||
}
|
||||
}
|
||||
|
||||
export type Prepared<Row> = {
|
||||
|
||||
Reference in New Issue
Block a user