당산

테이블 (10)

Account (account)

  • 계정아이디 (account_id) — int — 기본 키 — NOT NULL
  • 계정이름 (nickname) — string — NOT NULL
  • 계정비밀번호 (password) — int
  • 계정생성일지 (account_create_time) — DATETIME
  • 계정수정일자 (account_update_time) — DATETIME
  • 계정상태 (status) — boolean
  • 계정프로필이미지 (account_image) — string
  • 계정권한 (account_role) — varchar
  • 매너온도 (account_like_cnt) — int

Account_Product (Untitled3)

  • 계정아이디 (account_id) — int — 외래 키 → Account.계정아이디 — NOT NULL
  • 물건아이디 (product_id) — int — 외래 키 → Product.물건아이디 — NOT NULL

Account_Role (Untitled9)

  • 계정아이디 (account_id) — int — 외래 키 → Account.계정아이디 — NOT NULL
  • 권한아이디 (role_id) — int — 외래 키 → Role.권한아이디 — NOT NULL

Account_image (CopyOfUntitled6)

  • 계정아이디 (account_id) — int — 외래 키 → Account.계정아이디 — NOT NULL
  • 파일아이디 (file_id) — int — 외래 키 → File.파일아이디 — NOT NULL

File (Untitled7)

  • 파일아이디 (file_id) — int — 기본 키 — NOT NULL
  • 회원아이디 (account_id) — int
  • 물건아이디 (product_id) — int
  • 파일타입 (file_type) — varchar
  • 파일이름 (file_name) — varchar
  • 생성일자 (file_create_time) — DATETIME

Like (Untitled)

  • 좋아요아이디 (like_id) — int — 기본 키 — NOT NULL
  • 계정아이디 (account_id) — int — 외래 키 → Account.계정아이디 — NOT NULL

Product (Untitled4)

  • 물건아이디 (product_id) — int — 기본 키 — NOT NULL
  • 물건이름 (product_name) — varchar
  • 물건가격 (product_price) — int
  • 물건설명 (product_description) — varchar
  • 물건이미지 (product_image) — varchar
  • 물건등록일자 (product_create_time) — datetime
  • 물건정보수정일자 (product_update_time) — datetime
  • 조회수 (product_view_count) — int
  • 좋아요 수 (product_like_count) — int
  • 물건거래상태 (product_trade_status) — varchar
  • 채팅방 링크 (chatting_link) — varchar
  • 계정아이디 (account_id) — int

Product_image (Untitled6)

  • 파일아이디 (file_id) — int — 외래 키 → File.파일아이디 — NOT NULL
  • 물건아이디 (product_id) — int — 외래 키 → Product.물건아이디 — NOT NULL

Role (Untitled2)

  • 권한아이디 (role_id) — NOTNULL — 기본 키 — NOT NULL
  • 권한명 (role_name)

Trade (Untitled8)

  • 거래아이디 (trade_id) — int — 기본 키 — NOT NULL
  • 물건거래상태 (product_trade_status) — varchar
  • 계정아이디 (account_id) — int — 외래 키 → Account.계정아이디 — NOT NULL
  • 물건아이디 (product_id) — int — 외래 키 → Product.물건아이디 — NOT NULL