Right way to make UpdatedAt column in Drizzle?
I'm trying to copy the way prisma was able to create a column that would update to the newest time when a row is changed. Is this a good implementation below or have people had issues with this that have tried to implement it?
A reference example the way Prisma had it
1 Reply
I use () => sql<string>
now()
but yeah this is the good implementation!