p3-daangn

Tables (7)

cat_tb (카테고리 테이블)

  • id (id_pk) — int — Primary key — NOT NULL
  • 카테고리명 (name) — String — NOT NULL

chat_content_tb (채팅 내용 테이블)

  • id — int — Primary key — NOT NULL
  • 채팅 아이디 (chat_id_fk) — int — Foreign key → chat_tb.id — NOT NULL
  • 유저 아이디 (user_id_fk) — int — Foreign key → user_tb.id — NOT NULL
  • 채팅한 시간 (time) — timestamp — NOT NULL
  • 상대방 확인 여부 (checked) — boolean — NOT NULL

chat_tb (채팅 테이블)

  • id (id_pk) — int — Primary key — NOT NULL
  • 상품 아이디 (product_id_fk) — int — NOT NULL
  • 구매자 (buyer_id_fk) — int — NOT NULL

product_tb (상품 테이블)

  • id (id_pk) — int — Primary key — NOT NULL
  • 판매자 아이디 (seller_id_fk) — int — Foreign key → user_tb.id — NOT NULL
  • 카테고리 아이디 (cat_id_fk) — int — Foreign key → cat_tb.id — NOT NULL
  • 동네아이디 (town_id_fk) — int — Foreign key → town_tb.id — NOT NULL
  • 글제목 (title) — String — NOT NULL
  • 업로드 시간 (upload_time) — timestamp — NOT NULL
  • 이미지 경로 배열 (img_path) — String — NOT NULL
  • 가격 (price) — int
  • 글내용 (content) — Text — NOT NULL
  • 상태 (state) — String — NOT NULL
  • 조회수 (view_cnt) — int — NOT NULL

town_tb (동네 테이블)

  • id (id_pk) — int — Primary key — NOT NULL
  • 동네 이름 (name) — String — NOT NULL

user_tb (유저 테이블)

  • id — int — Primary key — NOT NULL
  • 유저 아이디 (user_id) — String — NOT NULL
  • 로그인 타입 (login_type) — String — NOT NULL
  • 동네1 (town1) — String
  • 동네2 (town2) — String
  • 비밀번호 (password) — String

wish_tb (관심 목록 테이블)

  • id (id_pk) — Primary key — NOT NULL
  • 유저아이디 (user_id_fk) — int — Foreign key → user_tb.id — NOT NULL