This repository was archived by the owner on Sep 18, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathecommerce.json
More file actions
50 lines (50 loc) · 1.6 KB
/
Copy pathecommerce.json
File metadata and controls
50 lines (50 loc) · 1.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
[
{
"_meta": {
"topic": "users",
"key": "id",
"relationships": [
{
"topic": "purchases",
"parent_field": "id",
"child_field": "user_id",
"records_per": 4
}
]
},
"id": "faker.datatype.number(1000)",
"name": "faker.internet.userName()",
"email": "faker.internet.exampleEmail()",
"city": "faker.address.city()",
"state": "faker.address.state()",
"zipcode": "faker.address.zipCode()"
},
{
"_meta": {
"topic": "purchases",
"key": "id",
"relationships": [
{
"topic": "items",
"parent_field": "item_ids",
"child_field": "id"
}
]
},
"id": "faker.datatype.uuid()",
"user_id": "this string can be anything since this field is determined by user.id",
"item_ids": "faker.helpers.uniqueArray((()=>{return Math.floor(Math.random()*5000);}), Math.floor(Math.random()*4+1))",
"total": "faker.commerce.price(25, 2500)"
},
{
"_meta": {
"topic": "items",
"key": "id"
},
"id": "this string can be anything since this field is determined by purchases.item_ids",
"name": "faker.commerce.product()",
"price": "faker.commerce.price(5, 500)",
"description": "faker.commerce.productDescription()",
"material": "faker.commerce.productMaterial()"
}
]