Skip to content

mongo db docs

changicho edited this page Nov 29, 2020 · 1 revision

MongoDB Database Docs

User Collection

  • id: string (PK) (type+number_id)
  • nickname : string
  • email : string
  • profileImage : string
  • isPremium : boolean
  • createdAt: timestamp
  • updatedAt: timestamp

StudyGroup Collection

  • id: string (PK)
  • title: string
  • category: string ["어학", "IT", "취업"]
  • password: string
  • salt: string
  • people: JSON [user.id, user.id] (string[])
  • owner: string (user.id)
  • maxPeople: number 인원제한
  • isPremium: boolean

StudyData Collection

  • id: number (PK)
  • week: number
  • date: Date
  • slideInfo: Array (ImageURL(String))
  • studyGroupId: string
  • questions: Array (Question)
  • createdAt: timestamp
  • updatedAt: timestamp

Question Collection

  • id: number (PK)
  • user : Object (User)
  • title: string
  • content: string
  • like: number
  • slideOrder: number
  • slideImageURL: string
  • createdAt: timestamp
  • updatedAt: timestamp
Clone this wiki locally