yehia
yehia
Explore posts from servers
DTDrizzle Team
Created by yehia on 7/12/2024 in #help
Not null must have default value as well?
Can you show me the error
13 replies
DTDrizzle Team
Created by yehia on 7/12/2024 in #help
Not null must have default value as well?
Why not
13 replies
DTDrizzle Team
Created by yehia on 7/12/2024 in #help
Not null must have default value as well?
After having these types I use them like this
await db.insert(schema.users).values({ name: 'Andrew' } as schema.InsertUsers);
await db.insert(schema.users).values({ name: 'Andrew' } as schema.InsertUsers);
13 replies
DTDrizzle Team
Created by yehia on 7/12/2024 in #help
Not null must have default value as well?
13 replies
DTDrizzle Team
Created by yehia on 7/12/2024 in #help
Not null must have default value as well?
You're totally right and this is expected behavior. It may be something with my particular setup with NestJS. I'll see if there's something there
13 replies
DTDrizzle Team
Created by yehia on 7/12/2024 in #help
Not null must have default value as well?
Yeah I'm getting this error even when I pass values in on insert for email/password_hash so that's what's confusing. I don't want email/password_hash to have default values, I want them to be not null and I pass their values in on insert
13 replies