p o h a
Explore posts from serversDTDrizzle Team
•Created by p o h a on 7/19/2024 in #help
Foreign key reference in drizzle causes type error
In my drizzle schema, I have two tables, users and payment_history, when I try to reference the id of payment_history, it throws a type error Function implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions.. users table and payment_history table have a one to many relation where one user can have many payments. These are my schema definition: users:
payment_history:
and these are the table relations: users:
10 replies