당근수정해보기

테이블 (12)

category

  • category_idx — int — 기본 키 — NOT NULL
  • classification — name` — NOT NULL

chat

  • chat_idx — int — 기본 키 — NOT NULL
  • chatroom_idx — int — 외래 키 → chatroom.chatroom_idx — NOT NULL
  • contents — text — NOT NULL
  • time — timestamp — NOT NULL
  • read — boolean — NOT NULL
  • is_from_purchaser — boolean — NOT NULL

chatroom

  • chatroom_idx — int — 기본 키 — NOT NULL
  • product_idx — int — 외래 키 → product.product_idx — NOT NULL
  • seller_idx — int — 외래 키 → product.seller_idx — NOT NULL
  • post_idx — int — 외래 키 → product.post_idx — NOT NULL
  • purchaser_idx — int — 외래 키 → user.user_idx — NOT NULL
  • chattitle — varchar(50) — NOT NULL

comment

  • comment_idx — int — 기본 키 — NOT NULL
  • writter_idx — int — 외래 키 → user.user_idx — NOT NULL
  • post_idx — int — 외래 키 → post.post_idx — NOT NULL
  • contents — varchar(300) — NOT NULL
  • date — date — NOT NULL
  • like — int — NOT NULL

dealinformation

  • dealinformation_idx — int — 기본 키 — NOT NULL
  • purchaser_idx — int — 외래 키 → user.user_idx — NOT NULL
  • product.idx — int — 외래 키 → product.product_idx — NOT NULL
  • seller_idx — int — 외래 키 → product.seller_idx — NOT NULL
  • post_idx — int — 외래 키 → product.post_idx — NOT NULL
  • date — date — NOT NULL

interest

  • interest_idx — int — 기본 키 — NOT NULL
  • product_idx — int — 외래 키 → product.product_idx — NOT NULL
  • seller_idx — int — 외래 키 → product.seller_idx — NOT NULL
  • post_idx — int — 외래 키 → product.post_idx — NOT NULL
  • user_idx — int — 외래 키 → user.user_idx — NOT NULL
  • date — date — NOT NULL

post

  • post_idx — int — 기본 키 — NOT NULL
  • user_idx — int — 외래 키 → user.user_idx — NOT NULL
  • title — varchar(50) — NOT NULL
  • date — date — NOT NULL
  • contents — varchar(300)
  • product_name — varchar(30) — NOT NULL
  • image — VARCHAR(255) — NOT NULL

post_category

  • post_category_idx — int — 기본 키 — NOT NULL
  • category_idx2 — int — 외래 키 → category.category_idx — NOT NULL
  • post_idx — int — 외래 키 → post.post_idx — NOT NULL

product

  • product_idx — int — 기본 키 — NOT NULL
  • seller_idx — int — 외래 키 → user.user_idx — NOT NULL
  • post_idx — int — 외래 키 → post.post_idx — NOT NULL

product_category

  • product_category_idx — int — 기본 키 — NOT NULL
  • product_idx — int — 외래 키 → product.product_idx — NOT NULL
  • post_idx — int — 외래 키 → product.post_idx — NOT NULL
  • category_idx — int — 외래 키 → category.category_idx — NOT NULL

productimage

  • Key — VARCHAR(255) — 기본 키 — NOT NULL
  • product_idx — int — 외래 키 → product.product_idx — NOT NULL
  • image_url — varchar(200) — NOT NULL
  • createtime — Timestamp — NOT NULL
  • updatetime — Timestamp — NOT NULL

user

  • user_idx — int — 기본 키 — NOT NULL
  • name — varchar(20)
  • sex — varchar(10)
  • birthday — Date
  • Field4 — VARCHAR(255)