Docs 菜单
Docs 主页
/
MongoDB Atlas
/ /

样本商店数据集

在此页面上

  • 集合
  • 索引
  • 文档样本

sample_supplies 数据库包含来自模拟办公用品公司的数据。该公司跟踪客户信息和销售数据,并在世界各地拥有多家分店。

要了解如何将 Atlas 提供的样本数据加载到集群中,请参阅加载样本数据。

该数据库包含一个名为 sales 的集合。

sample_supplies.sales 集合中的每个文档代表供应公司运营商店的一次销售。每个文档都包含所购买的商品、购买客户的信息以及有关销售的其他一些详细信息。

sample_supplies.sales 集合包含以下索引:

名称
Index
说明
_id_
{ "_id": 1 }
_id 字段的主键索引。
{
"_id": {
"$oid": "5bd761dcae323e45a93ccfe8"
},
"saleDate": {
"$date": {
"$numberLong": "1427144809506"
}
},
"items": [
{
"name": "notepad",
"tags": [
"office",
"writing",
"school"
],
"price": {
"$numberDecimal": "35.29"
},
"quantity": {
"$numberInt": "2"
}
},
{
"name": "pens",
"tags": [
"writing",
"office",
"school",
"stationary"
],
"price": {
"$numberDecimal": "56.12"
},
"quantity": {
"$numberInt": "5"
}
},
{
"name": "envelopes",
"tags": [
"stationary",
"office",
"general"
],
"price": {
"$numberDecimal": "19.95"
},
"quantity": {
"$numberInt": "8"
}
},
{
"name": "binder",
"tags": [
"school",
"general",
"organization"
],
"price": {
"$numberDecimal": "14.16"
},
"quantity": {
"$numberInt": "3"
}
}
],
"storeLocation": "Denver",
"customer": {
"gender": "M",
"age": {
"$numberInt": "42"
},
"email": "cauho@witwuta.sv",
"satisfaction": {
"$numberInt": "4"
}
},
"couponUsed": true,
"purchaseMethod": "Online"
}

后退

restaurants