arafays
arafays
DTDrizzle Team
Created by arafays on 12/28/2023 in #help
Union of schema with relations
but with the name of role from roles table is used in role validation from rolePermissions table
3 replies
DTDrizzle Team
Created by arafays on 12/28/2023 in #help
Union of schema with relations
something like this
export const RoleWithPermissionInsertSchema = union(
[
roleInsertSchema,
rolePermissionInsertSchema,
]
)
export const RoleWithPermissionInsertSchema = union(
[
roleInsertSchema,
rolePermissionInsertSchema,
]
)
3 replies
DTDrizzle Team
Created by arafays on 11/28/2023 in #help
SQL noob trying to make schema Drizzle ORM
@skelaw and yeah I am being extra causious making these tables thats why I have spent almost three days thinking about what and this would work serarched db diagram software and made this to get clarity https://dbdiagram.io/d/Agent-Calculation-6557f95d3be14957873bb285
10 replies
DTDrizzle Team
Created by arafays on 11/28/2023 in #help
SQL noob trying to make schema Drizzle ORM
you mean @skelaw
// change
createdByUserId: varchar("createdByUserId", { length: 255 }).notNull(),
// to (also table name)
createdByUserId: varchar("created_by_user_id", { length: 255 }).notNull(),
// change
createdByUserId: varchar("createdByUserId", { length: 255 }).notNull(),
// to (also table name)
createdByUserId: varchar("created_by_user_id", { length: 255 }).notNull(),
10 replies
DTDrizzle Team
Created by arafays on 11/28/2023 in #help
SQL noob trying to make schema Drizzle ORM
@Revan Thank you raven I got it working. I guess I will learn if the relationships are correct while I make the application
10 replies