Description
Since we successfully integrated Prisma ORM, starting the server with an empty database makes the frontend look broken during local development.
We need a powerful database seeding script that programmatically generates 6 months of realistic historical trading data, complete with fluctuating prices and randomized trade volumes.
When a new developer clones the repo, they should be able to run npm run seed and instantly have a massive, rich dataset to work with.
This solves the "empty state" problem for all frontend chart development.
Requirements
Description
Since we successfully integrated Prisma ORM, starting the server with an empty database makes the frontend look broken during local development.
We need a powerful database seeding script that programmatically generates 6 months of realistic historical trading data, complete with fluctuating prices and randomized trade volumes.
When a new developer clones the repo, they should be able to run
npm run seedand instantly have a massive, rich dataset to work with.This solves the "empty state" problem for all frontend chart development.
Requirements
prisma/seed.jsscript file.Traderecords for the XLM/USDC pool.createManybatch insertion and log a success message when the database is fully seeded.