DEU Marketplace - 2022-03-22 04:21:33

Tables (9)

chat_log (채팅_로그)

  • 채팅기록 식별자 (chat_log_id) — not null — Primary key — NOT NULL
  • 채팅방 식별자 (chat_room_id) — not null — Foreign key — NOT NULL
  • 보낸사람 (user_id) — not null — Foreign key — NOT NULL
  • 받는사람 (user_id2) — not null — Foreign key — NOT NULL
  • 내용 (content) — not null
  • 읽음여부 (is_read) — not null

chat_room (채팅방)

  • 채팅방 식별자 (chat_room_id) — not null — Primary key — NOT NULL
  • 물품 식별자 (item_id) — not null — Foreign key — NOT NULL
  • 유저 식별자 (user_id) — not null — Foreign key — NOT NULL
  • 소켓 (socket) — not null

deal (물품_거래)

  • 거래 식별자 (deal_id) — not null — Primary key — NOT NULL
  • 물품 식별자 (item_id) — not null — Foreign key — NOT NULL
  • 거래 대상 (user_id) — not null — Foreign key — NOT NULL
  • 거래약속시간 (appoint_date) — not null
  • 거래장소 (place) — not null
  • 거래상태 (state) — not null

item (물품)

  • 물품 식별자 (item_id) — not null — Primary key — NOT NULL
  • 유저 식별자 (user_id) — not null — Foreign key — NOT NULL
  • 물품 카테고리 식별자 (item_category_id) — not null — Foreign key — NOT NULL
  • 강의 식별자 (lecture_id) — not null — Foreign key — NOT NULL
  • 제목 (title) — not null
  • 필기상태 (note_state)
  • 외관상태 (surface_state)
  • 정가 (regular_price)
  • 희망금액 (price) — not null
  • 설명 (description) — not null

item_category (물품_카테고리)

  • 물품 카테고리 식별자 (item_category_id) — not null — Primary key — NOT NULL
  • 카테고리 명 (item_category_name) — not null

item_img (물품_이미지)

  • 이미지 식별자 (item_img_id) — not null — Primary key — NOT NULL
  • 물품 식별자 (item_id) — not null — Foreign key — NOT NULL
  • 이미지파일 (img_file) — not null
  • 순서 (img_seq) — not null

item_wish (물품_찜)

  • 찜 식별자 (wish_id) — not null — Primary key — NOT NULL
  • 유저 식별자 (user_id) — not null — Foreign key — NOT NULL
  • 물품 식별자 (item_id) — not null — Foreign key — NOT NULL

lecture (강의)

  • 강의 식별자 (lecture_id) — not null — Primary key — NOT NULL
  • 강의명 (name) — not null
  • 교수명 (professor) — not null

user (사용자)

  • 유저 식별자 (user_id) — not null — Primary key — NOT NULL
  • 이름 (name) — not null
  • 이메일 (email) — not null
  • 닉네임 (nickname) — not null
  • 학생인증여부 (is_certificated) — not null