Store directs in database rather than account data

This commit is contained in:
Cadence Ember
2025-08-21 11:30:23 +12:00
parent 5e4bea6ce6
commit 954d41269c
6 changed files with 54 additions and 57 deletions

38
src/db/orm-defs.d.ts vendored
View File

@@ -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> = {