feat: enhance textbook reader with anchor text support and improve knowledge point management

This commit is contained in:
SpecialX
2026-01-16 10:22:16 +08:00
parent 9bfc621d3f
commit bb4555f611
44 changed files with 6284 additions and 2090 deletions

View File

@@ -118,6 +118,7 @@ export const knowledgePoints = mysqlTable("knowledge_points", {
id: id("id").primaryKey(),
name: varchar("name", { length: 255 }).notNull(),
description: text("description"),
anchorText: varchar("anchor_text", { length: 255 }),
// Tree Structure: Parent KP
parentId: varchar("parent_id", { length: 128 }), // Self-reference defined in relations