-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathmulti_collections.json
More file actions
49 lines (49 loc) · 1.35 KB
/
multi_collections.json
File metadata and controls
49 lines (49 loc) · 1.35 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
{
"collections": [
{
"database": "ecommerce",
"collection": "orders",
"fields": {
"order_id": {"type": "int"},
"customer_id": {"type": "int"},
"status": {"type": "string", "enum": ["new", "paid", "shipped", "delivered"]},
"total_amount": {"type": "int"},
"shipping_city": {"type": "string", "provider": "city"},
"is_expedited_shipping": {"type": "bool"},
"items_count": {"type": "int"}
},
"indexes": [
{"keys": {"order_id": 1}},
{"keys": {"customer_id": 1, "status": 1}},
{"keys": {"is_expedited_shipping": 1, "status": 1}}
]
},
{
"database": "ecommerce",
"collection": "customers",
"fields": {
"customer_id": {"type": "int"},
"email": {"type": "string", "provider": "email"},
"region": {"type": "string", "provider": "state"},
"lifetime_value": {"type": "int"}
},
"indexes": [
{"keys": {"customer_id": 1}},
{"keys": {"email": 1}}
]
},
{
"database": "analytics",
"collection": "daily_rollups",
"fields": {
"day": {"type": "string"},
"region": {"type": "string"},
"orders": {"type": "int"},
"revenue": {"type": "int"}
},
"indexes": [
{"keys": {"day": 1, "region": 1}}
]
}
]
}