refactor: add feed event url
This commit is contained in:
parent
96a5a33ad6
commit
ac930cd05e
@ -0,0 +1,2 @@
|
||||
-- AlterTable
|
||||
ALTER TABLE "FeedEvent" ADD COLUMN "url" TEXT;
|
@ -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)
|
||||
|
@ -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(),
|
||||
})
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user