Pārlūkot izejas kodu

chore: auto bump version and changelog [skip ci]

iwt 1 mēnesi atpakaļ
vecāks
revīzija
cde9fa1087

+ 10 - 1
cfc-backend/src/main/resources/schema.sql

@@ -461,11 +461,20 @@ CREATE TABLE IF NOT EXISTS growth_records (
     status VARCHAR(20) DEFAULT 'pending' COMMENT '状态: pending/completed',
     external_sync TINYINT DEFAULT 0 COMMENT '是否来自外部系统同步',
     external_source VARCHAR(100) COMMENT '外部系统来源',
+    source_type VARCHAR(20) DEFAULT 'manual' COMMENT '来源类型: manual/platform_purchase/self_upload/supplement',
+    source_file_url VARCHAR(500) COMMENT '原始报告文件URL',
+    order_id BIGINT COMMENT '关联订单ID',
+    report_date DATETIME COMMENT '测评/报告日期',
+    parent_record_id BIGINT COMMENT '关联的原始档案ID(补充档案专用)',
+    is_latest TINYINT(1) DEFAULT 1 COMMENT '是否同组最新记录',
+    dedup_hash VARCHAR(64) COMMENT '去重哈希值(SHA256)',
+    parsed_data TEXT COMMENT '上传报告的解析结果(JSON)',
     created_at DATETIME DEFAULT CURRENT_TIMESTAMP,
     updated_at DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
     INDEX idx_child_id (child_id),
     INDEX idx_parent_id (parent_id),
-    INDEX idx_status (status)
+    INDEX idx_status (status),
+    UNIQUE INDEX uk_growth_dedup_hash (dedup_hash)
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
 
 -- =============================================

+ 1 - 1
cfc-web/.last_build_commit

@@ -1 +1 @@
-b6f9bf358f6f2e49844aea745d77714567e3eac8
+774ec2e4b20b5f5bd314fdf561fb254b0a306231

+ 2 - 2
cfc-web/package-lock.json

@@ -1,12 +1,12 @@
 {
   "name": "cfc-web",
-  "version": "1.0.532",
+  "version": "1.0.533",
   "lockfileVersion": 3,
   "requires": true,
   "packages": {
     "": {
       "name": "cfc-web",
-      "version": "1.0.532",
+      "version": "1.0.533",
       "dependencies": {
         "@wangeditor/editor": "^5.1.23",
         "@wangeditor/editor-for-vue": "^1.0.2",