chore: remove admin and agent pipeline remnants

This commit is contained in:
2026-04-18 18:57:50 +08:00
parent f09364ebf7
commit bc93755f87
15 changed files with 169 additions and 2731 deletions
+27 -58
View File
@@ -24,34 +24,11 @@ model ExternalLink {
@@map("external_links")
}
model ProjectDiscoveryTask {
id String @id @default(cuid())
status TaskStatus @default(PENDING)
sourceUrl String
sourceType String @default("manual")
explorationData Json?
explorationSummary String?
errorMessage String?
retryCount Int @default(0)
lastRetryAt DateTime?
projectId String?
createdAt DateTime @default(now())
startedAt DateTime?
completedAt DateTime?
updatedAt DateTime @updatedAt
project Project? @relation(fields: [projectId], references: [id])
@@index([projectId], map: "idx_task_project_id")
@@index([sourceUrl], map: "idx_task_source_url")
@@index([status, createdAt], map: "idx_task_status_created")
@@map("project_discovery_tasks")
}
model ProjectTag {
projectId String
tagId String
project Project @relation(fields: [projectId], references: [id], onDelete: Cascade)
tag Tag @relation(fields: [tagId], references: [id], onDelete: Cascade)
project Project @relation(fields: [projectId], references: [id], onDelete: Cascade)
tag Tag @relation(fields: [tagId], references: [id], onDelete: Cascade)
@@id([projectId, tagId])
@@index([tagId])
@@ -59,25 +36,24 @@ model ProjectTag {
}
model Project {
id String @id @default(cuid())
name String
nameEn String?
slug String @unique
description String
descriptionEn String?
content String?
contentEn String?
githubStars Int @default(0)
githubStarsUpdatedAt DateTime?
status ProjectStatus @default(ACTIVE)
source String?
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
embedding Unsupported("vector")?
embeddingUpdatedAt DateTime?
links ExternalLink[]
projectDiscoveryTasks ProjectDiscoveryTask[]
tags ProjectTag[]
id String @id @default(cuid())
name String
nameEn String?
slug String @unique
description String
descriptionEn String?
content String?
contentEn String?
githubStars Int @default(0)
githubStarsUpdatedAt DateTime?
status ProjectStatus @default(ACTIVE)
source String?
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
embedding Unsupported("vector")?
embeddingUpdatedAt DateTime?
links ExternalLink[]
tags ProjectTag[]
@@index([embedding], map: "idx_project_embedding_cosine")
@@index([slug], map: "idx_project_slug")
@@ -87,13 +63,13 @@ model Project {
}
model Tag {
id String @id @default(cuid())
name String @unique
nameEn String?
slug String @unique
category TagCategory @default(FREE_TAG)
createdAt DateTime @default(now())
projects ProjectTag[]
id String @id @default(cuid())
name String @unique
nameEn String?
slug String @unique
category TagCategory @default(FREE_TAG)
createdAt DateTime @default(now())
projects ProjectTag[]
@@index([category], map: "idx_tag_category")
@@index([slug], map: "idx_tag_slug")
@@ -141,13 +117,6 @@ enum ProjectStatus {
ARCHIVED
}
enum TaskStatus {
PENDING
IN_PROGRESS
COMPLETED
FAILED
}
enum TagCategory {
FIXED_PROJECT_TYPE
TECH_STACK