# 데이터베이스 (원본) ## User table - nickname : string (PK) - email : string - gender : string - age : number - birthday : Datei - isPremium : boolean - createdAt: timestamp - updatedAt: timestamp ## StudyData table - id: number (PK) - week: number - studyTitle: string - createdAt: timestamp - updatedAt: timestamp ## StudyMember table - nickname(FK, PK): string - studyTitle(FK, PK): string ## Question table - id: number (PK) - title: string - content: string - like: number - slide: number (slide.id) - writer : number - createdAt: timestamp - updatedAt: timestamp ```javascript= db.Slide.hasMany(db.Question); db.Question.belongsTo(db.Slide); ``` ## Slide table - id: number (PK) - order: number - url: string - createdAt: timestamp - updatedAt: timestamp ## StudyGroup table - title: string (PK) - category: string - password: string - salt: string - people: number - limitCount: number - isPremium: boolean