© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
Drizzle TeamDT
Drizzle Team•2y ago
Ultra Black MAAH

notNull(); in a specific condition

I wanna make an attribute that is notNull in a specific condition using typeScript
Let's say we have a userTable for a user that might be an ordinary user that has only firstname and lastname required and a user that can be a business owner or something so we'll need more data that can't be required just like the company's name or number
All i wanna do is to make these specific data reuiqred in a specific condition
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

Conditional NotNull Column?
Drizzle TeamDTDrizzle Team / help
16mo ago
PgColumnBuilderBase and notNull()
Drizzle TeamDTDrizzle Team / help
17mo ago
notNull and Unique
Drizzle TeamDTDrizzle Team / help
2y ago
TypeError unless column is notNull
Drizzle TeamDTDrizzle Team / help
13mo ago