Files
Mycontent/soul-api/scripts/create_super_articles.sql
乘风 c84c53515e feat: update API base URLs and improve UI elements
- Changed API base URLs in app.js to point to the production server for deployment.
- Updated the my page UI by refining labels and removing unnecessary text for a cleaner look.
- Adjusted CSS styles to enhance layout and reduce whitespace, improving overall user experience.

This update aims to ensure proper API connectivity and enhance the visual presentation of the user interface.
2026-05-09 17:26:55 +08:00

22 lines
1.2 KiB
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.

-- 超级个体文章表(与 soul-api/internal/model/super_article.go、AutoMigrate 一致)
-- 缺表时报Error 1146 (42S02): Table 'xxx.super_articles' doesn't exist如 souldev、soul_miniprogram
-- 在目标库执行mysql -u... -p souldev < create_super_articles.sql
-- 或使用 Navicat 选中对应库后运行本脚本。
-- 若 soul-api 已含 ensureSuperArticlesTableRaw重启 APISKIP_AUTO_MIGRATE=1 也会自动建表)即可。
CREATE TABLE IF NOT EXISTS `super_articles` (
`id` bigint unsigned NOT NULL AUTO_INCREMENT,
`user_id` varchar(50) NOT NULL COMMENT '作者 users.id',
`title` varchar(200) NOT NULL DEFAULT '',
`content` longtext COMMENT '正文',
`images` longtext COMMENT '配图 URL JSON 数组,最多 9 张',
`created_at` datetime(3) DEFAULT NULL,
`updated_at` datetime(3) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `idx_super_articles_user_time` (`user_id`,`created_at`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci
COMMENT='超级个体发文(小程序 /s/:id H5';
-- 已有表缺列时执行:
-- ALTER TABLE super_articles ADD COLUMN images LONGTEXT NULL COMMENT '配图 URL JSON 数组,最多 9 张';