brf/shared/types.db.ts

262 lines
5.3 KiB
TypeScript

/**
* This file was generated by kysely-codegen.
* Please do not edit it manually.
*/
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 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<string, number | string, number | string>
export type Timestamp = ColumnType<Date, Date | string, Date | string>
export interface Account {
description: string
financialYearId: number
id: Generated<number>
number: number
sru: number | null
}
export interface AccountBalance {
accountNumber: number
financialYearId: number
in: Generated<Numeric>
inQuantity: number | null
out: Generated<Numeric>
outQuantity: number | null
}
export interface Admission {
createdAt: Generated<Timestamp | null>
createdById: number
id: Generated<number>
modifiedAt: Timestamp | null
modifiedById: number | null
regex: string
}
export interface AdmissionsRoles {
admissionId: number
roleId: number
}
export interface AliasesToSupplier {
alias: string
id: Generated<number>
supplierId: number
}
export interface Dimension {
id: Generated<number>
name: string | null
number: number
}
export interface EmailToken {
cancelledAt: Timestamp | null
consumedAt: Timestamp | null
createdAt: Generated<Timestamp>
email: string
id: Generated<number>
token: string
userId: number
}
export interface Entry {
description: string | null
entryDate: Timestamp
financialYearId: number
id: Generated<number>
journalId: number
number: number
signature: string | null
transactionDate: Timestamp
}
export interface Error {
createdAt: Timestamp | null
details: Json | null
headers: Json | null
id: Generated<number>
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<number>
}
export interface FilesToInvoice {
fileId: number
invoiceId: number
}
export interface FinancialYear {
endDate: Timestamp
id: Generated<number>
startDate: Timestamp
year: number
}
export interface Invite {
consumedAt: Timestamp | null
consumedById: number | null
createdAt: Generated<Timestamp>
createdById: number | null
email: string
id: Generated<number>
modifiedAt: Timestamp | null
modifiedById: number | null
token: string
}
export interface InvitesRoles {
invitedId: number
roleId: number
}
export interface Invoice {
amount: Numeric | null
dueDate: Timestamp | null
financialYearId: number | null
fiskenNumber: number | null
id: Generated<number>
invoiceDate: Timestamp | null
invoiceNumber: string | null
ocr: string | null
phmNumber: number | null
supplierId: number
}
export interface Journal {
description: string | null
id: Generated<number>
identifier: string
}
export interface Object {
dimensionId: number
id: Generated<number>
name: string | null
number: number
}
export interface PasswordToken {
cancelledAt: Timestamp | null
consumedAt: Timestamp | null
createdAt: Generated<Timestamp>
id: Generated<number>
token: string
userId: number
}
export interface Role {
createdAt: Generated<Timestamp>
createdById: number | null
id: Generated<number>
modifiedAt: Timestamp | null
modifiedById: number | null
name: string
}
export interface Supplier {
id: Generated<number>
name: string | null
supplierTypeId: number
taxId: string | null
}
export interface SupplierType {
id: Generated<number>
name: string
}
export interface Transaction {
accountNumber: number
amount: Numeric
description: string | null
entryId: number
id: Generated<number>
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<Timestamp>
email: string
emailVerifiedAt: Timestamp | null
id: Generated<number>
lastActivityAt: Timestamp | null
lastLoginAt: Timestamp | null
lastLoginAttemptAt: Timestamp | null
loginAttempts: Generated<number | null>
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
}