https://supabase.com/ logo
#help
Title
# help
l

Ludvig

03/13/2022, 3:01 PM
I want to learn how to build superb data models in supabase or prisma to use with postgres. Where can I find some good resources on this? Anyone has a link?
n

Needle

03/13/2022, 3:01 PM
Hello @Ludvig! This thread has been automatically created from your message in #843999948717555735 a ``few seconds ago``. Pinging @User so that they see this as well! Want to unsubscribe from this thread? Right-click the thread in Discord (or use the ... menu) and select Leave Thread to unsubscribe from future updates. Want to change the title? Use the
/title
command! We have solved your problem? Click the button below to archive it.
o

Olyno

03/13/2022, 3:26 PM
Hi I'm not sure to understand what you're looking for. What do you mean by data models to use with postgres? 😅 @User
n

Needle

03/13/2022, 3:26 PM
Ludvig (2022-03-13)
l

Ludvig

03/13/2022, 3:39 PM
Well supabase is hosting a postgres db right? I guess me even mentioning it is redundant info lol. I just need resources on data models. The different types, foreign keys, relations, all these kind of things I need to know about to make good data models. I have never dealt with a database or sql before so I'm really new to this. Trying to set up a model for my ecommerce. Just need resources on how to make a model for an order, a customer, a product, these things you know
o

Olyno

03/13/2022, 3:44 PM
Okay so you're looking to how create a model with Prisma right?
l

Ludvig

03/13/2022, 3:53 PM
Yeah either in prisma or in supabase, they're kinda linked together
Like, I know how to create just a simple model
But I want some indepth, advanced resources on the different types, foreign keys, relations and these kind of things, all related do data models
o

Olyno

03/13/2022, 4:01 PM
Alright so you have a guide just here to get started with Prisma + Supabase: https://dev.to/prisma/set-up-a-free-postgresql-database-on-supabase-to-use-with-prisma-3pk6 You can have more informations about schemas directly on the official site: https://www.prisma.io/docs/concepts/components/prisma-schema/data-model
l

Ludvig

03/13/2022, 4:16 PM
Thanks! I'll have a look