Files
Mycontent/soul-api/scripts/create_super_articles.sql
乘风 2645212d47 feat: update API base URLs and enhance icon designs
- 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.
2026-05-09 16:00:16 +08:00

17 lines
865 B
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 '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';