forked from bai/curriculum-project-hub
feat(filelib): 移除最近打开模块(ADR-0032,supersede ADR-0031 对应半部)
- FileLibRecentVisit 删表(手写迁移;表当日新建无生产数据) - recentService/recentRoutes/RecentView 删除;GridLibraryView 埋点与 navTarget 跳转一并移除;types 清 RecentEntry - 左栏保留 文件库/回收站(ADR-0031 回收站半部不受影响) - breadcrumb 的 role 字段保留(独立可用的增量字段)
This commit is contained in:
@@ -1110,18 +1110,3 @@ model FileLibExportJob {
|
||||
|
||||
@@index([organizationId, status])
|
||||
}
|
||||
|
||||
/// ADR-0031:最近打开。客户端在成功打开后上报;filePath="" 表示节点本身
|
||||
/// (文件夹/项目),非空表示项目内文件预览(PG 唯一索引视 NULL 互不相同,
|
||||
/// 故用空串而非 null)。名称读取时 join FileLibNode 实时取,不做冗余。
|
||||
model FileLibRecentVisit {
|
||||
id String @id @default(cuid())
|
||||
organizationId String
|
||||
userId String
|
||||
nodeId String
|
||||
filePath String @default("")
|
||||
openedAt DateTime
|
||||
|
||||
@@unique([organizationId, userId, nodeId, filePath])
|
||||
@@index([organizationId, userId, openedAt])
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user