efub_assign2

테이블 (12)

게시글 (post)

  • ID (post_id) — NOT NULL — 기본 키 — NOT NULL
  • Key — 외래 키 → 게시판.Key — NOT NULL
  • ID (account_id) — NOT NULL — 외래 키 → 유저.ID — NOT NULL — auto_increment
  • 게시판 종류 (boards) — NOT NULL
  • 작성자 (memberID) — NOT NULL
  • 작성자 표시 방법 선택 (ownerExpress) — NOT NULL — 익명 or 닉네임 선택 가능 여부
  • 글 내용 (postContents) — NULL
  • 생성일 (postCreateDate) — NOTNULL — NOT NULL
  • 수정일 (postModificatedDate) — NOT NULL

게시글 좋아요 (postLikes)

  • ID (post_id) — NOT NULL — 외래 키 → 게시글.ID — NOT NULL
  • Key — 외래 키 → 게시글.Key — NOT NULL
  • 게시글 id (postID) — NOT NULL — NOT NULL
  • 좋아요 누른 member의 id (memberID) — NOT NULL — NOT NULL

게시판 (boards)

  • Key — 기본 키 — NOT NULL
  • 게시판 이름 (board_ID) — NOT NULL
  • 게시판 설명 (boardsExplanation) — NOT NULL
  • 게시판 공지 (boardsNotice) — NOT NULL
  • 게시판 주인 (boardsManager) — NOT NULL — NOT NULL
  • 생성일 (boardsCreatedDate) — NOTNULL — NOT NULL
  • 수정일 (boardsModifiedDate) — NOTNULL — NOT NULL

댓글 (comments)

  • ID (post_id) — NOT NULL — 외래 키 → 게시글.ID — NOT NULL
  • Key — 외래 키 → 게시글.Key — NOT NULL
  • 내용 (commentsContents) — NOT NULL
  • 작성자 (memberID) — NOT NULL
  • 글 id (postID) — NOT NULL
  • 생성일 (commentCreatedDate) — NOTNULL
  • 수정일 (commentsModifiedDate) — NOTNULL

댓글 알림 (commentNotification)

  • ID (post_id) — NOT NULL — 외래 키 → 댓글.ID — NOT NULL
  • Key — 외래 키 → 댓글.Key — NOT NULL
  • 게시판 이름 (boardsID) — NOT NULL
  • 종류 (type) — NOT NULL — 댓글
  • 내용 (commentContents) — NOT NULL — ~225자
  • 생성 시간 (commentCreatedTime) — NOT NULL

댓글 좋아요 (commentsLikes)

  • ID (post_id) — NOT NULL — 외래 키 → 댓글.ID — NOT NULL
  • Key — 외래 키 → 댓글.Key — NOT NULL
  • 생성한 사람 (memberID) — NOT NULL — NOT NULL
  • 댓글 ID (commentID) — NOT NULL — NOT NULL

유저 (member)

  • ID (account_id) — NOT NULL — 기본 키 — NOT NULL — auto_increment
  • 이메일 (email) — NOT NULL — unique
  • 학번 (studID) — NOT NULL — unique
  • 학교 (school) — NOT NULL
  • 닉네임 (nickname) — NOT NULL — 1~8자
  • 비밀번호 (password) — NOT NULL — 16자 이상 (영문,숫자, 특수문자 포함)
  • 가입 일자 (joined) — NOT NULL
  • 수정 일자 (updated) — NULL — NOT NULL

유저 (Account)

  • ID (accountId) — NOT NULL — 기본 키 — NOT NULL — auto_increment
  • 닉네임 (nickname) — NOT NULL — 1~8자
  • 가입 일자 (joined) — NOT NULL
  • 수정 일자 (updated) — NULL — NOT NULL

쪽지 (msg)

  • ID (account_id) — NOT NULL — 외래 키 → 쪽지방.ID — NOT NULL — auto_increment
  • messageRoom id (msgRoomID) — NOT NULL
  • 보낸 사람 ID (receiverID) — NOT NULL
  • 메세지 내용 (msgContents) — NOT NULL — ~225자
  • 생성 시각 (보낸 시각) (msgSendedTime) — NOT NULL
  • 조회한 사람의 id (memberID) — NOT NULL

쪽지방 (msgRooms)

  • ID (account_id) — NOT NULL — 외래 키 → 유저.ID — NOT NULL — auto_increment
  • 처음 보낸 사람 id (members_id) — NOT NULL — NOT NULL
  • 처음받는사람 id (receiver_id) — NOT NULL — NOT NULL
  • 첫 쪽지 내용 (msgContents) — NOT NULL
  • 생성 시각 (보낸 시각) (msgRoomsCreatedTime) — NOTNULL
  • 시작 쪽지 id (firstMsgId) — NOT NULL

쪽지방 알림 (msgRoomsNotifications)

  • ID (account_id) — NOT NULL — 외래 키 → 쪽지방.ID — NOT NULL — auto_increment
  • 종류 (type) — NOT NULL — 쪽지방
  • 알림내용 (msgRoomsContents) — NOT NULL
  • 시간 (notificationTime) — NOT NULL

트윗 (tweet)

  • ID (tweetId) — int(10) — 기본 키 — NOT NULL — auto_increment
  • ID (accountId) — NOT NULL — 외래 키 → 유저.ID — NOT NULL — auto_increment
  • 트윗내용 (content) — CHAR(1000)
  • 글 생성일 (created_at) — CHAR(1000)
  • 글 수정일 (updated) — CHAR(1000)