-- 表 kku_pet_level_configs 的创建SQL

DROP TABLE IF EXISTS `kku_pet_level_configs`;
CREATE TABLE `kku_pet_level_configs` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `pet_id` int unsigned NOT NULL COMMENT '宠物 ID',
  `level` tinyint unsigned NOT NULL COMMENT '等级',
  `exp_required` int unsigned NOT NULL COMMENT '升级所需经验值',
  `skills` json DEFAULT NULL COMMENT '可用技能',
  `display_attributes` json DEFAULT NULL COMMENT '等级显示属性配置',
  `numeric_attributes` json DEFAULT NULL COMMENT '等级数值属性配置',
  `created_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `idx_level` (`level`)
) ENGINE=InnoDB AUTO_INCREMENT=31 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='宠物 等级配置';
