forked from cadence/out-of-your-element
Add database migrations
This commit is contained in:
parent
7a218f1254
commit
1d99b91ef7
11 changed files with 263 additions and 33 deletions
5
db/orm-utils.d.ts
vendored
5
db/orm-utils.d.ts
vendored
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue