refactor: add feed event url

This commit is contained in:
moonrailgun 2024-06-24 23:12:48 +08:00
parent 96a5a33ad6
commit ac930cd05e
3 changed files with 4 additions and 0 deletions

View File

@ -0,0 +1,2 @@
-- AlterTable
ALTER TABLE "FeedEvent" ADD COLUMN "url" TEXT;

View File

@ -469,6 +469,7 @@ model FeedEvent {
source String // custom text or third-party integrations
senderId String? // maybe user id
senderName String? // use for display who
url String? // url link
important Boolean
channel FeedChannel @relation(fields: [channelId], references: [id], onUpdate: Cascade, onDelete: Cascade)

View File

@ -13,6 +13,7 @@ export const FeedEventModelSchema = z.object({
source: z.string(),
senderId: z.string().nullish(),
senderName: z.string().nullish(),
url: z.string().nullish(),
important: z.boolean(),
})