Generic table with specific fields
I'm trying to create a function that takes in a table that has some arbitrary columns and the columns
created_at
and updated_at
. I want to create a generic that describes this correctly so it also works with things like drizzle-zod
. The ideal solution would be something like
So far the closest I've been able to get is the following, which isn't exactly elegant.
0 Replies