Hello, I just got started with Prisma a few hours ...
# prisma-whats-new
m
Hello, I just got started with Prisma a few hours ago and I am slightly confused on one thing. I plan on deploying to the Prisma Cloud when it comes time, but my question is about the database creation. I will host the database myself through Amazon like the tutorial says to do, but do I have to create the tables myself? I know that I define the schema I would like in the SDL syntax. Does Prisma automatically generate the tables and everything for me, or do I have to do that part myself?
n
Hey Michael! πŸ™‚ the tables are generated for you based on the data model you define for Prisma πŸ‘
m
Thank you, I was hoping so! πŸ™‚ And I am assuming the schema would be defined within
database/datamodel.graphql
?
n
Exactly βœ…
m
Awesome, and sorry, but one quick question. What exactly is the
seed.graphql
for? In the docs it says that it is
Contains mutations to seed the database with some initial data
. Is it a requirement to have this file?
n
No it’s not a requirement πŸ™‚ I’ts just a convenient way to initialize the database with some data upon its first deploy
m
That clears up my questions, thank you so much for the fast replies!! πŸ™‚
πŸ™Œ 1