diff --git a/src/db/drizzle/schema.ts b/src/db/drizzle/schema.ts index 25ee634..42ad1c5 100644 --- a/src/db/drizzle/schema.ts +++ b/src/db/drizzle/schema.ts @@ -457,7 +457,7 @@ export const routerViews = pgTable("router_views", { views: jsonb().default([]).$type>(), createdAt: timestamp('createdAt').notNull().defaultNow(), - updatedAt: timestamp('updatedAt').notNull().defaultNow(), + updatedAt: timestamp('updatedAt').notNull().defaultNow().$onUpdate(() => new Date()), }, (table) => [ index('router_views_uid_idx').using('btree', table.uid.asc().nullsLast()), index('router_title_idx').using('btree', table.title.asc().nullsLast()),