Add a fat type will all the relations

This commit is contained in:
2025-07-04 15:41:33 +02:00
parent fb16824137
commit da2538ded5
2 changed files with 36 additions and 23 deletions

20
src/lib/types.ts Normal file
View File

@@ -0,0 +1,20 @@
import { IndJobStatusOptions, IndTransactionRecord } from "./pbtypes"
import { IsoDateString } from "./pbtypes"
import { IndBillitemRecord } from "./pbtypes"
export type IndJob = {
billOfMaterials?: IndBillitemRecord[]
consumedMaterials?: IndBillitemRecord[]
created?: IsoDateString
expenditures?: IndTransactionRecord[]
id: string
income?: IndTransactionRecord[]
jobEnd?: IsoDateString
jobStart?: IsoDateString
outputItem: string
outputQuantity: number
saleEnd?: IsoDateString
saleStart?: IsoDateString
status: IndJobStatusOptions
updated?: IsoDateString
}