You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here's a sample table definition of a live table in postgres
create table
public.knowledge_bases (
id bigint generated by default as identity not null,
created_at timestamp with time zone null default now(),
name text null,
org_id text null,
index_name text null,
constraint knowledge_bases_pkey primary key (id)
) tablespace pg_default;
It's picking up id as an int. But doesn't see the primary key constraint. What can I do to fix this?
Here's what the npx drizzle-kit introspect:pg is generating:
export const knowledgeBases = pgTable("knowledge_bases", {
// You can use { mode: "bigint" } if numbers are exceeding js number limitations
id: bigint("id", { mode: "number" }).notNull(),
createdAt: timestamp("created_at", { withTimezone: true, mode: 'string' }).defaultNow(),
name: text("name"),
orgId: text("org_id"),
indexName: text("index_name"),
});
The text was updated successfully, but these errors were encountered:
Here's a sample table definition of a live table in postgres
It's picking up id as an int. But doesn't see the primary key constraint. What can I do to fix this?
Here's what the
npx drizzle-kit introspect:pg
is generating:The text was updated successfully, but these errors were encountered: