Files
c/backend/sql/update_credit_score.sql
刘正航 6d62120443 feat: 用户行为信誉分系统
- User 新增 credit_score 字段(0-200,默认100)
- 信誉分影响检测阈值系数:高分降低敏感度,低分提高敏感度
- 发布成功+1分,被拦截-2分;申诉通过+10分,驳回-5分
- 新增手动调整和批量重算信誉分接口
- admin-users 页面显示信誉分进度条,支持编辑调整

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-21 23:52:47 +08:00

10 lines
411 B
SQL
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
-- 用户信誉分字段
-- 执行方式mysql -u root -p database_name < update_credit_score.sql
-- 新增用户信誉分字段(范围 0-200默认 100
ALTER TABLE users
ADD COLUMN credit_score INT DEFAULT 100 COMMENT '用户信誉分0-200默认100'
AFTER is_admin;
-- 更新索引(可选,便于按信誉分排序查询)
-- ALTER TABLE users ADD INDEX idx_credit_score (credit_score);