FelixNg
FelixNg
Explore posts from servers
DTDrizzle Team
Created by FelixNg on 1/30/2024 in #help
Foreign keys default to NOT NULL with PostgreSQL
I understand. I want the DB to auto-generate PKs and have 0-1 to 1 relationship with those PKs from other tables. I saw this PR (https://github.com/drizzle-team/drizzle-orm/pull/1471) is still open so should I expect this feature to land in the next release? For the meantime I would just use nanoid in javascript to insert records.
5 replies
DTDrizzle Team
Created by FelixNg on 11/24/2023 in #help
createInsertSchema & createSelectSchema difference
Yeah that would be the normal way to do CRUD schemas. I’m actually talking about the difference between the two specific functions shown in drizzle-zod documentation
4 replies
DTDrizzle Team
Created by FelixNg on 11/24/2023 in #help
createInsertSchema & createSelectSchema difference
And how about schema to delete or update?
4 replies