latitude and longitude are string type but were defined as numeric

I know there is https://www.answeroverflow.com/m/1130657305722101782 showcasing why this is the case. But can someone explain why would one want to go through the effort of making the adjustment for making the type be a number?

I'm planning on having an input form with an address that I'll transform into lat and long coordinates, when this is passed as form data of course it'll be a string, but I wonder whether drizzle will update it properly whether it comes as a string or a number type.
Hi,

Is it ok to import schemas generated with drizzle-zod via createInsertSchema on the client? I have my schema in a separate schema.ts file away from where I init my database if that matters at all.

Thanks!
Was this page helpful?