update
This commit is contained in:
@@ -475,4 +475,23 @@ export const routerViews = pgTable("router_views", {
|
||||
index('router_views_uid_idx').using('btree', table.uid.asc().nullsLast()),
|
||||
index('router_title_idx').using('btree', table.title.asc().nullsLast()),
|
||||
index('router_views_views_idx').using('gin', table.views),
|
||||
]);
|
||||
|
||||
|
||||
export const queryViews = pgTable("query_views", {
|
||||
id: uuid().primaryKey().notNull().defaultRandom(),
|
||||
uid: uuid(),
|
||||
|
||||
title: text('title').default(''),
|
||||
summary: text('summary').default(''),
|
||||
description: text('description').default(''),
|
||||
tags: jsonb().default([]),
|
||||
link: text('link').default(''),
|
||||
data: jsonb().default({}),
|
||||
|
||||
createdAt: timestamp('createdAt').notNull().defaultNow(),
|
||||
updatedAt: timestamp('updatedAt').notNull().defaultNow(),
|
||||
}, (table) => [
|
||||
index('query_views_uid_idx').using('btree', table.uid.asc().nullsLast()),
|
||||
index('query_title_idx').using('btree', table.title.asc().nullsLast()),
|
||||
]);
|
||||
Reference in New Issue
Block a user