MyErd

테이블 (5)

게시글 (CopyOfUser)

  • 게시글PK (id) — Long — 기본 키 — NOT NULL — @GeneratedValue(strategy = GenerationType.IDENTITY)
  • 아이디(PK) (id2) — Long — 외래 키 → 유저.유저PK — NOT NULL — @GeneratedValue(strategy = GenerationType.IDENTITY)
  • 타이틀 (title) — String — NOT NULL — notnull, unique
  • 내용 (contents) — String — NOT NULL
  • 유저 권한 (Field)

게시글 좋아요 (LikesMemo)

  • 아이디(PK) (id) — Long — 기본 키 — NOT NULL — @GeneratedValue(strategy = GenerationType.IDENTITY)
  • 아이디(PK) (id2) — Long — 외래 키 → 유저.유저PK — NOT NULL — @GeneratedValue(strategy = GenerationType.IDENTITY)

댓글 (Comments)

  • 댓글PK (id) — Long — 기본 키 — NOT NULL — @GeneratedValue(strategy = GenerationType.IDENTITY)
  • 아이디(PK) (id2) — Long — 외래 키 → 게시글.게시글PK — NOT NULL — @GeneratedValue(strategy = GenerationType.IDENTITY)
  • 유저이름 (userName) — String — NOT NULL
  • 댓글 내용 (comment) — String — NOT NULL

댓글 좋아요 (CopyOfLikesMemo)

  • 아이디(PK) (id) — Long — 기본 키 — NOT NULL — @GeneratedValue(strategy = GenerationType.IDENTITY)
  • 아이디(PK) (id3) — Long — 외래 키 → 유저.유저PK — NOT NULL — @GeneratedValue(strategy = GenerationType.IDENTITY)

유저 (User)

  • 유저PK (id) — Long — 기본 키 — NOT NULL — @GeneratedValue(strategy = GenerationType.IDENTITY)
  • 유저이름 (username) — String — NOT NULL — notnull, unique
  • 패스워드 (password) — String — NOT NULL
  • 유저 권한 (Field)