Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create DB seed function #42

Merged
merged 4 commits into from
Jul 26, 2023
Merged

Conversation

nicolasbrandao
Copy link
Contributor

@nicolasbrandao nicolasbrandao commented Jul 17, 2023

Description

This PR creates a DB seed function

  • Update project dependencies
  • Add prisma key and seed script
  • Create seed function on seed.ts

obs. Seed function cannot use createMany on many-to-many relationships, like tasks dependencies. But it could be used to create users indeed and this was changed - see docs.

@vercel
Copy link

vercel bot commented Jul 17, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
app ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 19, 2023 2:15pm

prisma/seed.ts Outdated Show resolved Hide resolved
prisma/seed.ts Show resolved Hide resolved
package.json Show resolved Hide resolved
Copy link
Contributor

@vitorschelb vitorschelb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Amazing, congrats for the hard work. Let me know if you need anything.

Copy link
Contributor

@marco-souza marco-souza left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! 🚢

@nicolasbrandao nicolasbrandao merged commit 208dc97 into main Jul 26, 2023
@nicolasbrandao nicolasbrandao deleted the nicolasbrandao/populate-db-with-tasks branch July 26, 2023 16:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants