Table factory typescript problem
I have a basic table schema that all tables share (id, timestamps and more) and I'm trying to write an helper function that returns a pgTable with these fields already added. Right now it looks like this:
This is wrong though because
This is wrong though because
testTable is not typed correctly and it is missing all the shared fields. How would I go about correcting this?