Commit 14e75ca2 authored by esatakpunar's avatar esatakpunar

update db

parent 07f53083
This source diff could not be displayed because it is too large. You can view the blob instead.
const { faker } = require('@faker-js/faker'); const { faker } = require("@faker-js/faker");
const generateVendors = function (itemCount) { const generateVendors = function (itemCount) {
const vendors = [] const vendors = [];
for (let index = 1; index < itemCount; index++) { for (let index = 1; index < itemCount; index++) {
customers.push(newFakedVendor()); vendors.push(newFakedVendor());
} }
return vendors; return vendors;
} };
function newFakedVendor() { function newFakedVendor() {
const firstName = faker.name.firstName(); const firstName = faker.name.firstName();
...@@ -17,14 +17,14 @@ function newFakedVendor() { ...@@ -17,14 +17,14 @@ function newFakedVendor() {
const id = faker.datatype.uuid(); const id = faker.datatype.uuid();
return { return {
"id": id, id: id,
"firstName": firstName, firstName: firstName,
"lastName": lastName, lastName: lastName,
"email": email, email: email,
"country": faker.address.country(), country: faker.address.country(),
"city": faker.address.cityName(), city: faker.address.cityName(),
"image": faker.image.avatar(), image: faker.image.avatar(),
} };
} }
module.exports = generateVendors module.exports = generateVendors;
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment