How to make function that takes in a table as parameter with correct types? - Drizzle Team