-- 检查 nf_user 表中邀请码相关字段的情况
USE fastadmin;

-- 查看表结构
DESCRIBE nf_user;

-- 查看邀请码相关字段
SELECT 
    COLUMN_NAME, 
    COLUMN_TYPE, 
    IS_NULLABLE, 
    COLUMN_DEFAULT, 
    COLUMN_COMMENT 
FROM 
    INFORMATION_SCHEMA.COLUMNS 
WHERE 
    TABLE_SCHEMA = 'fastadmin' 
    AND TABLE_NAME = 'nf_user' 
    AND COLUMN_NAME IN ('invite_code', 'invited_by', 'invite_count', 'invite_reward_total')
ORDER BY ORDINAL_POSITION;
