- 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.
22 lines
1.2 KiB
SQL
22 lines
1.2 KiB
SQL
-- 超级个体文章表(与 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:重启 API(SKIP_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 张';
|