온드림

테이블 (7)

group_chat_info (공동 구매 채팅방 정보)

  • id — PK — 외래 키 → users.id — NOT NULL
  • 공동 구매 게시글 id (group_purchasing_id) — FK — 외래 키 → group_purchasing.id — NOT NULL
  • 참여자 정보 (users_id) — FK

group_purchasing (공동 구매 포스팅)

  • id — PK — 기본 키 — NOT NULL
  • id (users_id) — FK — 외래 키 → users.id — NOT NULL
  • 해당 상품 유형 카테고리 FK (category_id) — FK
  • s3에 업로드 한 후의 이미지 url (img_url)
  • 제목 (title) — NN
  • 내용 (content)
  • 원가 (ori_price) — NN
  • 공동구매가 (price) — NN
  • 모집 마감날 (deadline_date) — NN
  • 거래장소 (trading_place) — NN
  • 행정동 코드 (place_h) — NN
  • x좌표 (trading_place_lat)
  • y좌표 (trading_place_lng)
  • 행정동 명 (poi_name)
  • 참여인원 (parti_num) — NN
  • 생성 시간 (created_at)

group_purchasing_like (공동 구매 포스팅 좋아요)

  • id — PK — 기본 키 — NOT NULL
  • id (users_id) — FK — 외래 키 → users.id — NOT NULL
  • id (group_purchasing_id) — FK — 외래 키 → group_purchasing.id — NOT NULL

posting (포스팅)

  • id — PK — 기본 키 — NOT NULL
  • id (users_id) — FK — 외래 키 → users.id — NOT NULL
  • s3에 업로드 한 후의 이미지 url (img_url)
  • 제목 (title)
  • 내용 (content)
  • 생성 시간 (created_at) — NN

posting_like (포스팅 좋아요)

  • id — PK — 기본 키 — NOT NULL
  • id (users_id) — FK — 외래 키 → users.id — NOT NULL
  • id (posting_id) — FK — 외래 키 → posting.id — NOT NULL

user_info (유저 정보)

  • users_id — FK — 기본 키 — NOT NULL
  • id — PK — 외래 키 → users.id — NOT NULL
  • 성별 (남자는 0, 여자는 1) (gender) — NN
  • 나이 (age) — NN
  • 선호하는 카테고리 (pre_category) — NN
  • 알고리즘으로 나온 회원 그룹 번호 (group) — NN
  • 행정동 명 (poi_name) — NN

users (유저)

  • id — PK — 기본 키 — NOT NULL
  • 이메일 (email) — NN
  • 닉네임 (nickname) — NN
  • 비밀번호 (password) — NN
  • 로그인 타입( 일반, 카카오) 일반은 0 카카오는 1 (type) — NN
  • 생성 시간 (created_at)