Answer Overflow Logo
Change Theme
Search Answer Overflow
GitHub
Add Your Server
Login
Home
Popular
Topics
Gaming
Programming
DT
Drizzle Team
•
3w ago
Tonkaew
Type of table become any when adding foreignKey or referrence
2 Replies
Tonkaew
OP
•
3w 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
•
2w ago
@Tonkaew Does
filesTable
reference
usersTable
? If so, the solution should be pretty simple:
.
reference
(()
:
AnyPgColumn
=>
filesTable.id)
.
reference
(()
:
AnyPgColumn
=>
filesTable.id)
Drizzle Team
Join
The official Discord for all Drizzle related projects, such as Drizzle ORM, Drizzle Kit, Drizzle Studio and more!
9.8K
Members
View on Discord
Want results from more Discord servers?
Add your server
Invite a server