Board

Tables (3)

attachments (첨부파일)

  • 파일 아이디 (file_id) — PK — Primary key — NOT NULL
  • 글 번호 (board_no) — FK — Foreign key → board.글 번호
  • 파일명 (file_name) — not null
  • 파일 경로 (file_path) — not null

board (게시글)

  • 글 번호 (board_no) — PK — Primary key
  • 등록자 (create_usr) — FK — Foreign key → users.사용자 아이디 — NOT NULL
  • 수정자 (update_usr) — FK — Foreign key → users.사용자 아이디 — NOT NULL
  • 제목 (subject) — not null — NOT NULL
  • 내용 (content_text) — not null
  • 조회수 (view_cnt) — default: 0
  • 작성일 (created_at) — default: Now()
  • 수정일 (updated_at) — default: Now()
  • 삭제여부 (deleted_yn) — default: false
  • 그룹 번호 (group_no) — default: board_no
  • 그룹 내 순서 (group_ord) — default: 0
  • 들여쓰기 깊이 (group_depth) — default: 0

users (사용자)

  • 사용자 아이디 (user_id) — PK — Primary key — NOT NULL
  • 사용자 이름 (user_name) — not null
  • 비밀번호 (password) — not null
  • 권한 (role) — default: "회원"