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
TTCTheo's Typesafe Cult
•Created by p o h a on 9/9/2023 in #questions
UploadThing: Struggling to authenticate uploads
I am using uploadthing for the first time. I wanted to authenticate a passkey in the middleware after I upload the image.
How do i pass the passkey to the upload request to then be authenticated in the middleware
Something like this
8 replies