CREATE TABLE `cai_account_black`
(
    `id`            bigint unsigned NOT NULL,
    `card_account`  varchar(50)     NOT NULL COMMENT '账户号',
    `card_name`     varchar(50)     NOT NULL COMMENT '账户名称',
    `enable_status` tinyint         NOT NULL DEFAULT '1' COMMENT '是否开启',
    `create_time`   datetime        NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
    PRIMARY KEY (`id`) USING BTREE,
    KEY `idx_account` (`card_account`, `card_name`) USING BTREE
) ENGINE = InnoDB
  DEFAULT CHARSET = utf8mb4
  COLLATE = utf8mb4_general_ci
  ROW_FORMAT = DYNAMIC COMMENT ='账户黑名单';

ALTER TABLE `cai_anchor`
ADD COLUMN `enable_greet` tinyint(1) NOT NULL DEFAULT 1 COMMENT '是否允许群发' AFTER `recommend_status`;

-- 菜单 SQL
insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
values(1819683762522001409, '账户黑名单', '1737668638361206786', '1', 'accountBlack', 'cai/accountBlack/index', 1, 0, 'C', '0', '0', 'cai:accountBlack:list', '#', 'admin', sysdate(), '', null, '账户黑名单菜单');

-- 按钮 SQL
insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
values(1819683762522001410, '账户黑名单查询', 1819683762522001409, '1',  '#', '', 1, 0, 'F', '0', '0', 'cai:accountBlack:query',        '#', 'admin', sysdate(), '', null, '');

insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
values(1819683762522001411, '账户黑名单新增', 1819683762522001409, '2',  '#', '', 1, 0, 'F', '0', '0', 'cai:accountBlack:add',          '#', 'admin', sysdate(), '', null, '');

insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
values(1819683762522001412, '账户黑名单修改', 1819683762522001409, '3',  '#', '', 1, 0, 'F', '0', '0', 'cai:accountBlack:edit',         '#', 'admin', sysdate(), '', null, '');

insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
values(1819683762522001413, '账户黑名单删除', 1819683762522001409, '4',  '#', '', 1, 0, 'F', '0', '0', 'cai:accountBlack:remove',       '#', 'admin', sysdate(), '', null, '');

insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
values(1819683762522001414, '账户黑名单导出', 1819683762522001409, '5',  '#', '', 1, 0, 'F', '0', '0', 'cai:accountBlack:export',       '#', 'admin', sysdate(), '', null, '');
