개인과제

테이블 (6)

댓글 (Comment)

  • id (commentId) — 기본 키 — NOT NULL — autoIncrement
  • 댓글내용 (comment Contents) — String — NOT NULL
  • 작성일 (createdAt) — Date — NOT NULL — default now
  • 수정일 (updatedAt) — Date — NOT NULL — default now (수정시각)
  • 유저아이디 (userId) — int — 외래 키 → 일정.유저아이디 — NOT NULL — autoIncrement

댓글 (Comment)

  • 아이디 (commentId) — int — 기본 키 — NOT NULL — autoIncrement
  • 댓글내용 (contents) — String — NOT NULL
  • 생성일 (createdAt) — LocalDateTime — NOT NULL
  • 수정일 (updatedAt) — LocalDateTime
  • 일정 (email) — Post — NOT NULL — @ManyToOne @JoinColumn Post post
  • 아이디 (postId) — int — 외래 키 → 일정.아이디 — NOT NULL — autoIncrement

매니저?(UserPosts) (UserPosts)

  • 아이디 (upId) — int — 기본 키 — NOT NULL — autoIncrement
  • 생성일 (createdAt) — LocalDateTime — NOT NULL
  • Field — LocalDateTime — NOT NULL
  • 아이디 (post) — Post — 외래 키 → 일정.아이디 — NOT NULL — autoIncrement @ManyToOne @JoinColumn Post post
  • 아이디 (user) — User — 외래 키 → 유저.아이디 — NOT NULL — autoIncrement @ManyToOne @JoinColumn User user

유저 (User)

  • 아이디 (userId) — int — 기본 키 — NOT NULL — autoIncrement
  • 이름 (username) — String — NOT NULL
  • 이메일 (email) — String — NOT NULL
  • 생성일 (createdAt) — LocalDateTime — NOT NULL
  • 수정일 (updatedAt) — LocalDateTime

일정 (Post)

  • 유저아이디 (userId) — int — 기본 키 — NOT NULL — autoIncrement
  • 제목 (title) — String — NOT NULL
  • 내용 (contents) — String — NOT NULL — 예정 일정
  • 비밀번호 (password) — String — NOT NULL — 수정, 삭제시 필요한 비밀번호 이거 암호화 해야할듯?
  • 매니저 (manager) — int — NOT NULL
  • 저장일 (createdAt) — Date — NOT NULL — DB저장시간, 날짜
  • 수정일 (updatedAt) — Date — NOT NULL — 수정일

일정 (Post)

  • 아이디 (postId) — int — 기본 키 — NOT NULL — autoIncrement
  • 제목 (title) — String — NOT NULL
  • 내용 (contents) — String — NOT NULL
  • 생성일 (createdAt) — LocalDateTime — NOT NULL
  • 수정일 (updatedAt) — LocalDateTime — NOT NULL
  • 유저 엔티티 (user) — User — NOT NULL — ManyToOne
  • 아이디 (userId) — int — 외래 키 → 유저.아이디 — NOT NULL — autoIncrement