This commit is contained in:
2026-03-05 13:34:01 +08:00
parent 42957af179
commit b31f2840b9

View File

@@ -457,7 +457,7 @@ export const routerViews = pgTable("router_views", {
views: jsonb().default([]).$type<Array<RouterViewQuery>>(),
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()),