-- 🔍 检查 user_package 表结构 - 2026-01-23

-- 1. 查看完整的表结构
DESC user_package;

-- 2. 查看建表语句
SHOW CREATE TABLE user_package;

-- 3. 检查是否有时间相关字段
SELECT 
    COLUMN_NAME AS '字段名',
    COLUMN_TYPE AS '字段类型',
    IS_NULLABLE AS '是否可空',
    COLUMN_DEFAULT AS '默认值',
    COLUMN_COMMENT AS '注释'
FROM INFORMATION_SCHEMA.COLUMNS
WHERE TABLE_SCHEMA = 'peixue'
  AND TABLE_NAME = 'user_package'
  AND COLUMN_NAME LIKE '%time%'
ORDER BY ORDINAL_POSITION;

-- 4. 查看所有字段
SELECT 
    COLUMN_NAME AS '字段名',
    COLUMN_TYPE AS '字段类型',
    IS_NULLABLE AS '是否可空',
    COLUMN_DEFAULT AS '默认值',
    COLUMN_COMMENT AS '注释'
FROM INFORMATION_SCHEMA.COLUMNS
WHERE TABLE_SCHEMA = 'peixue'
  AND TABLE_NAME = 'user_package'
ORDER BY ORDINAL_POSITION;
