You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
model Notification {
id Int @id
userId String // who are we notifying
user User @relation(fields: [userId], references: [id], onDelete: Cascade)
content String // you have a new like from user <name>
status Int @default(0) // 1: checked, 0: unchecked
lastUpdated DateTime @updatedAt
}
we can optimize in the future
Once a user is logged in, there should be a background process to update whether there are new notifications every 1 minute
view all
The text was updated successfully, but these errors were encountered: