96 lines
4.4 KiB
TypeScript
96 lines
4.4 KiB
TypeScript
// Generated by @pikku/cli — do not edit by hand.
|
|
// Run `pikku db migrate` to refresh.
|
|
|
|
import type { ColumnType } from 'kysely'
|
|
|
|
export type Generated<T> = T extends ColumnType<infer S, infer I, infer U>
|
|
? ColumnType<S, I | undefined, U>
|
|
: ColumnType<T, T | undefined, T>
|
|
|
|
export type Private<T> = T & { readonly __classification__?: 'private' }
|
|
export type Pii<T> = T & { readonly __classification__?: 'pii' }
|
|
export type Secret<T> = T & { readonly __classification__?: 'secret' }
|
|
export type Uuid = string
|
|
|
|
export interface Account {
|
|
id: ColumnType<Private<string>, string, string>
|
|
accountId: ColumnType<Private<string>, string, string>
|
|
providerId: ColumnType<Private<string>, string, string>
|
|
userId: ColumnType<Private<string>, string, string>
|
|
accessToken: ColumnType<Private<string> | null, string | null, string | null>
|
|
refreshToken: ColumnType<Private<string> | null, string | null, string | null>
|
|
idToken: ColumnType<Private<string> | null, string | null, string | null>
|
|
accessTokenExpiresAt: ColumnType<Private<string> | null, string | null, string | null>
|
|
refreshTokenExpiresAt: ColumnType<Private<string> | null, string | null, string | null>
|
|
scope: ColumnType<Private<string> | null, string | null, string | null>
|
|
password: ColumnType<Private<string> | null, string | null, string | null>
|
|
createdAt: ColumnType<Private<string>, string, string>
|
|
updatedAt: ColumnType<Private<string>, string, string>
|
|
}
|
|
|
|
export interface Audit {
|
|
auditId: ColumnType<Private<string>, string | undefined, string>
|
|
occurredAt: ColumnType<Private<string>, string | undefined, string>
|
|
type: ColumnType<Private<string>, string, string>
|
|
source: ColumnType<Private<string>, string | undefined, string>
|
|
outcome: ColumnType<Private<string> | null, string | null, string | null>
|
|
functionId: ColumnType<Private<string> | null, string | null, string | null>
|
|
wireType: ColumnType<Private<string> | null, string | null, string | null>
|
|
traceId: ColumnType<Private<string> | null, string | null, string | null>
|
|
transactionId: ColumnType<Private<string> | null, string | null, string | null>
|
|
queryId: ColumnType<Private<string> | null, string | null, string | null>
|
|
actorUserId: ColumnType<Private<string> | null, string | null, string | null>
|
|
actorOrgId: ColumnType<Private<string> | null, string | null, string | null>
|
|
tables: ColumnType<Private<string> | null, string | null, string | null>
|
|
changedCols: ColumnType<Private<string> | null, string | null, string | null>
|
|
event: ColumnType<Private<string> | null, string | null, string | null>
|
|
old: ColumnType<Private<string> | null, string | null, string | null>
|
|
data: ColumnType<Private<string> | null, string | null, string | null>
|
|
}
|
|
|
|
export interface MessageState {
|
|
id: ColumnType<Private<number>, number | undefined, number>
|
|
message: ColumnType<Private<string>, string, string>
|
|
updatedAt: ColumnType<Private<string>, string | undefined, string>
|
|
updatedByUserId: ColumnType<Private<string> | null, string | null, string | null>
|
|
}
|
|
|
|
export interface Session {
|
|
id: ColumnType<Private<string>, string, string>
|
|
expiresAt: ColumnType<Private<string>, string, string>
|
|
token: ColumnType<Private<string>, string, string>
|
|
createdAt: ColumnType<Private<string>, string, string>
|
|
updatedAt: ColumnType<Private<string>, string, string>
|
|
ipAddress: ColumnType<Private<string> | null, string | null, string | null>
|
|
userAgent: ColumnType<Private<string> | null, string | null, string | null>
|
|
userId: ColumnType<Private<string>, string, string>
|
|
}
|
|
|
|
export interface User {
|
|
id: ColumnType<Private<string>, string, string>
|
|
name: ColumnType<Private<string>, string, string>
|
|
email: ColumnType<Private<string>, string, string>
|
|
emailVerified: ColumnType<Private<number>, number, number>
|
|
image: ColumnType<Private<string> | null, string | null, string | null>
|
|
createdAt: ColumnType<Private<string>, string, string>
|
|
updatedAt: ColumnType<Private<string>, string, string>
|
|
}
|
|
|
|
export interface Verification {
|
|
id: ColumnType<Private<string>, string, string>
|
|
identifier: ColumnType<Private<string>, string, string>
|
|
value: ColumnType<Private<string>, string, string>
|
|
expiresAt: ColumnType<Private<string>, string, string>
|
|
createdAt: ColumnType<Private<string>, string, string>
|
|
updatedAt: ColumnType<Private<string>, string, string>
|
|
}
|
|
|
|
export interface DB {
|
|
account: Account
|
|
audit: Audit
|
|
messageState: MessageState
|
|
session: Session
|
|
user: User
|
|
verification: Verification
|
|
}
|