-- v4.0.11: HQ 角色新增「开发者」(DEVELOPER)
-- 默认权限见 packages/shared-types HQ_ROLE_DEFAULT_PERMISSIONS.DEVELOPER
-- （除 hq_permissions / hq_accounts 外全部；未写入 hq_role_permission 时走代码默认）

ALTER TABLE `hq_account`
  MODIFY COLUMN `admin_role` ENUM(
    'SUPER_ADMIN',
    'OPS',
    'FINANCE',
    'CUSTOMER_SERVICE',
    'CITY_STORE_SERVICE',
    'DEVELOPER'
  ) NOT NULL DEFAULT 'OPS';

ALTER TABLE `hq_role_permission`
  MODIFY COLUMN `admin_role` ENUM(
    'SUPER_ADMIN',
    'OPS',
    'FINANCE',
    'CUSTOMER_SERVICE',
    'CITY_STORE_SERVICE',
    'DEVELOPER'
  ) NOT NULL;
