Answer Overflow Logo
Change Theme
Search Answer Overflow
GitHub
Add Your Server
Home
Popular
Topics
Gaming
Programming
DT
Drizzle Team
•
11mo ago
Tonkaew
Type of table become any when adding foreignKey or referrence
2 Replies
Tonkaew
OP
•
11mo 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
•
11mo 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!
12K
Members
View on Discord
Did you find this page helpful?
Yes
No