Type of table become any when adding foreignKey or referrence

No description
No description
2 Replies
Tonkaew
TonkaewOP3w ago
I'm using drizzle in nestjs project and when I added referrence or foreignKey table type become any drizzle-orm: ^0.36.0
Mario564
Mario5642w ago
@Tonkaew Does filesTable reference usersTable? If so, the solution should be pretty simple:
.reference((): AnyPgColumn => filesTable.id)
.reference((): AnyPgColumn => filesTable.id)
Want results from more Discord servers?
Add your server