Pupok
Explore posts from serversTTCTheo's Typesafe Cult
•Created by Pupok on 8/9/2024 in #questions
Delete file using supabase
I would like to use supabase edge function to delete a file when a delete event happen, is there a documentation on how to set up connection to uplaodthings from this environment?
2 replies
DTDrizzle Team
•Created by Pupok on 8/9/2024 in #help
Error migrating "type does not exist"
im adding more stuff to my db, so i created this type and once i wanted to migrate i got his
the error is pointing out the type i created as lowercase, but its camel cased
the type exist in supabase, so i cant apply my other change because this one keeps on failing
17 replies
DTDrizzle Team
•Created by Pupok on 8/7/2024 in #help
Is this the right way of using relations ?
hi, this is my first project using drizzle, and I'm not that good at sql query as mostly i use ORMs, but now im using drizzle to learn more sql like syntax,
This is the schema is question:
and this is the query
I did the relation between files and repair orders, if i try to join them directly into one query () then it will only return 1 file, this is why i splitted it into 2 so i can get all, is this the right way of doing it?
17 replies
TTCTheo's Typesafe Cult
•Created by Pupok on 8/2/2024 in #questions
How to add metadata to file been uploaded?
im running app where users can upload files inside each orders, but i want to store the url in my own db, so i have to send order id when uploading so i can get it in my uploadthings route and upload it, i can do this on the after update property of the upload button but would like to know if there is a better way of handling this?
3 replies