파이널

테이블 (6)

Comment (comment)

  • commentid (Key) — Long — 기본 키 — NOT NULL
  • postId (Key2) — Long — 외래 키 → Post.postId — NOT NULL
  • userId (Key22) — Long — 외래 키 → Post.userId — NOT NULL
  • comment (Field) — String

Contents

  • contentsId (Key) — Long — 기본 키 — NOT NULL
  • postId (Key2) — Long — 외래 키 → Post.postId — NOT NULL
  • userId (Key22) — Long — 외래 키 → Post.userId — NOT NULL
  • image (Field) — String
  • content (Field2) — String

Love

  • loveId (Key) — Long — 기본 키 — NOT NULL
  • postId (Key2) — Long — 외래 키 → Post.postId — NOT NULL
  • userId (Key3) — Long — 외래 키 → User.userId — NOT NULL

Post

  • postId (Key) — Long — 기본 키 — NOT NULL
  • userId (Key2) — Long — 외래 키 → User.userId — NOT NULL
  • likeCount (Field2) — int
  • commentCount (Field3) — int
  • title (Field4) — String
  • category (Field6) — String
  • region (Field7) — String
  • item (Field8) — String
  • postCate (Field9) — String
  • process (Field) — String

Timestamp (timestamp)

  • createAt (Field) — localdate
  • modifyAt (Field2) — localdate

User

  • userId (Key) — Long — 기본 키 — NOT NULL
  • username (Field) — String
  • password (Field2) — String
  • nickname (Field3) — String
  • userType (Field4) — int
  • companyNum (Field5) — String
  • phoneNum (Field6) — String
  • addressCategory (Field7) — String
  • addressDetail (Field8) — String
  • introduction (Field9) — String