SET FOREIGN_KEY_CHECKS = 0;

REPLACE
    INTO `sys_config` (
        `config_id`,
        `config_name`,
        `config_key`,
        `config_value`,
        `config_type`,
        `create_by`,
        `create_time`,
        `update_by`,
        `update_time`,
        `remark`
    )
VALUES (
        106,
        'config.sys.title',
        'sys.title',
        'config.sys.titleValue',
        'Y',
        'supervisor',
        1698110000000,
        NULL,
        0,
        'config.sys.titleRemark'
    );

REPLACE
    INTO `sys_config` (
        `config_id`,
        `config_name`,
        `config_key`,
        `config_value`,
        `config_type`,
        `create_by`,
        `create_time`,
        `update_by`,
        `update_time`,
        `remark`
    )
VALUES (
        107,
        'config.sys.copyright',
        'sys.copyright',
        'config.sys.copyrightValue',
        'Y',
        'supervisor',
        1698110000000,
        NULL,
        0,
        'config.sys.copyrightRemark'
    );

REPLACE
    INTO `sys_config` (
        `config_id`,
        `config_name`,
        `config_key`,
        `config_value`,
        `config_type`,
        `create_by`,
        `create_time`,
        `update_by`,
        `update_time`,
        `remark`
    )
VALUES (
        108,
        'config.sys.i18nOpen',
        'sys.i18n.open',
        'true',
        'Y',
        'supervisor',
        1698110000000,
        NULL,
        0,
        'config.sys.i18nOpenRemark'
    );

REPLACE
    INTO `sys_config` (
        `config_id`,
        `config_name`,
        `config_key`,
        `config_value`,
        `config_type`,
        `create_by`,
        `create_time`,
        `update_by`,
        `update_time`,
        `remark`
    )
VALUES (
        109,
        'Internationalization Default Language',
        'sys.i18n.default',
        'en_US',
        'Y',
        'supervisor',
        1698110000000,
        'supervisor',
        1702632906566,
        'config.sys.i18nDefaultRemark'
    );

REPLACE
    INTO `sys_config` (
        `config_id`,
        `config_name`,
        `config_key`,
        `config_value`,
        `config_type`,
        `create_by`,
        `create_time`,
        `update_by`,
        `update_time`,
        `remark`
    )
VALUES (
        6,
        'config.sys.officialUrl',
        'sys.officialUrl',
        'https://www.agrandtech.com',
        'Y',
        'supervisor',
        1698110000000,
        'admin',
        1700809804330,
        'config.sys.officialUrlRemark'
    );

REPLACE
    INTO `sys_dict_data` (
        `dict_code`,
        `dict_sort`,
        `dict_label`,
        `dict_value`,
        `dict_type`,
        `tag_class`,
        `tag_type`,
        `status`,
        `create_by`,
        `create_time`,
        `update_by`,
        `update_time`,
        `remark`
    )
VALUES (
        1660,
        1660,
        'config.sys.titleValue',
        'AGrandEMS',
        'i18n_zh',
        NULL,
        NULL,
        '1',
        'supervisor',
        1699350000000,
        NULL,
        0,
        NULL
    );

REPLACE
    INTO `sys_dict_data` (
        `dict_code`,
        `dict_sort`,
        `dict_label`,
        `dict_value`,
        `dict_type`,
        `tag_class`,
        `tag_type`,
        `status`,
        `create_by`,
        `create_time`,
        `update_by`,
        `update_time`,
        `remark`
    )
VALUES (
        3660,
        3660,
        'config.sys.titleValue',
        'AGrandEMS',
        'i18n_en',
        NULL,
        NULL,
        '1',
        'supervisor',
        1699350000000,
        NULL,
        0,
        NULL
    );

REPLACE
    INTO `sys_dict_data` (
        `dict_code`,
        `dict_sort`,
        `dict_label`,
        `dict_value`,
        `dict_type`,
        `tag_class`,
        `tag_type`,
        `status`,
        `create_by`,
        `create_time`,
        `update_by`,
        `update_time`,
        `remark`
    )
VALUES (
        1661,
        1661,
        'config.sys.copyrightValue',
        'Copyright ©2023 千通科技',
        'i18n_zh',
        NULL,
        NULL,
        '1',
        'supervisor',
        1699350000000,
        NULL,
        0,
        NULL
    );

REPLACE
    INTO `sys_dict_data` (
        `dict_code`,
        `dict_sort`,
        `dict_label`,
        `dict_value`,
        `dict_type`,
        `tag_class`,
        `tag_type`,
        `status`,
        `create_by`,
        `create_time`,
        `update_by`,
        `update_time`,
        `remark`
    )
VALUES (
        3661,
        3661,
        'config.sys.copyrightValue',
        'Copyright ©2023 AGrandTech',
        'i18n_en',
        NULL,
        NULL,
        '1',
        'supervisor',
        1699350000000,
        NULL,
        0,
        NULL
    );

-- set internationalization switching to ON
-- REPLACE
--     INTO `sys_role_menu` (`role_id`, `menu_id`)
-- VALUES (2, 2122);
UPDATE `sys_menu`
SET
    `status` = '1'
WHERE
    `menu_id` = 2122;

SET FOREIGN_KEY_CHECKS = 1;