tables_ddl.sql 44 KB
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722
-- data_report.luxury_brand_config definition
ALTER TABLE data_report.data_process_task ADD period_start date NULL COMMENT '所属周期-开始日期(need_period 类型使用,如 2026-08-01)';
ALTER TABLE data_report.data_process_task ADD period_end date NULL COMMENT '所属周期-结束日期(need_period 类型使用,如 2026-08-31)';

-- Step 1. 新增字段(period_type/week_num)
ALTER TABLE data_process_task
  ADD COLUMN period_type VARCHAR(10) NOT NULL DEFAULT 'month'
    COMMENT '周期粒度:month 按月 / week 按周' AFTER month,
  ADD COLUMN week_num INT NULL
    COMMENT '按周时的周序号 1-5;按月时为 NULL' AFTER period_type;

CREATE TABLE `luxury_brand_config` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `brand_name` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '品牌名称(如 问界/鸿蒙/奔驰/宝马 等)',
  `is_luxury` int(11) NOT NULL COMMENT '是否豪华品牌:1豪华 / 0非豪华',
  `remark` varchar(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '备注',
  `created_at` datetime DEFAULT NULL,
  `updated_at` datetime DEFAULT NULL,
  `is_deleted` int(11) NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `uk_luxury_brand_name` (`brand_name`)
) ENGINE=InnoDB AUTO_INCREMENT=19 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='豪华品牌配置表';

-- data_report.data_process_subtask definition

CREATE TABLE `data_process_subtask` (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键ID',
  `task_id` int(11) NOT NULL COMMENT '主任务ID(关联 data_process_task.id)',
  `output_category` varchar(30) NOT NULL COMMENT '输出类别:warranty=延保 / equity=权益 / inshop=轻改店中店 / park=轻改园区店',
  `status` varchar(20) NOT NULL DEFAULT 'PENDING' COMMENT '子任务状态:PENDING待处理 / PROCESSING处理中 / COMPLETED已完成 / FAILED失败',
  `error_msg` varchar(500) DEFAULT '' COMMENT '失败时的错误信息',
  `row_count` int(11) DEFAULT '0' COMMENT '实际写入行数(处理完成后更新)',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `updated_at` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '最近更新时间',
  `is_deleted` int(11) NOT NULL DEFAULT '0' COMMENT '是否删除:0正常 / 1已删除',
  `deleted_at` datetime DEFAULT NULL COMMENT '删除时间',
  PRIMARY KEY (`id`),
  UNIQUE KEY `uk_subtask_task_category` (`task_id`,`output_category`)
) ENGINE=InnoDB AUTO_INCREMENT=41 DEFAULT CHARSET=utf8mb4 COMMENT='红黄门店盈利测算-子任务表(追踪 4 张输出表的独立处理状态)';

-- data_report.report_equity_service definition

CREATE TABLE `report_equity_service` (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键ID',
  `task_id` int(11) NOT NULL COMMENT '所属任务单据ID',
  `period_start` date DEFAULT NULL COMMENT '统计周期开始日期',
  `period_end` date DEFAULT NULL COMMENT '统计周期结束日期',
  `region_area` varchar(50) DEFAULT '' COMMENT '片区',
  `province` varchar(50) DEFAULT '' COMMENT '省份',
  `city` varchar(50) DEFAULT '' COMMENT '城市',
  `region_manager` varchar(50) DEFAULT '' COMMENT '区域运营',
  `training_supervisor` varchar(50) DEFAULT '' COMMENT '培训督导',
  `biz_manager` varchar(50) DEFAULT '' COMMENT '业务经理',
  `resident_type` varchar(50) DEFAULT '' COMMENT '驻店类型',
  `store_name` varchar(200) DEFAULT '' COMMENT '门店名',
  `brand` varchar(50) DEFAULT '' COMMENT '品牌',
  `delivery_cnt` int(11) DEFAULT '0' COMMENT '交车',
  `touch_cnt` int(11) DEFAULT '0' COMMENT '触客',
  `deal_cnt` int(11) DEFAULT '0' COMMENT '成交数',
  `penetration_rate` decimal(10,6) DEFAULT '0.000000' COMMENT '渗透率',
  `store_output_value` decimal(15,2) DEFAULT '0.00' COMMENT '门店产值',
  `upgrade_unit_price` decimal(15,2) DEFAULT '0.00' COMMENT '升级客单价',
  `product_cost` decimal(15,2) DEFAULT '0.00' COMMENT '商品成本',
  `store_share` decimal(15,2) DEFAULT '0.00' COMMENT '门店分成',
  `guarantee_amount` decimal(15,2) DEFAULT '0.00' COMMENT '兜底金额',
  `gl_share` decimal(15,2) DEFAULT '0.00' COMMENT '广联分成',
  `market_fee` decimal(15,2) DEFAULT '0.00' COMMENT '市场费',
  `market_fee_ratio` decimal(10,6) DEFAULT '0.000000' COMMENT '市场费占比',
  `marketing_fee` decimal(15,2) DEFAULT '0.00' COMMENT '营销费用',
  `marketing_fee_ratio` decimal(10,6) DEFAULT '0.000000' COMMENT '营销费用占比',
  `service_fee` decimal(15,2) DEFAULT '0.00' COMMENT '服务费用',
  `service_fee_ratio` decimal(10,6) DEFAULT '0.000000' COMMENT '服务费用占比',
  `total_cost` decimal(15,2) DEFAULT '0.00' COMMENT '成本总计',
  `cost_ratio` decimal(10,6) DEFAULT '0.000000' COMMENT '成本占比',
  `gross_profit` decimal(15,2) DEFAULT '0.00' COMMENT '毛利测算',
  `gross_profit_rate` decimal(10,6) DEFAULT '0.000000' COMMENT '预估毛利率',
  `gross_profit_status` varchar(20) DEFAULT '' COMMENT '预估毛利情况',
  `gross_profit_rank` int(11) DEFAULT '0' COMMENT '门店毛利排名',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `updated_at` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '最近更新时间',
  `is_deleted` int(11) NOT NULL DEFAULT '0' COMMENT '是否删除:0正常 / 1已删除',
  `deleted_at` datetime DEFAULT NULL COMMENT '删除时间',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=15232 DEFAULT CHARSET=utf8mb4 COMMENT='红黄门店盈利测算-权益表';

-- data_report.report_extended_warranty definition

CREATE TABLE `report_extended_warranty` (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键ID',
  `task_id` int(11) NOT NULL COMMENT '所属任务单据ID',
  `period_start` date DEFAULT NULL COMMENT '统计周期开始日期',
  `period_end` date DEFAULT NULL COMMENT '统计周期结束日期',
  `region_area` varchar(50) DEFAULT '' COMMENT '片区',
  `province` varchar(50) DEFAULT '' COMMENT '省份',
  `city` varchar(50) DEFAULT '' COMMENT '城市',
  `region_manager` varchar(50) DEFAULT '' COMMENT '区域运营',
  `training_supervisor` varchar(50) DEFAULT '' COMMENT '培训督导',
  `biz_manager` varchar(50) DEFAULT '' COMMENT '业务经理',
  `resident_type` varchar(50) DEFAULT '' COMMENT '驻店类型',
  `store_name` varchar(200) DEFAULT '' COMMENT '门店名',
  `brand` varchar(50) DEFAULT '' COMMENT '品牌',
  `delivery_cnt` int(11) DEFAULT '0' COMMENT '交车',
  `touch_cnt` int(11) DEFAULT '0' COMMENT '触客',
  `deal_cnt` int(11) DEFAULT '0' COMMENT '成交数',
  `penetration_rate` decimal(10,6) DEFAULT '0.000000' COMMENT '渗透率',
  `vehicle_warranty_cnt` int(11) DEFAULT '0' COMMENT '整车延保成交数',
  `vehicle_warranty_penetration` decimal(10,6) DEFAULT '0.000000' COMMENT '整车延保渗透率',
  `vehicle_warranty_touch_convert` decimal(10,6) DEFAULT '0.000000' COMMENT '整车延保触客成交率',
  `battery_warranty_cnt` int(11) DEFAULT '0' COMMENT '电池成交数',
  `battery_warranty_penetration` decimal(10,6) DEFAULT '0.000000' COMMENT '电池渗透率',
  `easy_bag_cnt` int(11) DEFAULT '0' COMMENT '安心包成交数',
  `easy_bag_penetration` decimal(10,6) DEFAULT '0.000000' COMMENT '安心包渗透率',
  `store_output_value` decimal(15,2) DEFAULT '0.00' COMMENT '门店产值',
  `upgrade_unit_price` decimal(15,2) DEFAULT '0.00' COMMENT '升级客单价',
  `product_cost` decimal(15,2) DEFAULT '0.00' COMMENT '商品成本',
  `store_share` decimal(15,2) DEFAULT '0.00' COMMENT '门店分成',
  `guarantee_amount` decimal(15,2) DEFAULT '0.00' COMMENT '兜底金额',
  `gl_share` decimal(15,2) DEFAULT '0.00' COMMENT '广联分成',
  `market_fee` decimal(15,2) DEFAULT '0.00' COMMENT '市场费',
  `market_fee_ratio` decimal(10,6) DEFAULT '0.000000' COMMENT '市场费占比',
  `marketing_fee` decimal(15,2) DEFAULT '0.00' COMMENT '营销费用',
  `marketing_fee_ratio` decimal(10,6) DEFAULT '0.000000' COMMENT '营销费用占比',
  `service_fee` decimal(15,2) DEFAULT '0.00' COMMENT '服务费用',
  `service_fee_ratio` decimal(10,6) DEFAULT '0.000000' COMMENT '服务费用占比',
  `total_cost` decimal(15,2) DEFAULT '0.00' COMMENT '成本总计',
  `cost_ratio` decimal(10,6) DEFAULT '0.000000' COMMENT '成本占比',
  `gross_profit` decimal(15,2) DEFAULT '0.00' COMMENT '毛利测算',
  `gross_profit_rate` decimal(10,6) DEFAULT '0.000000' COMMENT '预估毛利率',
  `gross_profit_status` varchar(20) DEFAULT '' COMMENT '预估毛利情况',
  `gross_profit_rank` int(11) DEFAULT '0' COMMENT '门店毛利排名',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `updated_at` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '最近更新时间',
  `is_deleted` int(11) NOT NULL DEFAULT '0' COMMENT '是否删除:0正常 / 1已删除',
  `deleted_at` datetime DEFAULT NULL COMMENT '删除时间',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=43461 DEFAULT CHARSET=utf8mb4 COMMENT='红黄门店盈利测算-延保表';

-- data_report.report_light_reform_inshop definition

CREATE TABLE `report_light_reform_inshop` (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键ID',
  `task_id` int(11) NOT NULL COMMENT '所属任务单据ID',
  `period_start` date DEFAULT NULL COMMENT '统计周期开始日期',
  `period_end` date DEFAULT NULL COMMENT '统计周期结束日期',
  `region_area` varchar(50) DEFAULT '' COMMENT '大区名称',
  `province` varchar(50) DEFAULT '' COMMENT '区域省',
  `city` varchar(50) DEFAULT '' COMMENT '区域市',
  `park_type` varchar(50) DEFAULT '' COMMENT '园区类型',
  `biz_line` varchar(50) DEFAULT '' COMMENT '业务线',
  `operate_type` varchar(50) DEFAULT '' COMMENT '经营属性',
  `region_manager` varchar(50) DEFAULT '' COMMENT '区域经理',
  `park_name` varchar(200) DEFAULT '' COMMENT '园区名称',
  `store_name` varchar(200) DEFAULT '' COMMENT '门店名称',
  `brand` varchar(50) DEFAULT '' COMMENT '品牌(问界/鸿蒙)',
  `brand_category` varchar(50) DEFAULT '' COMMENT '品牌分类(豪华/非豪华)',
  `purchase_indicator` varchar(200) DEFAULT '' COMMENT '采买/兜底指标',
  `sales_order_cnt` int(11) DEFAULT '0' COMMENT '销售大定数',
  `sales_touch_cnt` int(11) DEFAULT '0' COMMENT '销售触客数',
  `sales_touch_rate` decimal(10,6) DEFAULT '0.000000' COMMENT '销售触客率',
  `delivery_cnt` int(11) DEFAULT '0' COMMENT '交车数',
  `delivery_touch_cnt` int(11) DEFAULT '0' COMMENT '交付触客数',
  `delivery_touch_rate` decimal(10,6) DEFAULT '0.000000' COMMENT '交付触客率',
  `aftersales_baohui_cnt` int(11) DEFAULT '0' COMMENT '售后首保回厂数',
  `aftersales_shigu_cnt` int(11) DEFAULT '0' COMMENT '售后事故回厂数',
  `aftersales_touch_cnt` int(11) DEFAULT '0' COMMENT '售后触客数',
  `aftersales_touch_rate` decimal(10,6) DEFAULT '0.000000' COMMENT '售后触客率',
  `total_touch_cnt` int(11) DEFAULT '0' COMMENT '总触客数',
  `total_deal_cnt` int(11) DEFAULT '0' COMMENT '总成交数',
  `window_film_oe_cnt` int(11) DEFAULT '0' COMMENT '窗膜成交数-原厂',
  `window_film_nonoe_cnt` int(11) DEFAULT '0' COMMENT '窗膜成交数-副厂',
  `car_wrap_oe_cnt` int(11) DEFAULT '0' COMMENT '车衣成交数-原厂',
  `car_wrap_nonoe_cnt` int(11) DEFAULT '0' COMMENT '车衣成交数-副厂',
  `premium_oe_cnt` int(11) DEFAULT '0' COMMENT '精品成交数-原厂',
  `premium_nonoe_cnt` int(11) DEFAULT '0' COMMENT '精品成交数-副厂',
  `pedal_cnt` int(11) DEFAULT '0' COMMENT '踏板',
  `store_output_value` decimal(15,2) DEFAULT '0.00' COMMENT '门店总产值',
  `internal_settle_value` decimal(15,2) DEFAULT '0.00' COMMENT '内部结算产值',
  `total_output_value` decimal(15,2) DEFAULT '0.00' COMMENT '合计总产值',
  `oe_output_value` decimal(15,2) DEFAULT '0.00' COMMENT '原厂总产值',
  `nonoe_output_value` decimal(15,2) DEFAULT '0.00' COMMENT '副厂总产值',
  `avg_unit_price_delivery` decimal(15,2) DEFAULT '0.00' COMMENT '平均客单价(交车)',
  `avg_price_target` decimal(15,2) DEFAULT '0.00' COMMENT '平客目标值',
  `avg_price_diff` decimal(15,2) DEFAULT '0.00' COMMENT '平客差值',
  `delivery_touch_unit_price` decimal(15,2) DEFAULT '0.00' COMMENT '交付触客客单价',
  `upgrade_unit_price` decimal(15,2) DEFAULT '0.00' COMMENT '升级客单价',
  `total_penetration_rate` decimal(10,6) DEFAULT '0.000000' COMMENT '总订单渗透率',
  `window_film_penetration` decimal(10,6) DEFAULT '0.000000' COMMENT '窗膜渗透率',
  `car_wrap_penetration` decimal(10,6) DEFAULT '0.000000' COMMENT '车衣渗透率',
  `premium_penetration` decimal(10,6) DEFAULT '0.000000' COMMENT '精品渗透率',
  `product_cost_finance` decimal(15,2) DEFAULT '0.00' COMMENT '产品成本(财务列表)',
  `internal_settle_cost` decimal(15,2) DEFAULT '0.00' COMMENT '内部结算成本(财务列表)',
  `oe_product_cost` decimal(15,2) DEFAULT '0.00' COMMENT '原厂产品成本(财务列表)',
  `nonoe_product_cost` decimal(15,2) DEFAULT '0.00' COMMENT '副厂产品成本(财务列表)',
  `window_film_cost` decimal(15,2) DEFAULT '0.00' COMMENT '窗膜成本',
  `car_wrap_cost` decimal(15,2) DEFAULT '0.00' COMMENT '车衣成本',
  `premium_cost` decimal(15,2) DEFAULT '0.00' COMMENT '精品成本',
  `product_cost_ratio` decimal(10,6) DEFAULT '0.000000' COMMENT '产品总成本占比',
  `construction_cost` decimal(15,2) DEFAULT '0.00' COMMENT '施工成本',
  `construction_cost_oe` decimal(15,2) DEFAULT '0.00' COMMENT '原厂施工成本',
  `construction_cost_nonoe` decimal(15,2) DEFAULT '0.00' COMMENT '副厂施工成本',
  `construction_cost_post` decimal(15,2) DEFAULT '0.00' COMMENT '后置施工成本(直营按商务政策, 服务商=0)',
  `construction_cost_post_ratio` decimal(10,6) DEFAULT '0.000000' COMMENT '后置施工成本占比(post/门店总产值)',
  `construction_cost_ratio` decimal(10,6) DEFAULT '0.000000' COMMENT '施工成本占比',
  `frontline_incentive` decimal(15,2) DEFAULT '0.00' COMMENT '一线激励',
  `frontline_incentive_ratio` decimal(10,6) DEFAULT '0.000000' COMMENT '一线激励占比',
  `gross_profit_pre_share` decimal(15,2) DEFAULT '0.00' COMMENT '进销差(未分成)',
  `gross_profit_pre_share_ratio` decimal(10,6) DEFAULT '0.000000' COMMENT '进销差占比',
  `store_share` decimal(15,2) DEFAULT '0.00' COMMENT '门店分成',
  `store_share_ratio` decimal(10,6) DEFAULT '0.000000' COMMENT '门店分成占比',
  `store_share_per_car` decimal(15,2) DEFAULT '0.00' COMMENT '门店单车利润',
  `guarantee_amount` decimal(15,2) DEFAULT '0.00' COMMENT '兜底金额',
  `gl_share` decimal(15,2) DEFAULT '0.00' COMMENT '广联分成',
  `gl_share_ratio` decimal(10,6) DEFAULT '0.000000' COMMENT '广联分成占比',
  `construction_income` decimal(15,2) DEFAULT '0.00' COMMENT '施工收入',
  `internal_settle_profit` decimal(15,2) DEFAULT '0.00' COMMENT '内部结算',
  `gl_total_share` decimal(15,2) DEFAULT '0.00' COMMENT '广联总分成',
  `marketing_personnel_cost` decimal(15,2) DEFAULT '0.00' COMMENT '营销人员成本',
  `marketing_personnel_ratio` decimal(10,6) DEFAULT '0.000000' COMMENT '营销人员成本占比',
  `market_fee` decimal(15,2) DEFAULT '0.00' COMMENT '市场费',
  `market_fee_ratio` decimal(10,6) DEFAULT '0.000000' COMMENT '市场费占比',
  `renovation_amortization` decimal(15,2) DEFAULT '0.00' COMMENT '装修分摊',
  `rent_utilities` decimal(15,2) DEFAULT '0.00' COMMENT '房租、水电费用',
  `store_consumables` decimal(15,2) DEFAULT '0.00' COMMENT '门店耗材',
  `service_provider_share` decimal(15,2) DEFAULT '0.00' COMMENT '服务商分成',
  `service_provider_share_ratio` decimal(10,6) DEFAULT '0.000000' COMMENT '服务商分成占比',
  `total_cost` decimal(15,2) DEFAULT '0.00' COMMENT '成本总计',
  `cost_ratio` decimal(10,6) DEFAULT '0.000000' COMMENT '总计占比',
  `gross_profit` decimal(15,2) DEFAULT '0.00' COMMENT '毛利测算',
  `gross_profit_rate` decimal(10,6) DEFAULT '0.000000' COMMENT '毛利率',
  `gross_profit_status` varchar(20) DEFAULT '' COMMENT '毛利情况',
  `gross_profit_rank` int(11) DEFAULT '0' COMMENT '门店毛利排名',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `updated_at` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '最近更新时间',
  `is_deleted` int(11) NOT NULL DEFAULT '0' COMMENT '是否删除:0正常 / 1已删除',
  `deleted_at` datetime DEFAULT NULL COMMENT '删除时间',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4673 DEFAULT CHARSET=utf8mb4 COMMENT='红黄门店盈利测算-轻改店中店汇总表';

-- data_report.report_light_reform_park definition

CREATE TABLE `report_light_reform_park` (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键ID',
  `task_id` int(11) NOT NULL COMMENT '所属任务单据ID',
  `period_start` date DEFAULT NULL COMMENT '统计周期开始日期',
  `period_end` date DEFAULT NULL COMMENT '统计周期结束日期',
  `region_area` varchar(50) DEFAULT '' COMMENT '大区名称',
  `province` varchar(50) DEFAULT '' COMMENT '区域省',
  `city` varchar(50) DEFAULT '' COMMENT '区域市',
  `park_type` varchar(50) DEFAULT '' COMMENT '园区类型',
  `operate_type` varchar(50) DEFAULT '' COMMENT '经营属性',
  `partner_store_cnt` int(11) DEFAULT '0' COMMENT '合作门店数量',
  `region_manager` varchar(50) DEFAULT '' COMMENT '区域经理',
  `park_name` varchar(200) DEFAULT '' COMMENT '园区名称',
  `store_name` varchar(200) DEFAULT '' COMMENT '门店名称',
  `brand` varchar(50) DEFAULT '' COMMENT '品牌',
  `biz_type` varchar(50) DEFAULT '' COMMENT '类型',
  `purchase_indicator` varchar(200) DEFAULT '' COMMENT '采买/兜底指标(流量费)',
  `delivery_cnt` int(11) DEFAULT '0' COMMENT '交车数',
  `arrival_cnt` int(11) DEFAULT '0' COMMENT '到店数',
  `arrival_invalid_cnt` int(11) DEFAULT '0' COMMENT '到店无效客户数',
  `invalid_arrival_rate` decimal(10,6) DEFAULT '0.000000' COMMENT '无效到店率',
  `arrival_rate` decimal(10,6) DEFAULT '0.000000' COMMENT '到店率',
  `deal_cnt` int(11) DEFAULT '0' COMMENT '成交数',
  `conversion_rate` decimal(10,6) DEFAULT '0.000000' COMMENT '转化率',
  `store_sales_output` decimal(15,2) DEFAULT '0.00' COMMENT '门店销售产值',
  `internal_settle_value` decimal(15,2) DEFAULT '0.00' COMMENT '内部结算产值',
  `total_output_value` decimal(15,2) DEFAULT '0.00' COMMENT '合计总产值',
  `output_progress` decimal(10,6) DEFAULT '0.000000' COMMENT '产值达成进度',
  `avg_unit_price_arrival` decimal(15,2) DEFAULT '0.00' COMMENT '平均客单价(到店)',
  `avg_price_target` decimal(15,2) DEFAULT '0.00' COMMENT '平客目标值',
  `avg_price_diff` decimal(15,2) DEFAULT '0.00' COMMENT '平客差值',
  `upgrade_unit_price` decimal(15,2) DEFAULT '0.00' COMMENT '升级客单价',
  `window_film_cnt` int(11) DEFAULT '0' COMMENT '窗膜成交数',
  `window_film_convert` decimal(10,6) DEFAULT '0.000000' COMMENT '窗膜转化率',
  `car_wrap_cnt` int(11) DEFAULT '0' COMMENT '车衣成交数',
  `car_wrap_convert` decimal(10,6) DEFAULT '0.000000' COMMENT '车衣转化率',
  `premium_cnt` int(11) DEFAULT '0' COMMENT '精品成交数',
  `premium_convert` decimal(10,6) DEFAULT '0.000000' COMMENT '精品转化率',
  `est_traffic` int(11) DEFAULT '0' COMMENT '商务上架预估流量',
  `est_delivery_cnt` int(11) DEFAULT '0' COMMENT '预估交车数',
  `est_output_value` decimal(15,2) DEFAULT '0.00' COMMENT '预估总产值(预算目标)',
  `product_cost_finance` decimal(15,2) DEFAULT '0.00' COMMENT '产品成本(财务列表)',
  `product_cost_ratio` decimal(10,6) DEFAULT '0.000000' COMMENT '产品成本占比',
  `internal_settle_cost` decimal(15,2) DEFAULT '0.00' COMMENT '内部结算成本(财务列表)',
  `traffic_fee_finance` decimal(15,2) DEFAULT '0.00' COMMENT '流量费(财务列表)',
  `traffic_fee_per_car` decimal(15,2) DEFAULT '0.00' COMMENT '按单台计算流量/台',
  `traffic_fee_order` decimal(15,2) DEFAULT '0.00' COMMENT '按台次计算流量费',
  `store_traffic_fee` decimal(15,2) DEFAULT '0.00' COMMENT '门店流量费',
  `traffic_fee_ratio` decimal(10,6) DEFAULT '0.000000' COMMENT '流量费率(列表测算)',
  `gl_share` decimal(15,2) DEFAULT '0.00' COMMENT '广联分成',
  `gl_share_ratio` decimal(10,6) DEFAULT '0.000000' COMMENT '广联分成占比',
  `internal_settle_profit` decimal(15,2) DEFAULT '0.00' COMMENT '内部结算',
  `gl_total_share` decimal(15,2) DEFAULT '0.00' COMMENT '广联总分成',
  `personnel_cost` decimal(15,2) DEFAULT '0.00' COMMENT '人员成本',
  `personnel_cost_ratio` decimal(10,6) DEFAULT '0.000000' COMMENT '常规人员费率(加权参考)',
  `construction_cost` decimal(15,2) DEFAULT '0.00' COMMENT '施工成本',
  `construction_cost_ratio` decimal(10,6) DEFAULT '0.000000' COMMENT '施工成本占比',
  `market_fee_weighted` decimal(15,2) DEFAULT '0.00' COMMENT '市场费(加权测算)',
  `market_fee_weighted_ratio` decimal(10,6) DEFAULT '0.000000' COMMENT '市场费费率(加权参考)',
  `service_fee` decimal(15,2) DEFAULT '0.00' COMMENT '服务费(商务报表)',
  `service_fee_ratio` decimal(10,6) DEFAULT '0.000000' COMMENT '服务费费率(加权参考)',
  `renovation_amortization` decimal(15,2) DEFAULT '0.00' COMMENT '装修分摊(商务报表)',
  `renovation_ratio` decimal(10,6) DEFAULT '0.000000' COMMENT '装修占比',
  `rent_utilities` decimal(15,2) DEFAULT '0.00' COMMENT '房租、水电费用',
  `rent_utilities_ratio` decimal(10,6) DEFAULT '0.000000' COMMENT '房租、水电占比',
  `store_consumables` decimal(15,2) DEFAULT '0.00' COMMENT '门店耗材',
  `store_consumables_ratio` decimal(10,6) DEFAULT '0.000000' COMMENT '门店耗材占比',
  `total_cost` decimal(15,2) DEFAULT '0.00' COMMENT '成本总计',
  `cost_ratio` decimal(10,6) DEFAULT '0.000000' COMMENT '总计占比',
  `gross_profit` decimal(15,2) DEFAULT '0.00' COMMENT '毛利测算',
  `gross_profit_rate` decimal(10,6) DEFAULT '0.000000' COMMENT '毛利率',
  `gross_profit_status` varchar(20) DEFAULT '' COMMENT '毛利情况',
  `gross_profit_rank` int(11) DEFAULT '0' COMMENT '门店毛利排名',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `updated_at` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '最近更新时间',
  `is_deleted` int(11) NOT NULL DEFAULT '0' COMMENT '是否删除:0正常 / 1已删除',
  `deleted_at` datetime DEFAULT NULL COMMENT '删除时间',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2081 DEFAULT CHARSET=utf8mb4 COMMENT='红黄门店盈利测算-轻改园区店汇总表';

-- data_report.report_store_effect_summary definition

CREATE TABLE `report_store_effect_summary` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `task_id` int(11) NOT NULL COMMENT '所属任务单据ID',
  `stat_month` varchar(7) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '统计月份 YYYY-MM',
  `period_start` date DEFAULT NULL COMMENT '统计周期开始',
  `period_end` date DEFAULT NULL COMMENT '统计周期结束',
  `store_count` int(11) DEFAULT NULL COMMENT '门店数(跨业务类型去重)',
  `delivery_total` int(11) DEFAULT NULL COMMENT '交车数合计',
  `touch_total` int(11) DEFAULT NULL COMMENT '触客数合计',
  `deal_total` int(11) DEFAULT NULL COMMENT '成交数合计',
  `output_value_total` decimal(15,2) DEFAULT NULL COMMENT '产值合计',
  `cost_total` decimal(15,2) DEFAULT NULL COMMENT '成本合计',
  `gross_profit_total` decimal(15,2) DEFAULT NULL COMMENT '毛利合计',
  `gross_profit_rate` decimal(10,6) DEFAULT NULL COMMENT '毛利率',
  `labor_cost_total` decimal(15,2) DEFAULT NULL COMMENT '人力成本合计',
  `headcount_total` int(11) DEFAULT NULL COMMENT '人员数合计',
  `per_capita_output` decimal(15,2) DEFAULT NULL COMMENT '人均产值',
  `per_capita_profit` decimal(15,2) DEFAULT NULL COMMENT '人均毛利',
  `created_at` datetime DEFAULT NULL,
  `updated_at` datetime DEFAULT NULL,
  `is_deleted` int(11) NOT NULL,
  `deleted_at` datetime DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `uk_store_effect_summary_task_period` (`task_id`,`period_start`,`period_end`)
) ENGINE=InnoDB AUTO_INCREMENT=318 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='门店店效人效汇总表(整体合计)';

-- data_report.saas_business_achievement definition

CREATE TABLE `saas_business_achievement` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '自增主键',
  `task_id` int(11) NOT NULL COMMENT '所属任务单据ID',
  `stat_month` char(7) NOT NULL COMMENT '统计月份,格式 YYYY-MM,如 2026-09',
  `start_date` char(10) NOT NULL COMMENT '统计周期开始时间,如 2026-09-01',
  `end_date` char(10) NOT NULL COMMENT '统计周期结束时间,如 2026-09-15',
  `business_type` varchar(20) NOT NULL COMMENT '业务类型:2.1+2.3 或 1.1',
  `manager` varchar(50) DEFAULT NULL COMMENT '大区经理(B列)',
  `region_operator` varchar(50) NOT NULL COMMENT '区域运营负责人(B列)',
  `online_operator` varchar(50) DEFAULT NULL COMMENT '线上运营(D列)',
  `operated_stores` int(10) unsigned DEFAULT '0' COMMENT '运营门店数(E列)',
  `direct_stores` int(10) unsigned DEFAULT '0' COMMENT '直营门店数(F列)',
  `daily_new_gmv` decimal(15,2) DEFAULT '0.00' COMMENT '当日新增 GMV(G列)',
  `existing_budget` decimal(15,2) DEFAULT '0.00' COMMENT '存量门店预算(H列)',
  `existing_actual` decimal(15,2) DEFAULT '0.00' COMMENT '存量门店实际达成(I列)',
  `existing_rate` decimal(5,2) DEFAULT '0.00' COMMENT '存量目标达成率(%)(J列)',
  `new_budget` decimal(15,2) DEFAULT '0.00' COMMENT '新店预算(K列)',
  `new_actual` decimal(15,2) DEFAULT '0.00' COMMENT '新店实际达成(L列)',
  `new_rate` decimal(5,2) DEFAULT '0.00' COMMENT '新店目标达成率(%)(M列)',
  `total_actual_gmv` decimal(15,2) DEFAULT '0.00' COMMENT '实际达成 GMV 合计(存量+新店)(N列)',
  `total_rate` decimal(5,2) DEFAULT '0.00' COMMENT '总预算达成率(%)(O列)',
  `created_at` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '记录创建时间',
  `updated_at` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '记录更新时间',
  PRIMARY KEY (`id`),
  KEY `idx_stat_month` (`stat_month`),
  KEY `idx_business_type` (`business_type`),
  KEY `idx_region_operator` (`region_operator`)
) ENGINE=InnoDB AUTO_INCREMENT=913 DEFAULT CHARSET=utf8mb4 COMMENT='产值达成表';

-- data_report.config_brand_category2 definition

CREATE TABLE `config_brand_category2` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `brand` varchar(200) NOT NULL COMMENT '品牌',
  `category` varchar(50) NOT NULL DEFAULT '' COMMENT '品牌区分(如 豪华/非豪华)',
  `create_time` datetime DEFAULT CURRENT_TIMESTAMP,
  `update_time` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `uq_brand` (`brand`(191))
) ENGINE=InnoDB AUTO_INCREMENT=19 DEFAULT CHARSET=utf8mb4 COMMENT='豪华品牌配置表';

-- data_report.config_brand_category definition

CREATE TABLE `config_brand_category` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `brand` varchar(200) NOT NULL COMMENT '品牌',
  `category` varchar(50) NOT NULL DEFAULT '' COMMENT '品牌区分(如 豪华/非豪华)',
  `create_time` datetime DEFAULT CURRENT_TIMESTAMP,
  `update_time` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  UNIQUE KEY `uq_brand` (`brand`(191))
) ENGINE=InnoDB AUTO_INCREMENT=103 DEFAULT CHARSET=utf8mb4 COMMENT='豪华品牌配置表';


INSERT INTO luxury_brand_config
(id, brand_name, is_luxury, remark, created_at, updated_at, is_deleted)
VALUES(1, 'AITO', 1, '豪华品牌', NULL, NULL, 0);
INSERT INTO luxury_brand_config
(id, brand_name, is_luxury, remark, created_at, updated_at, is_deleted)
VALUES(2, '鸿蒙智行', 1, '豪华品牌', NULL, NULL, 0);
INSERT INTO luxury_brand_config
(id, brand_name, is_luxury, remark, created_at, updated_at, is_deleted)
VALUES(3, '奥迪', 1, '豪华品牌', NULL, NULL, 0);
INSERT INTO luxury_brand_config
(id, brand_name, is_luxury, remark, created_at, updated_at, is_deleted)
VALUES(4, '腾势', 1, '豪华品牌', NULL, NULL, 0);
INSERT INTO luxury_brand_config
(id, brand_name, is_luxury, remark, created_at, updated_at, is_deleted)
VALUES(5, '奔驰', 1, '豪华品牌', NULL, NULL, 0);
INSERT INTO luxury_brand_config
(id, brand_name, is_luxury, remark, created_at, updated_at, is_deleted)
VALUES(6, '领克', 1, '豪华品牌', NULL, NULL, 0);
INSERT INTO luxury_brand_config
(id, brand_name, is_luxury, remark, created_at, updated_at, is_deleted)
VALUES(7, 'AITO&鸿蒙', 1, '豪华品牌', NULL, NULL, 0);
INSERT INTO luxury_brand_config
(id, brand_name, is_luxury, remark, created_at, updated_at, is_deleted)
VALUES(8, '宝马mini', 1, '豪华品牌', NULL, NULL, 0);
INSERT INTO luxury_brand_config
(id, brand_name, is_luxury, remark, created_at, updated_at, is_deleted)
VALUES(9, '鸿蒙', 1, '豪华品牌', NULL, NULL, 0);
INSERT INTO luxury_brand_config
(id, brand_name, is_luxury, remark, created_at, updated_at, is_deleted)
VALUES(10, '问界&鸿蒙', 1, '豪华品牌', NULL, NULL, 0);
INSERT INTO luxury_brand_config
(id, brand_name, is_luxury, remark, created_at, updated_at, is_deleted)
VALUES(11, '问界', 1, '豪华品牌', NULL, NULL, 0);
INSERT INTO luxury_brand_config
(id, brand_name, is_luxury, remark, created_at, updated_at, is_deleted)
VALUES(12, '腾势汽车', 1, '豪华品牌', NULL, NULL, 0);
INSERT INTO luxury_brand_config
(id, brand_name, is_luxury, remark, created_at, updated_at, is_deleted)
VALUES(13, '红旗', 1, '豪华品牌', NULL, NULL, 0);
INSERT INTO luxury_brand_config
(id, brand_name, is_luxury, remark, created_at, updated_at, is_deleted)
VALUES(14, '奔驰smart', 1, '豪华品牌', NULL, NULL, 0);
INSERT INTO luxury_brand_config
(id, brand_name, is_luxury, remark, created_at, updated_at, is_deleted)
VALUES(15, '凯迪拉克', 1, '豪华品牌', NULL, NULL, 0);
INSERT INTO luxury_brand_config
(id, brand_name, is_luxury, remark, created_at, updated_at, is_deleted)
VALUES(16, '尚界&问界', 1, '豪华品牌', NULL, NULL, 0);
INSERT INTO luxury_brand_config
(id, brand_name, is_luxury, remark, created_at, updated_at, is_deleted)
VALUES(17, 'AITO&鸿蒙智行', 1, '豪华品牌', NULL, NULL, 0);
INSERT INTO luxury_brand_config
(id, brand_name, is_luxury, remark, created_at, updated_at, is_deleted)
VALUES(18, 'Smart', 1, '豪华品牌', NULL, NULL, 0);

INSERT INTO config_brand_category2
(id, brand, category, create_time, update_time)
VALUES(1, 'AITO', '豪华', '2026-09-03 11:53:39', '2026-09-03 11:53:39');
INSERT INTO config_brand_category2
(id, brand, category, create_time, update_time)
VALUES(2, '鸿蒙智行', '豪华', '2026-09-03 11:53:39', '2026-09-03 11:53:39');
INSERT INTO config_brand_category2
(id, brand, category, create_time, update_time)
VALUES(3, '奥迪', '豪华', '2026-09-03 11:53:39', '2026-09-03 11:53:39');
INSERT INTO config_brand_category2
(id, brand, category, create_time, update_time)
VALUES(4, '腾势', '豪华', '2026-09-03 11:53:39', '2026-09-03 11:53:39');
INSERT INTO config_brand_category2
(id, brand, category, create_time, update_time)
VALUES(5, '奔驰', '豪华', '2026-09-03 11:53:39', '2026-09-03 11:53:39');
INSERT INTO config_brand_category2
(id, brand, category, create_time, update_time)
VALUES(6, '领克', '豪华', '2026-09-03 11:53:39', '2026-09-03 11:53:39');
INSERT INTO config_brand_category2
(id, brand, category, create_time, update_time)
VALUES(7, 'AITO&鸿蒙', '豪华', '2026-09-03 11:53:39', '2026-09-03 11:53:39');
INSERT INTO config_brand_category2
(id, brand, category, create_time, update_time)
VALUES(8, '宝马mini', '豪华', '2026-09-03 11:53:39', '2026-09-03 11:53:39');
INSERT INTO config_brand_category2
(id, brand, category, create_time, update_time)
VALUES(9, '鸿蒙', '豪华', '2026-09-03 11:53:39', '2026-09-03 11:53:39');
INSERT INTO config_brand_category2
(id, brand, category, create_time, update_time)
VALUES(10, '问界&鸿蒙', '豪华', '2026-09-03 11:53:39', '2026-09-03 11:53:39');
INSERT INTO config_brand_category2
(id, brand, category, create_time, update_time)
VALUES(11, '问界', '豪华', '2026-09-03 11:53:39', '2026-09-03 11:53:39');
INSERT INTO config_brand_category2
(id, brand, category, create_time, update_time)
VALUES(12, '腾势汽车', '豪华', '2026-09-03 11:53:39', '2026-09-03 11:53:39');
INSERT INTO config_brand_category2
(id, brand, category, create_time, update_time)
VALUES(13, '红旗', '豪华', '2026-09-03 11:53:39', '2026-09-03 11:53:39');
INSERT INTO config_brand_category2
(id, brand, category, create_time, update_time)
VALUES(14, '奔驰smart', '豪华', '2026-09-03 11:53:39', '2026-09-03 11:53:39');
INSERT INTO config_brand_category2
(id, brand, category, create_time, update_time)
VALUES(15, '凯迪拉克', '豪华', '2026-09-03 11:53:39', '2026-09-03 11:53:39');
INSERT INTO config_brand_category2
(id, brand, category, create_time, update_time)
VALUES(16, '尚界&问界', '豪华', '2026-09-03 11:53:39', '2026-09-03 11:53:39');
INSERT INTO config_brand_category2
(id, brand, category, create_time, update_time)
VALUES(17, 'AITO&鸿蒙智行', '豪华', '2026-09-03 11:53:39', '2026-09-03 11:53:39');
INSERT INTO config_brand_category2
(id, brand, category, create_time, update_time)
VALUES(18, 'Smart', '豪华', '2026-09-03 11:53:39', '2026-09-03 11:53:39');


INSERT INTO config_brand_category
(id, brand, category, create_time, update_time)
VALUES(33, 'AITO&鸿蒙智行', '豪华', '2026-09-08 09:56:53', '2026-09-08 09:56:53');
INSERT INTO config_brand_category
(id, brand, category, create_time, update_time)
VALUES(34, '鸿蒙智行', '豪华', '2026-09-08 09:56:53', '2026-09-08 09:56:53');
INSERT INTO config_brand_category
(id, brand, category, create_time, update_time)
VALUES(35, '北汽极狐', '豪华', '2026-09-08 09:56:53', '2026-09-08 09:56:53');
INSERT INTO config_brand_category
(id, brand, category, create_time, update_time)
VALUES(36, 'AITO', '豪华', '2026-09-08 09:56:53', '2026-09-08 09:56:53');
INSERT INTO config_brand_category
(id, brand, category, create_time, update_time)
VALUES(37, '极氪', '豪华', '2026-09-08 09:56:53', '2026-09-08 09:56:53');
INSERT INTO config_brand_category
(id, brand, category, create_time, update_time)
VALUES(38, '鸿蒙智行(含尚界)', '豪华', '2026-09-08 09:56:53', '2026-09-08 09:56:53');
INSERT INTO config_brand_category
(id, brand, category, create_time, update_time)
VALUES(39, '岚图', '豪华', '2026-09-08 09:56:53', '2026-09-08 09:56:53');
INSERT INTO config_brand_category
(id, brand, category, create_time, update_time)
VALUES(40, '奔驰', '豪华', '2026-09-08 09:56:53', '2026-09-08 09:56:53');
INSERT INTO config_brand_category
(id, brand, category, create_time, update_time)
VALUES(41, '极狐', '豪华', '2026-09-08 09:56:53', '2026-09-08 09:56:53');
INSERT INTO config_brand_category
(id, brand, category, create_time, update_time)
VALUES(42, '鸿蒙+尚界', '豪华', '2026-09-08 09:56:53', '2026-09-08 09:56:53');
INSERT INTO config_brand_category
(id, brand, category, create_time, update_time)
VALUES(43, '阿维塔', '豪华', '2026-09-08 09:56:53', '2026-09-08 09:56:53');
INSERT INTO config_brand_category
(id, brand, category, create_time, update_time)
VALUES(44, '尚界', '豪华', '2026-09-08 09:56:53', '2026-09-08 09:56:53');
INSERT INTO config_brand_category
(id, brand, category, create_time, update_time)
VALUES(45, '东风奕派', '豪华', '2026-09-08 09:56:53', '2026-09-08 09:56:53');
INSERT INTO config_brand_category
(id, brand, category, create_time, update_time)
VALUES(46, '奇瑞icar', '豪华', '2026-09-08 09:56:53', '2026-09-08 09:56:53');
INSERT INTO config_brand_category
(id, brand, category, create_time, update_time)
VALUES(47, '广汽丰田', '豪华', '2026-09-08 09:56:53', '2026-09-08 09:56:53');
INSERT INTO config_brand_category
(id, brand, category, create_time, update_time)
VALUES(48, '领克', '豪华', '2026-09-08 09:56:53', '2026-09-08 09:56:53');
INSERT INTO config_brand_category
(id, brand, category, create_time, update_time)
VALUES(49, '长安', '豪华', '2026-09-08 09:56:53', '2026-09-08 09:56:53');
INSERT INTO config_brand_category
(id, brand, category, create_time, update_time)
VALUES(50, '东风岚图', '豪华', '2026-09-08 09:56:53', '2026-09-08 09:56:53');
INSERT INTO config_brand_category
(id, brand, category, create_time, update_time)
VALUES(51, '奇瑞', '豪华', '2026-09-08 09:56:53', '2026-09-08 09:56:53');
INSERT INTO config_brand_category
(id, brand, category, create_time, update_time)
VALUES(52, '零跑', '豪华', '2026-09-08 09:56:53', '2026-09-08 09:56:53');
INSERT INTO config_brand_category
(id, brand, category, create_time, update_time)
VALUES(53, '腾势', '豪华', '2026-09-08 09:56:53', '2026-09-08 09:56:53');
INSERT INTO config_brand_category
(id, brand, category, create_time, update_time)
VALUES(54, '奥迪', '豪华', '2026-09-08 09:56:53', '2026-09-08 09:56:53');
INSERT INTO config_brand_category
(id, brand, category, create_time, update_time)
VALUES(55, '大众', '豪华', '2026-09-08 09:56:53', '2026-09-08 09:56:53');
INSERT INTO config_brand_category
(id, brand, category, create_time, update_time)
VALUES(56, '鸿蒙-尚界', '豪华', '2026-09-08 09:56:53', '2026-09-08 09:56:53');
INSERT INTO config_brand_category
(id, brand, category, create_time, update_time)
VALUES(57, '东本', '豪华', '2026-09-08 09:56:53', '2026-09-08 09:56:53');
INSERT INTO config_brand_category
(id, brand, category, create_time, update_time)
VALUES(58, 'Smart', '豪华', '2026-09-08 09:56:53', '2026-09-08 09:56:53');
INSERT INTO config_brand_category
(id, brand, category, create_time, update_time)
VALUES(59, '比亚迪', '豪华', '2026-09-08 09:56:53', '2026-09-08 09:56:53');
INSERT INTO config_brand_category
(id, brand, category, create_time, update_time)
VALUES(60, '坦克', '豪华', '2026-09-08 09:56:53', '2026-09-08 09:56:53');
INSERT INTO config_brand_category
(id, brand, category, create_time, update_time)
VALUES(62, '吉利', '豪华', '2026-09-08 09:56:53', '2026-09-08 09:56:53');
INSERT INTO config_brand_category
(id, brand, category, create_time, update_time)
VALUES(63, '广汽传祺', '豪华', '2026-09-08 09:56:53', '2026-09-08 09:56:53');
INSERT INTO config_brand_category
(id, brand, category, create_time, update_time)
VALUES(64, '北京越野', '豪华', '2026-09-08 09:56:53', '2026-09-08 09:56:53');
INSERT INTO config_brand_category
(id, brand, category, create_time, update_time)
VALUES(65, '方程豹', '豪华', '2026-09-08 09:56:53', '2026-09-08 09:56:53');
INSERT INTO config_brand_category
(id, brand, category, create_time, update_time)
VALUES(66, '广汽埃安', '豪华', '2026-09-08 09:56:53', '2026-09-08 09:56:53');
INSERT INTO config_brand_category
(id, brand, category, create_time, update_time)
VALUES(67, '广汽本田', '豪华', '2026-09-08 09:56:53', '2026-09-08 09:56:53');
INSERT INTO config_brand_category
(id, brand, category, create_time, update_time)
VALUES(68, '吉利银河', '豪华', '2026-09-08 09:56:53', '2026-09-08 09:56:53');
INSERT INTO config_brand_category
(id, brand, category, create_time, update_time)
VALUES(69, '阿维塔、长安、长城、哈弗、欧拉、坦克', '豪华', '2026-09-08 09:56:53', '2026-09-08 09:56:53');
INSERT INTO config_brand_category
(id, brand, category, create_time, update_time)
VALUES(70, '银河', '豪华', '2026-09-08 09:56:53', '2026-09-08 09:56:53');
INSERT INTO config_brand_category
(id, brand, category, create_time, update_time)
VALUES(71, '上汽大众', '豪华', '2026-09-08 09:56:53', '2026-09-08 09:56:53');
INSERT INTO config_brand_category
(id, brand, category, create_time, update_time)
VALUES(72, '捷途纵横', '豪华', '2026-09-08 09:56:53', '2026-09-08 09:56:53');
INSERT INTO config_brand_category
(id, brand, category, create_time, update_time)
VALUES(73, '东风日产', '豪华', '2026-09-08 09:56:53', '2026-09-08 09:56:53');
INSERT INTO config_brand_category
(id, brand, category, create_time, update_time)
VALUES(74, '埃安', '豪华', '2026-09-08 09:56:53', '2026-09-08 09:56:53');
INSERT INTO config_brand_category
(id, brand, category, create_time, update_time)
VALUES(75, '星途', '豪华', '2026-09-08 09:56:53', '2026-09-08 09:56:53');
INSERT INTO config_brand_category
(id, brand, category, create_time, update_time)
VALUES(76, '比亚迪方程豹', '豪华', '2026-09-08 09:56:53', '2026-09-08 09:56:53');
INSERT INTO config_brand_category
(id, brand, category, create_time, update_time)
VALUES(77, '启源', '豪华', '2026-09-08 09:56:53', '2026-09-08 09:56:53');
INSERT INTO config_brand_category
(id, brand, category, create_time, update_time)
VALUES(78, '深蓝', '豪华', '2026-09-08 09:56:53', '2026-09-08 09:56:53');
INSERT INTO config_brand_category
(id, brand, category, create_time, update_time)
VALUES(79, '长安引力', '豪华', '2026-09-08 09:56:53', '2026-09-08 09:56:53');
INSERT INTO config_brand_category
(id, brand, category, create_time, update_time)
VALUES(80, 'AITO/鸿蒙智行', '豪华', '2026-09-08 09:56:53', '2026-09-08 09:56:53');
INSERT INTO config_brand_category
(id, brand, category, create_time, update_time)
VALUES(81, '智界', '豪华', '2026-09-08 09:56:53', '2026-09-08 09:56:53');
INSERT INTO config_brand_category
(id, brand, category, create_time, update_time)
VALUES(82, '智已', '豪华', '2026-09-08 09:56:53', '2026-09-08 09:56:53');
INSERT INTO config_brand_category
(id, brand, category, create_time, update_time)
VALUES(83, '智己', '豪华', '2026-09-08 09:56:53', '2026-09-08 09:56:53');
INSERT INTO config_brand_category
(id, brand, category, create_time, update_time)
VALUES(84, 'AITO&鸿蒙', '豪华', '2026-09-08 09:56:53', '2026-09-08 09:56:53');
INSERT INTO config_brand_category
(id, brand, category, create_time, update_time)
VALUES(85, '鸿蒙', '豪华', '2026-09-08 09:56:53', '2026-09-08 09:56:53');
INSERT INTO config_brand_category
(id, brand, category, create_time, update_time)
VALUES(86, '捷途', '豪华', '2026-09-08 09:56:53', '2026-09-08 09:56:53');
INSERT INTO config_brand_category
(id, brand, category, create_time, update_time)
VALUES(87, '奔驰smart', '豪华', '2026-09-08 09:56:53', '2026-09-08 09:56:53');
INSERT INTO config_brand_category
(id, brand, category, create_time, update_time)
VALUES(88, '广爱埃安、广汽传祺', '豪华', '2026-09-08 09:56:53', '2026-09-08 09:56:53');
INSERT INTO config_brand_category
(id, brand, category, create_time, update_time)
VALUES(89, '鸿蒙智界', '豪华', '2026-09-08 09:56:53', '2026-09-08 09:56:53');
INSERT INTO config_brand_category
(id, brand, category, create_time, update_time)
VALUES(90, '长安汽车', '豪华', '2026-09-08 09:56:53', '2026-09-08 09:56:53');
INSERT INTO config_brand_category
(id, brand, category, create_time, update_time)
VALUES(91, '启境', '豪华', '2026-09-08 09:56:53', '2026-09-08 09:56:53');
INSERT INTO config_brand_category
(id, brand, category, create_time, update_time)
VALUES(92, '坦克,奇瑞', '豪华', '2026-09-08 09:56:53', '2026-09-08 09:56:53');
INSERT INTO config_brand_category
(id, brand, category, create_time, update_time)
VALUES(93, '长城', '豪华', '2026-09-08 09:56:53', '2026-09-08 09:56:53');
INSERT INTO config_brand_category
(id, brand, category, create_time, update_time)
VALUES(94, '欧拉', '豪华', '2026-09-08 09:56:53', '2026-09-08 09:56:53');
INSERT INTO config_brand_category
(id, brand, category, create_time, update_time)
VALUES(95, '福特', '豪华', '2026-09-08 09:56:53', '2026-09-08 09:56:53');
INSERT INTO config_brand_category
(id, brand, category, create_time, update_time)
VALUES(96, '领克、银河', '豪华', '2026-09-08 09:56:53', '2026-09-08 09:56:53');
INSERT INTO config_brand_category
(id, brand, category, create_time, update_time)
VALUES(97, '路虎', '豪华', '2026-09-08 09:56:53', '2026-09-08 09:56:53');
INSERT INTO config_brand_category
(id, brand, category, create_time, update_time)
VALUES(98, '广本', '豪华', '2026-09-08 09:56:53', '2026-09-08 09:56:53');
INSERT INTO config_brand_category
(id, brand, category, create_time, update_time)
VALUES(99, '广丰', '豪华', '2026-09-08 09:56:53', '2026-09-08 09:56:53');
INSERT INTO config_brand_category
(id, brand, category, create_time, update_time)
VALUES(100, '传祺', '豪华', '2026-09-08 09:56:53', '2026-09-08 09:56:53');
INSERT INTO config_brand_category
(id, brand, category, create_time, update_time)
VALUES(101, '品牌', '豪华', '2026-09-08 09:56:53', '2026-09-08 09:56:53');
INSERT INTO config_brand_category
(id, brand, category, create_time, update_time)
VALUES(102, '收尾接待', '豪华', '2026-09-08 09:56:53', '2026-09-08 09:56:53');