TypeScript Function That Generates a Schema with Dynamic Fields and Maintains Correct Return Types - Drizzle Team