Todo복습

테이블 (4)

Member (멤버)

  • id (아이디) — bigserial — 기본 키 — NOT NULL
  • email (이메일) — txt
  • nickname (닉네임) — text
  • password (비밀번호) — text

comment (댓글)

  • id (아이디) — bigserial — 기본 키 — NOT NULL
  • todo_id (게시글아이디) — bigserial — 외래 키 → todo.id — NOT NULL
  • member_id (멤버아이디) — bigserial — 외래 키 → todo.member_id — NOT NULL
  • content (내용) — text
  • created_at (작성일) — LocalDateTime

todo (게시글)

  • id (아이디) — bigserial — 기본 키 — NOT NULL
  • member_id (멤버아이디) — bigserial — 외래 키 → Member.id — NOT NULL
  • title (제목) — text
  • content (내용) — text
  • created_at (작성일) — LocalDateTime
  • done (완료여부) — boolean

todo_like (좋아요)

  • id (아이디) — bigserial — 기본 키 — NOT NULL
  • todo_id (게시글아이디) — bigserial — 외래 키 → todo.id — NOT NULL
  • member_id (멤버아이디) — bigserial — 외래 키 → todo.member_id — NOT NULL