Add database migrations

This commit is contained in:
Cadence Ember 2023-10-01 01:24:05 +13:00
commit 1d99b91ef7
11 changed files with 263 additions and 33 deletions

5
db/orm-utils.d.ts vendored
View file

@ -54,7 +54,7 @@ export type Models = {
sim_member: {
mxid: string
room_id: string
profile_event_content_hash: any
hashed_profile_content: number
}
webhook: {
@ -79,8 +79,9 @@ export type Models = {
export type Prepared<Row> = {
pluck: () => Prepared<Row[keyof Row]>
safeIntegers: () => Prepared<{[K in keyof Row]: Row[K] extends number ? BigInt : Row[K]}>
all: (..._: any[]) => Row[]
get: (..._: any[]) => Row?
get: (..._: any[]) => Row | null
}
export type AllKeys<U> = U extends any ? keyof U : never