test01

테이블 (3)

게시글 (post)

  • 게시글번호 (post_id) — primary key, sequence — 기본 키 — NOT NULL
  • 회원 번호 (user_id) — FK, ON DELETE CASCADE — 외래 키 → 회원.회원 번호 — NOT NULL
  • 게시글제목 (post_title) — not null
  • 게시글내용 (post_contents)
  • 등록시간 (post_regTime) — defalut sysdate

댓글 (comment)

  • 댓글번호 (comment_id) — primary key, sequence — 기본 키 — NOT NULL
  • 게시글번호 (post_id) — FK, ON DELETE CASCADE — 외래 키 → 게시글.게시글번호 — NOT NULL
  • 회원 번호 (user_id) — FK, ON DELETE CASCADE — 외래 키 → 게시글.회원 번호 — NOT NULL
  • 내용 (comment_contents) — not null
  • 작성시간 (comment_regTime) — defalut sysdate

회원 (users)

  • 회원 번호 (user_id) — primary key, sequence — 기본 키 — NOT NULL
  • 회원아이디 (user_login_id) — not null
  • 비밀번호 (user_pw) — not null
  • 이메일 (user_email) — not null
  • 닉네임 (nickName) — not null