© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
Drizzle TeamDT
Drizzle Team•16mo ago•
1 reply
camiaei

Custom column type

is this posible?

const intZeroNotNull = integer().default(0).notNull()
const intZeroNotNull = integer().default(0).notNull()


and how i should make it work, because this doesn't

const example = {
  id: integer().primaryKey(),
  value: intZeroNotNull 
}
const example = {
  id: integer().primaryKey(),
  value: intZeroNotNull 
}


thanks
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

Typescript error with custom column type
Drizzle TeamDTDrizzle Team / help
3y ago
Custom column type with default not working?
Drizzle TeamDTDrizzle Team / help
3y ago
MySQL column type: "Generated"?
Drizzle TeamDTDrizzle Team / help
3y ago
Custom aggregation column types
Drizzle TeamDTDrizzle Team / help
2y ago