-- 车型参数管理菜单和权限初始化脚本

-- 1. 菜单 SQL
INSERT INTO system_menu(
    name, permission, type, sort, parent_id,
    path, icon, component, status, component_name
)
VALUES (
    '车型参数', '', 2, 4, 5055,
    'vehicle-model', 'car', 'asset/vehicle-model/index', 0, 'VehicleModel'
);

-- 获取刚插入的菜单ID
SET @menuId = LAST_INSERT_ID();

-- 车型参数管理按钮权限
INSERT INTO system_menu(name, permission, type, sort, parent_id, path, icon, component, status)
VALUES
    ('车型参数查询', 'asset:vehicle-model:query', 3, 1, @menuId, '', '', '', 0),
    ('车型参数创建', 'asset:vehicle-model:create', 3, 2, @menuId, '', '', '', 0),
    ('车型参数更新', 'asset:vehicle-model:update', 3, 3, @menuId, '', '', '', 0),
    ('车型参数删除', 'asset:vehicle-model:delete', 3, 4, @menuId, '', '', '', 0),
    ('车型参数导出', 'asset:vehicle-model:export', 3, 5, @menuId, '', '', '', 0);
