nenio

Tables (8)

Notification (알림)

  • id (pk) — number — Primary key — NOT NULL
  • userId (회원 id) — number — Foreign key → User.id — NOT NULL
  • category (알림 카테고리) — string
  • title (제목) — string
  • content (본문) — string
  • createdAt (등록 시간) — Date
  • updatedAt (수정 시간) — Date
  • deletedAt (삭제 시간) — Date

Option (선택지)

  • id (pk) — number — Primary key — NOT NULL
  • questionId (질문 id) — number — Foreign key → Question.id — NOT NULL
  • content (본문) — string
  • image (이미지) — string
  • createdAt (등록 시간) — Date
  • updatedAt (수정 시간) — Date
  • deletedAt (삭제 시간) — Date

Question (질문)

  • id (pk) — number — Primary key — NOT NULL
  • tagId (태그 id) — number — Foreign key → Tag.id — NOT NULL
  • authorId (회원(작성자) id) — number — Foreign key → User.id — NOT NULL
  • userType (회원 유형) — string
  • questionType (질문 유형) — string
  • optionType (선택지 유형) — string
  • title (제목) — string
  • content (본문) — number
  • image (본문 이미지) — string
  • createdAt (등록 시간) — Date
  • updatedAt (수정 시간) — Date
  • deletedAt (삭제 시간) — Date

Tag (태그)

  • id (pk) — number — Primary key — NOT NULL
  • content (태그) — number
  • createdAt (등록 시간) — Date
  • updatedAt (수정 시간) — Date
  • deletedAt (삭제 시간) — Date

User (회원)

  • id (pk) — number — Primary key — NOT NULL
  • firebaseUid (파이어베이스 uid) — number
  • userType (회원 유형) — number
  • email (이메일) — number
  • nickname (닉네임) — number
  • image (프로필 사진) — string
  • createdAt (등록 시간) — Date
  • updatedAt (수정 시간) — Date
  • deletedAt (삭제 시간) — Date

options_users (선택지_회원)

  • optionId (선택지 id) — number — Foreign key → Option.id — NOT NULL
  • userId (회원 id) — number — Foreign key → User.id — NOT NULL

questions_users (질문_회원)

  • questionId (질문 id) — number — Foreign key → Question.id — NOT NULL
  • userId (회원 id) — number — Foreign key → User.id — NOT NULL

users_tags (회원_태그)

  • userId (회원 id) — number — Foreign key → User.id — NOT NULL
  • tagId (태그 id) — number — Foreign key → Tag.id — NOT NULL