community

테이블 (7)

게시물 (tb_post)

  • 기본키 (post_id) — bigInt — 기본 키 — NOT NULL
  • 카테고리 (category_id) — bigInt — 외래 키 → 카테고리.기본키 — NOT NULL
  • 제목 (post_title) — varchar(50)
  • 내용 (post_content) — varchar(50)
  • 조회수 (post_view) — bigint
  • 등록일 (reg_dt) — DateTime
  • 수정일 (chg_dt) — DateTime

권한 (tb_authority)

  • 기본키 (auth_id) — bigInt — 기본 키 — NOT NULL
  • 기본키 (user_id) — bigInt — 외래 키 → 유저.기본키 — NOT NULL
  • 권한명 (auth_name) — varchar(50)
  • 등록일 (reg_dt) — DateTime
  • 수정일 (chg_dt) — DateTime

댓글 (tb_comment)

  • 기본키 (comment_id) — bigInt — 기본 키 — NOT NULL
  • 게시글 (post_id) — bigInt — 외래 키 → 게시물.기본키 — NOT NULL
  • 유저 (user_id) — bigInt — 외래 키 → 유저.기본키 — NOT NULL
  • 내용 (post_content) — varchar(50)
  • 등록일 (reg_dt) — DateTime
  • 수정일 (chg_dt) — DateTime

유저 (tb_users)

  • 기본키 (user_id) — bigInt — 기본 키 — NOT NULL
  • 이메일(아이디) (user_email) — varchar(50)
  • 패스워드 (user_password) — varchar(50)
  • 사진 (user_picture) — varchar(255)
  • 메일 인증여부 (user_authenticate_email) — enum('Y':'N)
  • 패스워드 수정일 (user_pwd_modify_date) — auto
  • Oauth 제공자 (user_oauth_provider) — varchar(50)
  • 계정상태 (user_status) — enum('active':'lock')
  • 등록일 (reg_dt) — DateTime
  • 수정일 (chg_dt) — DateTime

유저 게시물 (CopyOftb_post)

  • 기본키 (user_post_id) — bigInt — 기본 키 — NOT NULL
  • 유저 (user_id) — bigInt — 외래 키 → 유저.기본키 — NOT NULL
  • 게시물 (post_id) — bigInt — 외래 키 → 게시물.기본키 — NOT NULL

카테고리 (tb_category)

  • 기본키 (category_id) — bigInt — 기본 키 — NOT NULL
  • 카테고리명 (category_name) — varchar(50)
  • 등록일 (reg_dt) — DateTime
  • 수정일 (chg_dt) — DateTime

토큰 (tb_token)

  • 기본키 (token_id) — bigInt — 기본 키 — NOT NULL
  • 유저 (user_id) — bigInt — 외래 키 → 유저.기본키 — NOT NULL
  • 토큰 값 (token_value) — varchar(255)