{
  "id": "travel-bookings",
  "name": "出行预订夹",
  "version": "1.0.0",
  "kind": "utility",
  "description": "集中记录车票、住宿和预订信息，按日期查找。",
  "branding": {
    "icon": "assets/icon.png"
  },
  "categories": [
    "travel",
    "utility"
  ],
  "tags": [
    "travel",
    "utility"
  ],
  "localizations": {
    "zh-CN": {
      "displayName": "出行预订夹",
      "description": "集中记录车票、住宿和预订信息，按日期查找。"
    },
    "en": {
      "displayName": "Trip Bookings",
      "description": "Keep transport, stays, and reservation details together by date."
    }
  },
  "ui": {
    "main": "ui/index.html",
    "permissions": [
      "theme",
      "storage"
    ],
    "collections": [
      {
        "name": "bookings",
        "title": "出行预订夹",
        "fields": [
          {
            "key": "title",
            "type": "string",
            "required": true
          },
          {
            "key": "kind",
            "type": "enum",
            "values": [
              "交通",
              "住宿",
              "门票",
              "其他"
            ]
          },
          {
            "key": "date",
            "type": "date",
            "required": true
          },
          {
            "key": "time",
            "type": "string"
          },
          {
            "key": "reference",
            "type": "string"
          },
          {
            "key": "note",
            "type": "string"
          },
          {
            "key": "status",
            "type": "enum",
            "values": [
              "待确认",
              "已确认",
              "已使用"
            ],
            "default": "待确认"
          }
        ]
      }
    ]
  },
  "engines": {
    "xopc": ">=0.0.106 <1.0.0"
  }
}
