优化linux建表,初始化整体业务

This commit is contained in:
2026-03-17 09:52:54 +08:00
parent fee6c67d51
commit 8acb8a3d2a
3 changed files with 150 additions and 39 deletions

View File

@@ -1,8 +1,6 @@
-- Weibo-HotSign Database Initialization Script for MySQL
-- 创建数据库和表结构
CREATE DATABASE IF NOT EXISTS weibo_hotsign DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
USE weibo_hotsign;
-- 创建表结构(数据库需提前创建好)
-- 如需手动建库: CREATE DATABASE weibo_hotsign DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
-- Users table
CREATE TABLE IF NOT EXISTS users (