Skip to content

Add a bun run setup command to seed data #21

@AbhayVAshokan

Description

@AbhayVAshokan
  • Throw an error if the bun run setup command if DATABASE_URL contains the word prisma. This would prevent accidental modification of the production database.
  • Delete and re-create the database leetify.
  • Seed say top 10 valid Leetcode users. This will ensure "Sync problems" button is functional.
  • Seed at least 10 problems for each user.
  • Randomly mark several problems as favorite.
  • Seed any other valid information.

Ref: https://www.prisma.io/docs/orm/prisma-migrate/workflows/seeding

Metadata

Metadata

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions