{
  "App": {
    "Seed": {
      "Enabled": false,
      "DefaultTenant": {
        "TenantId": 1000000000001,
        "Code": "demo",
        "Name": "Demo租户",
        "ShortName": "Demo",
        "ContactName": "DemoAdmin",
        "ContactPhone": "13800000000"
      },
      "DictionaryGroups": [
        {
          "Code": "order_status",
          "Name": "订单状态",
          "Scope": "Business",
          "Items": [
            { "Key": "pending", "Value": "待支付", "SortOrder": 10 },
            { "Key": "paid", "Value": "已支付", "SortOrder": 20 },
            { "Key": "finished", "Value": "已完成", "SortOrder": 30 }
          ]
        },
        {
          "Code": "store_tags",
          "Name": "门店标签",
          "Scope": "Business",
          "Items": [
            { "Key": "hot", "Value": "热门", "SortOrder": 10 },
            { "Key": "new", "Value": "新店", "SortOrder": 20 }
          ]
        }
      ],
      "SystemParameters": [
        { "Key": "site_name", "Value": "外卖SaaS Demo", "Description": "演示环境站点名称", "SortOrder": 10, "IsEnabled": true },
        { "Key": "order_auto_cancel_minutes", "Value": "30", "Description": "待支付自动取消时间（分钟）", "SortOrder": 20, "IsEnabled": true }
      ]
    }
  },
  "Identity": {
    "AdminSeed": {
      "Enabled": false,
      "RoleTemplates": [
        {
          "TemplateCode": "platform-admin",
          "Name": "平台管理员",
          "Description": "平台全量权限",
          "IsActive": true,
          "Permissions": [
            "identity:profile:read",
            "identity:role:read",
            "identity:role:create",
            "identity:role:update",
            "identity:role:delete",
            "identity:role:bind-permission",
            "identity:permission:read",
            "identity:permission:create",
            "identity:permission:update",
            "identity:permission:delete",
            "identity:user:read",
            "identity:user:create",
            "identity:user:update",
            "identity:user:delete",
            "identity:user:status",
            "identity:user:reset-password",
            "identity:user:batch",
            "role-template:read",
            "role-template:create",
            "role-template:update",
            "role-template:delete",
            "tenant-bill:read",
            "tenant-bill:create",
            "tenant-bill:pay",
            "tenant-announcement:read",
            "tenant-announcement:create",
            "tenant-announcement:update",
            "tenant-announcement:delete",
            "tenant-announcement:publish",
            "tenant-announcement:revoke",
            "platform-announcement:create",
            "platform-announcement:publish",
            "platform-announcement:revoke",
            "tenant-notification:read",
            "tenant-notification:update",
            "tenant:create",
            "tenant:read",
            "tenant:review",
            "tenant:review:force-claim",
            "tenant:subscription",
            "tenant:quota:check",
            "tenant-package:read",
            "tenant-package:create",
            "tenant-package:update",
            "tenant-package:delete",
            "merchant:create",
            "merchant:read",
            "merchant:update",
            "merchant:delete",
            "merchant:review",
            "merchant_category:read",
            "merchant_category:create",
            "merchant_category:update",
            "merchant_category:delete",
            "store:create",
            "store:read",
            "store:read:all",
            "store:update",
            "store:delete",
            "store-table-area:read",
            "store-table-area:create",
            "store-table-area:update",
            "store-table-area:delete",
            "store-table:read",
            "store-table:create",
            "store-table:update",
            "store-table:delete",
            "store-table:export",
            "store-staff:read",
            "store-staff:create",
            "store-staff:update",
            "store-staff:delete",
            "store-shift:read",
            "store-shift:create",
            "store-shift:update",
            "store-shift:delete",
            "product:create",
            "product:read",
            "product:update",
            "product:delete",
            "product:publish",
            "product-sku:read",
            "product-sku:update",
            "product-attr:read",
            "product-attr:update",
            "product-addon:read",
            "product-addon:update",
            "product-media:read",
            "product-media:update",
            "product-pricing:read",
            "product-pricing:update",
            "order:create",
            "order:read",
            "order:update",
            "order:delete",
            "payment:create",
            "payment:read",
            "payment:update",
            "payment:delete",
            "delivery:create",
            "delivery:read",
            "delivery:update",
            "delivery:delete",
            "dictionary:group:read",
            "dictionary:group:create",
            "dictionary:group:update",
            "dictionary:group:delete",
            "dictionary:item:create",
            "dictionary:item:update",
            "dictionary:item:delete",
            "dictionary:override:read",
            "dictionary:override:update",
            "system-parameter:create",
            "system-parameter:read",
            "system-parameter:update",
            "system-parameter:delete"
          ]
        },
        {
          "TemplateCode": "tenant-admin",
          "Name": "租户管理员",
          "Description": "管理本租户的门店、商品、订单与权限",
          "IsActive": true,
          "Permissions": [
            "identity:profile:read",
            "identity:role:read",
            "identity:role:create",
            "identity:role:update",
            "identity:role:delete",
            "identity:role:bind-permission",
            "identity:permission:read",
            "identity:permission:create",
            "identity:permission:update",
            "identity:permission:delete",
            "identity:user:read",
            "identity:user:create",
            "identity:user:update",
            "identity:user:delete",
            "identity:user:status",
            "identity:user:reset-password",
            "identity:user:batch",
            "tenant-bill:read",
            "tenant-bill:create",
            "tenant-bill:pay",
            "tenant-announcement:read",
            "tenant-announcement:create",
            "tenant-announcement:update",
            "tenant-announcement:delete",
            "tenant-announcement:publish",
            "tenant-announcement:revoke",
            "tenant-notification:read",
            "tenant-notification:update",
            "tenant:read",
            "tenant:subscription",
            "tenant:quota:check",
            "merchant:read",
            "merchant:update",
            "merchant_category:read",
            "merchant_category:create",
            "merchant_category:update",
            "merchant_category:delete",
            "store:create",
            "store:read",
            "store:update",
            "store:delete",
            "store-table-area:read",
            "store-table-area:create",
            "store-table-area:update",
            "store-table-area:delete",
            "store-table:read",
            "store-table:create",
            "store-table:update",
            "store-table:delete",
            "store-table:export",
            "store-staff:read",
            "store-staff:create",
            "store-staff:update",
            "store-staff:delete",
            "store-shift:read",
            "store-shift:create",
            "store-shift:update",
            "store-shift:delete",
            "product:create",
            "product:read",
            "product:update",
            "product:delete",
            "product:publish",
            "product-sku:read",
            "product-sku:update",
            "product-attr:read",
            "product-attr:update",
            "product-addon:read",
            "product-addon:update",
            "product-media:read",
            "product-media:update",
            "product-pricing:read",
            "product-pricing:update",
            "inventory:read",
            "inventory:adjust",
            "inventory:lock",
            "inventory:release",
            "inventory:deduct",
            "inventory:batch:read",
            "inventory:batch:update",
            "inventory:lock:expire",
            "order:create",
            "order:read",
            "order:update",
            "delivery:create",
            "delivery:read",
            "delivery:update",
            "payment:create",
            "payment:read",
            "payment:update",
            "dictionary:group:read",
            "dictionary:group:create",
            "dictionary:group:update",
            "dictionary:group:delete",
            "dictionary:item:create",
            "dictionary:item:update",
            "dictionary:item:delete",
            "dictionary:override:read",
            "dictionary:override:update",
            "system-parameter:read"
          ]
        },
        {
          "TemplateCode": "store-manager",
          "Name": "店长",
          "Description": "负责门店运营与商品、订单管理",
          "IsActive": true,
          "Permissions": [
            "identity:profile:read",
            "store:read",
            "store:update",
            "store-table-area:read",
            "store-table-area:create",
            "store-table-area:update",
            "store-table-area:delete",
            "store-table:read",
            "store-table:create",
            "store-table:update",
            "store-table:export",
            "store-staff:read",
            "store-staff:create",
            "store-staff:update",
            "store-shift:read",
            "store-shift:create",
            "store-shift:update",
            "product:create",
            "product:read",
            "product:update",
            "product:publish",
            "product-sku:read",
            "product-sku:update",
            "product-attr:read",
            "product-attr:update",
            "product-addon:read",
            "product-addon:update",
            "product-media:read",
            "product-media:update",
            "product-pricing:read",
            "product-pricing:update",
            "inventory:read",
            "inventory:adjust",
            "inventory:lock",
            "inventory:release",
            "inventory:deduct",
            "inventory:batch:read",
            "inventory:batch:update",
            "inventory:lock:expire",
            "pickup-setting:read",
            "pickup-setting:update",
            "pickup-slot:read",
            "pickup-slot:create",
            "pickup-slot:update",
            "pickup-slot:delete",
            "order:create",
            "order:read",
            "order:update",
            "delivery:read",
            "delivery:update",
            "payment:read",
            "payment:update",
            "dictionary:group:read",
            "dictionary:item:create",
            "dictionary:item:update",
            "dictionary:item:delete"
          ]
        },
        {
          "TemplateCode": "store-staff",
          "Name": "店员",
          "Description": "处理订单履约与收款查询",
          "IsActive": true,
          "Permissions": [
            "identity:profile:read",
            "store:read",
            "store-table-area:read",
            "store-table:read",
            "store-shift:read",
            "product:read",
            "order:read",
            "order:update",
            "delivery:read",
            "payment:read"
          ]
        }
      ],
      "Users": [
        {
          "Account": "admin",
          "DisplayName": "平台管理员",
          "Password": "Admin@123456",
          "TenantId": 1000000000001,
          "Roles": [ "PlatformAdmin" ],
          "Permissions": [
            "identity:profile:read",
            "identity:role:read",
            "identity:role:create",
            "identity:role:update",
            "identity:role:delete",
            "identity:role:bind-permission",
            "identity:permission:read",
            "identity:permission:create",
            "identity:permission:update",
            "identity:permission:delete",
            "role-template:read",
            "role-template:create",
            "role-template:update",
            "role-template:delete",
            "tenant-bill:read",
            "tenant-bill:create",
            "tenant-bill:pay",
            "tenant-announcement:read",
            "tenant-announcement:create",
            "tenant-announcement:update",
            "tenant-announcement:delete",
            "tenant-announcement:publish",
            "tenant-announcement:revoke",
            "platform-announcement:create",
            "platform-announcement:publish",
            "platform-announcement:revoke",
            "tenant-notification:read",
            "tenant-notification:update",
            "tenant:create",
            "tenant:read",
            "tenant:review",
            "tenant:subscription",
            "tenant:quota:check",
            "tenant-package:read",
            "tenant-package:create",
            "tenant-package:update",
            "tenant-package:delete",
            "merchant:create",
            "merchant:read",
            "merchant:update",
            "merchant:delete",
            "merchant:review",
            "merchant_category:read",
            "merchant_category:create",
            "merchant_category:update",
            "merchant_category:delete",
            "store:create",
            "store:read",
            "store:read:all",
            "store:update",
            "store:delete",
            "product:create",
            "product:read",
            "product:update",
            "product:delete",
            "product:publish",
            "product-sku:read",
            "product-sku:update",
            "product-attr:read",
            "product-attr:update",
            "product-addon:read",
            "product-addon:update",
            "product-media:read",
            "product-media:update",
            "product-pricing:read",
            "product-pricing:update",
            "inventory:read",
            "inventory:adjust",
            "inventory:lock",
            "inventory:release",
            "inventory:deduct",
            "inventory:batch:read",
            "inventory:batch:update",
            "inventory:lock:expire",
            "pickup-setting:read",
            "pickup-setting:update",
            "pickup-slot:read",
            "pickup-slot:create",
            "pickup-slot:update",
            "pickup-slot:delete",
            "order:create",
            "order:read",
            "order:update",
            "order:delete",
            "payment:create",
            "payment:read",
            "payment:update",
            "payment:delete",
            "delivery:create",
            "delivery:read",
            "delivery:update",
            "delivery:delete",
            "dictionary:group:read",
            "dictionary:group:create",
            "dictionary:group:update",
            "dictionary:group:delete",
            "dictionary:item:create",
            "dictionary:item:update",
            "dictionary:item:delete",
            "system-parameter:create",
            "system-parameter:read",
            "system-parameter:update",
            "system-parameter:delete"
          ]
        }
      ]
    }
  }
}
