-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfood-tags-database-schema.json
More file actions
261 lines (261 loc) · 5.86 KB
/
food-tags-database-schema.json
File metadata and controls
261 lines (261 loc) · 5.86 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
{
"version": "1.0",
"description": "糖妈日记 - 食物标签数据库",
"createdAt": "2025-12-19",
"foods": [
{
"id": "food_001",
"name": {
"zh": "玄米饭",
"ja": "玄米ご飯",
"en": "Brown Rice"
},
"aliases": ["糙米饭", "玄米", "糙米", "brown rice"],
"category": "主食",
"categoryIcon": "🍚",
"nutrition": {
"carbs": 34,
"protein": 3,
"fat": 1,
"fiber": 2,
"calories": 152,
"unit": "per 100g"
},
"gi": {
"value": 55,
"level": "中GI",
"color": "warning"
},
"carbLevel": {
"value": "中碳水",
"color": "warning",
"recommendation": "适量食用"
},
"tags": [
{
"type": "category",
"label": "主食",
"icon": "🍚",
"color": "#FFB84D"
},
{
"type": "gi",
"label": "中GI",
"icon": "📊",
"color": "#FFA500"
},
{
"type": "carb",
"label": "中碳水",
"icon": "⚠️",
"color": "#FFA500"
}
],
"recommendation": {
"level": "推荐",
"emoji": "✅",
"reason": "比白米饭GI值低,富含膳食纤维",
"tips": "建议每餐控制在100-150g"
},
"imageUrl": "photos/brown-rice.jpg",
"recognitionConfidence": 0.95
},
{
"id": "food_002",
"name": {
"zh": "鸡蛋",
"ja": "卵",
"en": "Egg"
},
"aliases": ["蛋", "鸡蛋", "卵", "egg"],
"category": "蛋白质",
"categoryIcon": "🥚",
"nutrition": {
"carbs": 0.6,
"protein": 13,
"fat": 11,
"fiber": 0,
"calories": 155,
"unit": "per 100g"
},
"gi": {
"value": 30,
"level": "低GI",
"color": "success"
},
"carbLevel": {
"value": "低碳水",
"color": "success",
"recommendation": "推荐食用"
},
"tags": [
{
"type": "category",
"label": "蛋白质",
"icon": "🥚",
"color": "#4CAF50"
},
{
"type": "gi",
"label": "低GI",
"icon": "✅",
"color": "#4CAF50"
},
{
"type": "carb",
"label": "低碳水",
"icon": "✅",
"color": "#4CAF50"
}
],
"recommendation": {
"level": "强烈推荐",
"emoji": "💚",
"reason": "优质蛋白,几乎不含碳水,对血糖影响极小",
"tips": "每天1-2个,建议水煮或蒸"
},
"imageUrl": "photos/egg.jpg",
"recognitionConfidence": 0.98
},
{
"id": "food_003",
"name": {
"zh": "西兰花",
"ja": "ブロッコリー",
"en": "Broccoli"
},
"aliases": ["青花菜", "绿花菜", "西蓝花", "broccoli"],
"category": "蔬菜",
"categoryIcon": "🥬",
"nutrition": {
"carbs": 7,
"protein": 3,
"fat": 0.4,
"fiber": 2.6,
"calories": 34,
"unit": "per 100g"
},
"gi": {
"value": 15,
"level": "低GI",
"color": "success"
},
"carbLevel": {
"value": "低碳水",
"color": "success",
"recommendation": "推荐食用"
},
"tags": [
{
"type": "category",
"label": "蔬菜",
"icon": "🥬",
"color": "#4CAF50"
},
{
"type": "gi",
"label": "低GI",
"icon": "✅",
"color": "#4CAF50"
},
{
"type": "carb",
"label": "低碳水",
"icon": "✅",
"color": "#4CAF50"
}
],
"recommendation": {
"level": "强烈推荐",
"emoji": "💚",
"reason": "富含膳食纤维,有助于延缓血糖上升",
"tips": "建议餐前先吃,每餐150-200g"
},
"imageUrl": "photos/broccoli.jpg",
"recognitionConfidence": 0.92
}
],
"categories": [
{
"id": "staple",
"name": "主食",
"icon": "🍚",
"color": "#FFB84D",
"description": "米饭、面条、面包等碳水化合物主要来源"
},
{
"id": "protein",
"name": "蛋白质",
"icon": "🥩",
"color": "#E57373",
"description": "肉类、蛋类、豆制品等蛋白质来源"
},
{
"id": "vegetable",
"name": "蔬菜",
"icon": "🥬",
"color": "#4CAF50",
"description": "各类蔬菜,富含膳食纤维"
},
{
"id": "fruit",
"name": "水果",
"icon": "🍎",
"color": "#FF6B9D",
"description": "各类水果,注意糖分含量"
},
{
"id": "nuts",
"name": "坚果",
"icon": "🥜",
"color": "#8D6E63",
"description": "坚果、种子类食物"
}
],
"giLevels": [
{
"level": "低GI",
"range": "< 55",
"color": "#4CAF50",
"icon": "✅",
"recommendation": "推荐"
},
{
"level": "中GI",
"range": "55-70",
"color": "#FFA500",
"icon": "⚠️",
"recommendation": "适量"
},
{
"level": "高GI",
"range": "> 70",
"color": "#F44336",
"icon": "❌",
"recommendation": "避免"
}
],
"carbLevels": [
{
"level": "低碳水",
"range": "< 10g/100g",
"color": "#4CAF50",
"icon": "✅",
"recommendation": "推荐"
},
{
"level": "中碳水",
"range": "10-20g/100g",
"color": "#FFA500",
"icon": "⚠️",
"recommendation": "适量"
},
{
"level": "高碳水",
"range": "> 20g/100g",
"color": "#F44336",
"icon": "❌",
"recommendation": "控制"
}
]
}