GoJiSik

Tables (4)

Answer (답변)

  • id (아이디) — Long — Primary key — NOT NULL
  • question_id (질문 아이디) — Long — Foreign key → Question.id — NOT NULL
  • user_id (유저 아이디) — Long — Foreign key → User.id — NOT NULL
  • contents (내용) — String
  • createdDate (작성날짜) — LocalDateTime
  • isAdopted (채택 여부) — Boolean

File (파일)

  • Id (아이디) — Long — Primary key — NOT NULL
  • post_id (게시글 아이디) — Long — Foreign key → Question.id — NOT NULL
  • type (파일타입) — Enum
  • originFileName (원본파일명) — String
  • savedFileName (저장경로명) — String
  • fileSize (파일사이즈) — Long

Question (질문)

  • id (아이디) — Long — Primary key — NOT NULL
  • user_id (유저 아이디) — Long — Foreign key → User.id — NOT NULL
  • category (카테고리) — Value
  • title (제목) — String
  • contents (내용) — String
  • createdDate (작성날짜) — LocalDateTime
  • hits (조회수) — Integer

User (유저)

  • id (아이디) — Long — Primary key — NOT NULL
  • phone_num (전화번호) — String
  • password (비밀번호) — String
  • name (이름) — String
  • birthday (생년월일) — LocalDateTime
  • font_size (폰트 사이즈) — Integer
  • grade (등급) — enum
  • point (포인트) — Integer