feat: 数据层更新 — 新增国内工具种子脚本 + schema 优化
- schema.prisma: Prompt.content 改为 @db.Text 支持长文本 - seed-enrich.ts: deleteMany()→upsert by name 防止重跑时清除数据 - seed-expand.ts: 扩展 prompts 至 35 条 + 课程章节扩充 - seed-tools-affiliate.ts: 新增 8 个国内 AI 工具(豆包/通义千问/文心一言/ WPS AI/Canva/腾讯元宝/讯飞星火/剪映),5 个带返佣链接 Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
@@ -170,7 +170,7 @@ model LearnRecord {
|
||||
model Prompt {
|
||||
id Int @id @default(autoincrement())
|
||||
title String
|
||||
content String
|
||||
content String @db.Text
|
||||
description String?
|
||||
categoryId Int?
|
||||
tags String?
|
||||
|
||||
Reference in New Issue
Block a user