Skip to main content

How to Initialize the Database

OneDay.Build uses Prisma to interact with the database. You can find the configuration in the prisma/schema.prisma file. We have predefined some database fields for you to modify and populate.

Update the DATABASE_URL environment variable in the .env file with your database URL.

Then, run the following command to generate the Prisma client:

npx prisma generate

Next, push the schema to the database:

npx prisma db push

Now you can view the database in Prisma Studio:

npx prisma studio