课程管理新增单词与数学思维内容编辑:单词词库落库(word_entry+0007迁移,表空回退words.json),家长端按天增删改单词;数学思维编辑器对标语法编辑器;课程管理加入两张入口卡片
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.8
parent
ab84bec1b4
commit
5f207e4a57
@@ -0,0 +1,12 @@
|
||||
-- xuchao: 单词词库落库,供家长端按天编辑。幂等:已存在则跳过。
|
||||
-- 初始数据由 scripts/seed-words.ts 从 src/content/words/words.json 灌入;
|
||||
-- 表空时 lib/words.ts 自动回退读 JSON,部署顺序不影响孩子端使用。
|
||||
CREATE TABLE IF NOT EXISTS `word_entry` (
|
||||
`id` bigint AUTO_INCREMENT NOT NULL,
|
||||
`word` varchar(60) NOT NULL,
|
||||
`meaning` varchar(300) NOT NULL DEFAULT '',
|
||||
`day` int NOT NULL,
|
||||
`seq` int NOT NULL,
|
||||
CONSTRAINT `word_entry_id` PRIMARY KEY(`id`),
|
||||
KEY `idx_word_entry_day` (`day`)
|
||||
);
|
||||
Reference in New Issue
Block a user