model Invoice { workOrderId Int @unique workOrder WorkOrder @relation(fields: [workOrderId], references: [id]) total Int paidDate DateTime? }