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
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server