Notification

Models. Namespace

Notification

Description:
  • 알림

    Indexes Properties
    _id UNIQUE
    user_1_created_-1 COMPOUND
Version:
  • 2.0.0

Type Definitions

TNotification

Properties:
Name Type Attributes Default Description
_id ObjectId
type "sent" | "received"
user ObjectId

user._id

userId string

user.userId

userName string

user.userName

toUserList Array.<Object>

type이 sent인 경우; 수신자 목록을 나타냄

fromUser ObjectId

type이 received인 경우; 발신자._id

fromUserId string

type이 received인 경우; 발신자.userId

fromUserName string

type이 received인 경우; 발신자.userName

checked boolean false

type이 received인 경우; 확인 여부

category string <nullable>
title string
description string
date Date