{
  "id": "meal-planner",
  "name": "一周菜单",
  "version": "1.0.0",
  "kind": "utility",
  "description": "按日期安排早餐、午餐和晚餐，记下备餐材料。",
  "branding": {
    "icon": "assets/icon.png"
  },
  "categories": [
    "food",
    "home"
  ],
  "tags": [
    "food",
    "home"
  ],
  "localizations": {
    "zh-CN": {
      "displayName": "一周菜单",
      "description": "按日期安排早餐、午餐和晚餐，记下备餐材料。"
    },
    "en": {
      "displayName": "Meal Planner",
      "description": "Plan meals by date and keep prep ingredients beside each dish."
    }
  },
  "ui": {
    "main": "ui/index.html",
    "permissions": [
      "theme",
      "storage"
    ],
    "collections": [
      {
        "name": "meals",
        "title": "一周菜单",
        "fields": [
          {
            "key": "title",
            "type": "string",
            "required": true
          },
          {
            "key": "date",
            "type": "date",
            "required": true
          },
          {
            "key": "slot",
            "type": "enum",
            "values": [
              "早餐",
              "午餐",
              "晚餐",
              "加餐"
            ]
          },
          {
            "key": "note",
            "type": "string"
          },
          {
            "key": "status",
            "type": "enum",
            "values": [
              "待准备",
              "已备餐",
              "已用餐"
            ],
            "default": "待准备"
          }
        ]
      }
    ]
  },
  "engines": {
    "xopc": ">=0.0.106 <1.0.0"
  }
}
