/** * This file was generated by kysely-codegen. * Please do not edit it manually. */ import type { ColumnType } from 'kysely' export type Generated = T extends ColumnType ? ColumnType : ColumnType export type Json = JsonValue export type JsonArray = JsonValue[] export type JsonObject = { [x: string]: JsonValue | undefined } export type JsonPrimitive = boolean | number | string | null export type JsonValue = JsonArray | JsonObject | JsonPrimitive export type Numeric = ColumnType export type Timestamp = ColumnType export interface Account { description: string financialYearId: number id: Generated number: number sru: number | null } export interface AccountBalance { accountNumber: number financialYearId: number in: Generated inQuantity: number | null out: Generated outQuantity: number | null } export interface Admission { createdAt: Generated createdById: number id: Generated modifiedAt: Timestamp | null modifiedById: number | null regex: string } export interface AdmissionsRoles { admissionId: number roleId: number } export interface AliasesToSupplier { alias: string id: Generated supplierId: number } export interface Dimension { id: Generated name: string | null number: number } export interface EmailToken { cancelledAt: Timestamp | null consumedAt: Timestamp | null createdAt: Generated email: string id: Generated token: string userId: number } export interface Entry { description: string | null entryDate: Timestamp financialYearId: number id: Generated journalId: number number: number signature: string | null transactionDate: Timestamp } export interface Error { createdAt: Timestamp | null details: Json | null headers: Json | null id: Generated ip: string | null message: string | null method: string | null path: string | null reqId: string | null stack: string | null statusCode: number | null type: string | null } export interface File { filename: string id: Generated } export interface FilesToInvoice { fileId: number invoiceId: number } export interface FinancialYear { endDate: Timestamp id: Generated startDate: Timestamp year: number } export interface Invite { consumedAt: Timestamp | null consumedById: number | null createdAt: Generated createdById: number | null email: string id: Generated modifiedAt: Timestamp | null modifiedById: number | null token: string } export interface InvitesRoles { inviteId: number roleId: number } export interface Invoice { amount: Numeric | null dueDate: Timestamp | null financialYearId: number | null fiskenNumber: number | null id: Generated invoiceDate: Timestamp | null invoiceNumber: string | null ocr: string | null phmNumber: number | null supplierId: number } export interface Journal { description: string | null id: Generated identifier: string } export interface Object { dimensionId: number id: Generated name: string | null number: number } export interface PasswordToken { cancelledAt: Timestamp | null consumedAt: Timestamp | null createdAt: Generated id: Generated token: string userId: number } export interface Role { createdAt: Generated createdById: number | null id: Generated modifiedAt: Timestamp | null modifiedById: number | null name: string } export interface Supplier { id: Generated name: string | null supplierTypeId: number taxId: string | null } export interface SupplierType { id: Generated name: string } export interface Transaction { accountNumber: number amount: Numeric description: string | null entryId: number id: Generated invoiceId: number | null objectId: number | null quantity: Numeric | null signature: string | null transactionDate: Timestamp | null } export interface TransactionsToObjects { objectId: number transactionId: number } export interface User { bannedAt: Timestamp | null bannedById: number | null blockedAt: Timestamp | null blockedById: number | null createdAt: Generated email: string emailVerifiedAt: Timestamp | null id: Generated lastActivityAt: Timestamp | null lastLoginAt: Timestamp | null lastLoginAttemptAt: Timestamp | null loginAttempts: Generated password: string } export interface UsersRoles { roleId: number userId: number } export interface DB { account: Account accountBalance: AccountBalance admission: Admission admissions_roles: AdmissionsRoles aliasesToSupplier: AliasesToSupplier dimension: Dimension emailToken: EmailToken entry: Entry error: Error file: File filesToInvoice: FilesToInvoice financialYear: FinancialYear invite: Invite invites_roles: InvitesRoles invoice: Invoice journal: Journal object: Object passwordToken: PasswordToken role: Role supplier: Supplier supplierType: SupplierType transaction: Transaction transactionsToObjects: TransactionsToObjects user: User users_roles: UsersRoles }