diff --git a/crates/erp-server/migration/src/m20260520_000157_follow_up_source_and_points_rules.rs b/crates/erp-server/migration/src/m20260520_000157_follow_up_source_and_points_rules.rs index e4b0097..52bf4c5 100644 --- a/crates/erp-server/migration/src/m20260520_000157_follow_up_source_and_points_rules.rs +++ b/crates/erp-server/migration/src/m20260520_000157_follow_up_source_and_points_rules.rs @@ -19,7 +19,7 @@ impl MigrationTrait for Migration { // 2. 新增积分规则种子:健康数据上报 let insert_sql = r#" - INSERT INTO points_rule (id, tenant_id, name, event_type, points, daily_cap, is_active, created_at, updated_at, version) + INSERT INTO points_rule (id, tenant_id, name, event_type, points_value, daily_cap, is_active, created_at, updated_at, version) SELECT gen_random_uuid(), t.id, @@ -37,7 +37,7 @@ impl MigrationTrait for Migration { WHERE pr.event_type = 'health_data_report' AND pr.tenant_id = t.id ); - INSERT INTO points_rule (id, tenant_id, name, event_type, points, daily_cap, is_active, created_at, updated_at, version) + INSERT INTO points_rule (id, tenant_id, name, event_type, points_value, daily_cap, is_active, created_at, updated_at, version) SELECT gen_random_uuid(), t.id, @@ -55,7 +55,7 @@ impl MigrationTrait for Migration { WHERE pr.event_type = 'lab_report_upload' AND pr.tenant_id = t.id ); - INSERT INTO points_rule (id, tenant_id, name, event_type, points, daily_cap, is_active, created_at, updated_at, version) + INSERT INTO points_rule (id, tenant_id, name, event_type, points_value, daily_cap, is_active, created_at, updated_at, version) SELECT gen_random_uuid(), t.id,