- Updated the API base URLs in app.js to point to local development server for testing. - Enhanced SVG icons with gradient fills for improved visual appeal across various components. - Refactored the avatar upload functionality in avatar-nickname.js and profile-edit.js to utilize a new upload utility for better code maintainability. - Improved the layout and styling of the my page and super article editor for a more user-friendly interface. This update aims to streamline development processes and enhance the overall user experience in the application.
17 lines
865 B
SQL
17 lines
865 B
SQL
-- 超级个体文章表(与 soul-api/internal/model/super_article.go、AutoMigrate 一致)
|
||
-- 线上库缺表时报:Error 1146 (42S02): Table 'soul_miniprogram.super_articles' doesn't exist
|
||
-- 在目标库执行:mysql soul_miniprogram < create_super_articles.sql
|
||
-- 或使用 Navicat 选中 soul_miniprogram 后运行本脚本。
|
||
|
||
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 '正文',
|
||
`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)';
|