Self referencing column breaks table type in typescript
I have the following table:
However typescript infers the type of
It's only when I remove
If so, how can I still create a self reference in this case?
However typescript infers the type of
categoriesTable as anyIt's only when I remove
.references(() => categoriesTable.id, { onDelete: 'set null' }) that typescript infers the type correctlyIf so, how can I still create a self reference in this case?