How to Normalize Database using Drizzle?

I previously have made my Order Table to only support one service/line item back then (based on the business logic back then). Now, I need to normalize my database, so that it supports multiple services/line items in a single order. I have tried to write the migration file but it's not running.
Solution
Node can’t execute ts file. You can try to run your script with tsx.
npx tsx path/to/your/file.ts
Was this page helpful?