Question: I need the faker.js code Generate realistic fake data for 1,000 rows each for cats, dogs, exotics, owners, and notes. Use faker.js for most of

I need the faker.js code

Generate realistic fake data for 1,000 rows each for cats, dogs, exotics, owners, and notes. Use faker.js for most of the heavy lifting. Mix up the number of rows in the many to many relationships. 1 owner has 6 cats, and no dogs/exotics. Another has a cat, 2 dogs, and a rat. Another has ... MIX IT UP. You will probably need to do some once only (AKA throw away) code. DO NOT MIX IT IN WITH YOUR NORMAL RUNNING CODE. Keep separate the code for setup, and for sample data, and for normal ongoing operation. Notes should have dates and names in English, but the rest should be Lorem Ipsum. Don't start with the same phrase. Don't have the same length.

Wrong

Note 1: June 6, 2018 | Joe Camel Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Note 2: August 12, 2017 | Djarum Black Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Note 3: May 3, 2017 | Virginia Slims Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Right

Note 1: June 6, 2018 | Joe Camel Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.

Note 2: August 12, 2017 | Djarum Black Anim id est laborum.

Note 3: May 3, 2017 | Virginia Slims Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!