{
  "id": "shared-expenses",
  "name": "AA 分摊",
  "version": "1.0.0",
  "kind": "utility",
  "description": "记录一笔多人开支，按人数均分到分，自动分配余数。",
  "branding": {
    "icon": "assets/icon.png"
  },
  "categories": [
    "finance",
    "relationships"
  ],
  "tags": [
    "finance",
    "relationships"
  ],
  "localizations": {
    "zh-CN": {
      "displayName": "AA 分摊",
      "description": "记录一笔多人开支，按人数均分到分，自动分配余数。"
    },
    "en": {
      "displayName": "Shared Expense Split",
      "description": "Split group expenses evenly down to the cent and retain the split."
    }
  },
  "ui": {
    "main": "ui/index.html",
    "permissions": [
      "theme",
      "storage"
    ],
    "collections": [
      {
        "name": "splits",
        "title": "AA 分摊",
        "fields": [
          {
            "key": "title",
            "type": "string",
            "required": true
          },
          {
            "key": "amount",
            "type": "number",
            "required": true
          },
          {
            "key": "people",
            "type": "number",
            "required": true
          },
          {
            "key": "payer",
            "type": "string"
          },
          {
            "key": "note",
            "type": "string"
          },
          {
            "key": "status",
            "type": "enum",
            "values": [
              "待结算",
              "已结算"
            ],
            "default": "待结算"
          }
        ]
      }
    ]
  },
  "engines": {
    "xopc": ">=0.0.106 <1.0.0"
  }
}
