Next.js Discord

Discord Forum

What is common practice to delete and re-enter data?

Unanswered
Australian Freshwater Crocodile posted this in #help-forum
Open in Discord
Australian Freshwater CrocodileOP
Hi All,

I am learning Next and taking the intro tutorial.

In terms of setting up a database, it suggest creating a postgres DB and seeding the database using a bunch of seed.js code that enters data via SQL.

Now, I would like to replace say Invoices with Complaints, as an example.

How do people commonly delete data from post gres?

1) Should I do it in vercel itself via a SQL command
2) Should I do it via code in my app
3)How do I replace this code with my own database? const { invoices, customers, revenue, users, } = require('../app/lib/placeholder-data.js');

Thank you for any replies

0 Replies