mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-30 21:04:59 +00:00
feat(webui): show comments count badge in file card preview area (#403)
* feat(webui): show comments count badge in file card preview area * perf(db): add index on asset_comments asset_id
This commit is contained in:
+2
@@ -0,0 +1,2 @@
|
||||
-- CreateIndex
|
||||
CREATE INDEX "asset_comments_asset_id_idx" ON "asset_comments"("asset_id");
|
||||
@@ -657,6 +657,7 @@ model AssetComment {
|
||||
|
||||
attachments AssetCommentAttachment[] @relation("CommentToAttachment")
|
||||
|
||||
@@index([assetId])
|
||||
@@map("asset_comments")
|
||||
}
|
||||
|
||||
|
||||
+1
-1
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user