SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;

INSERT IGNORE INTO `wfc_system_db`.`sys_menu` VALUES (2033, 'menu.device.alerts.management', 2028, 21, '/device/alerts', 'view.device_alerts', NULL, 1, 0, 'C', '0', '0', '', 'carbon:ai-results-low', 'admin', '2025-06-04 15:35:21', '', '2025-06-04 15:37:11', '', 'device_alerts');
INSERT IGNORE INTO `wfc_system_db`.`sys_menu` VALUES (2034, 'menu.device.access.management', 2028, 22, '/device/access', 'view.device_access', NULL, 1, 0, 'C', '0', '0', NULL, 'carbon:carbon', 'super', '2025-06-04 15:40:48', '', NULL, '', 'device_access');

INSERT IGNORE INTO `wfc_system_db`.`sys_role_menu` VALUES (2, 2033);
INSERT IGNORE INTO `wfc_system_db`.`sys_role_menu` VALUES (2, 2034);

ALTER TABLE `wfc_user_db`.`u_bill`
ADD COLUMN `invoice_number` varchar(64) NULL COMMENT '发票编号' AFTER `status`,
ADD COLUMN `invoice_file` varchar(255) NULL COMMENT '发票文件' AFTER `invoice_number`,
ADD COLUMN `invoice_file_path` varchar(500) NULL COMMENT '发票文件路径' AFTER `invoice_file`,
ADD COLUMN `invoice_time` datetime NULL COMMENT '发票时间' AFTER `invoice_file_path`;


ALTER TABLE `wfc_user_db`.`u_account`
ADD COLUMN `package_reminder` tinyint(4) NULL COMMENT '套餐提醒' AFTER `up_limit_enable`,
ADD COLUMN `balance_reminder` tinyint(4) NULL COMMENT '余额提醒' AFTER `package_reminder`;


INSERT IGNORE INTO `wfc_system_db`.`sys_job` (`job_id`, `job_name`, `job_group`, `invoke_target`, `cron_expression`, `misfire_policy`, `concurrent`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (3, 'Reminder Task', 'DEFAULT', 'reminderTask.reminderJob', '0 * * * * ?', '3', '1', '0', 'admin', '2025-06-16 11:26:10', '', NULL, '');

SET FOREIGN_KEY_CHECKS = 1;
