From 58eb6c8c23fdf45c82569dd0f8db164fce94ceda Mon Sep 17 00:00:00 2001 From: mzaxd Date: Sun, 22 Feb 2026 12:03:17 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=96=B0=E5=A2=9E=E9=A1=B9=E7=9B=AE=20?= =?UTF-8?q?GitHub=20=E6=98=9F=E6=A0=87=E5=AD=97=E6=AE=B5=E4=B8=8E=E7=B4=A2?= =?UTF-8?q?=E5=BC=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- prisma/schema.prisma | 3 +++ 1 file changed, 3 insertions(+) diff --git a/prisma/schema.prisma b/prisma/schema.prisma index dbe35e6..faba186 100644 --- a/prisma/schema.prisma +++ b/prisma/schema.prisma @@ -67,6 +67,8 @@ model Project { descriptionEn String? content String? contentEn String? + githubStars Int @default(0) + githubStarsUpdatedAt DateTime? status ProjectStatus @default(ACTIVE) source String? createdAt DateTime @default(now()) @@ -80,6 +82,7 @@ model Project { @@index([embedding], map: "idx_project_embedding_cosine") @@index([slug], map: "idx_project_slug") @@index([status, createdAt], map: "idx_project_status_createdAt") + @@index([status, githubStars], map: "idx_project_status_github_stars") @@map("projects") }