© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
Drizzle TeamDT
Drizzle Team•3y ago•
1 reply
mehaac

schema types

for some reason in my schema.ts file i have an error


export const your_table_name = pgTable('your_table_name', {
  id: serial('id')
    .primaryKey(),
})
export const your_table_name = pgTable('your_table_name', {
  id: serial('id')
    .primaryKey(),
})

Type 'NotNull<PgSerialBuilderInitial<"id">>' is not assignable to type 'PgColumnBuilder<ColumnBuilderBaseConfig<ColumnDataType, string> & { data: any; }, object, object, ColumnBuilderExtraConfig>'.
The types of 'array(...).array(...)._' are incompatible between these types.ts(2322)

can some one now what causing this error?
image.png
Drizzle TeamJoin
The official Discord for all Drizzle related projects, such as Drizzle ORM, Drizzle Kit, Drizzle Studio and more!
11,879Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Inferring Types from Schema?
Drizzle TeamDTDrizzle Team / help
13mo ago
drizzle connection missing schema types
Drizzle TeamDTDrizzle Team / help
2y ago
Error types with custom schema
Drizzle TeamDTDrizzle Team / help
3y ago
schema in multiple files breaks types
Drizzle TeamDTDrizzle Team / help
13mo ago