PHP_Board
Tables (6)
ACCOUNT (계정)
- account_no (계정 PK) — INT — Primary key — NOT NULL
- account_id (계정 아이디) — text — NOT NULL — INDEX
- account_pw (계정 비밀번호) — varchar(60) — NOT NULL
- name (이름) — text — NOT NULL
- email (이메일) — text — NOT NULL
- tel (전화번호) — text — NOT NULL
- zip (우편번호) — INT — NOT NULL
- addr (주소) — text — NOT NULL
- addr_detail (상세주소) — text — NOT NULL
- reg_date (생성일) — datetime — NOT NULL
- last_login_date (마지막 로그인 시간) — datetime
- last_modify_date (마지막 수정 시간) — datetime
- del_date (계성 삭제일) — datetime
- del_tf (계정 삭제 여부) — char(1)
- is_admin (관리자 여부) — char(1) — NOT NULL
ATTACH_FILE (첨부파일)
- attach_file_no (첨부파일 PK) — INT — Primary key — NOT NULL
- attach_file_name (저장 파일명) — text — NOT NULL
- attach_file_original_name (원본 파일명) — text — NOT NULL
- attach_file_size (파일크기(KB/MB))
- attach_file_size_bytes (파일크기(Bytes))
- attach_file_extension (파일 확장자)
- attach_file_path (파일 경로)
- attach_file_date (파일 저장일)
- attach_file_mime_type (파일 MIME 타입)
- attach_file_group_no (첨부파일그룹 PK) — INT — Foreign key → ATTACH_FILE_GROUP.attach_file_group_no — NOT NULL — INDEX
ATTACH_FILE_GROUP (첨부파일그룹)
- attach_file_group_no (첨부파일그룹 PK) — INT — Primary key — NOT NULL
- attach_file_group_date (첨부파일그룹 생성일) — datetime — NOT NULL
BOARD (게시판)
- board_no (게시글 PK) — INT — Primary key — NOT NULL
- title (게시글 제목) — text — NOT NULL
- content (게시글 내용) — text
- writer (작성자) — text
- cate_code (카테고리 코드) — varchar(20)
- reg_date (작성일) — datetime
- modify_date (수정일) — datetime
- view_cnt (조회수) — int
- del_tf (삭제 여부) — char(1) — INDEX
- important_noti_tf (중요 공지 여부) — char(1) — INDEX
- group_root (계층형 원글 번호) — int — NOT NULL
- group_no (계층형 답글 번호) — int — NOT NULL — INDEX
- group_order (계층형 답글 정렬 순서) — int — NOT NULL
- group_depth (계층형 답글 깊이) — int — NOT NULL — INDEX
- attach_file_group_no (첨부파일그룹 PK) — INT — Foreign key → ATTACH_FILE_GROUP.attach_file_group_no — NOT NULL
COMMENT (댓글)
- comment_no (댓글 PK) — INT — Primary key — NOT NULL
- comment_content (댓글 내용) — text — NOT NULL
- comment_reg_date (댓글 작성 시간) — datetime
- comment_del_tf (댓글 삭제 여부) — char(1) — INDEX
- comment_board_no (게시글 PK) — INT — Foreign key → BOARD.board_no — NOT NULL
- comment_writer (계정 PK) — INT — Foreign key → ACCOUNT.account_no — NOT NULL
COMM_CODE (공통코드)
- comm_code (공통코드 PK) — varchar(20) — Primary key — NOT NULL
- comm_group_code (공통코드 그룹 코드) — varchar(20) — NOT NULL
- comm_group_code_name (공통코드 그룹 이름) — text — NOT NULL
- comm_code_name_kor (공통코드 한글 이름) — text — NOT NULL
- comm_code_name_eng (공통코드 영문 이름) — text — NOT NULL
- comm_code_option1 (공통코드 옵션1) — text
- comm_code_option2 (공통코드 옵션2) — text
- use_tf (사용 여부) — char(1) — NOT NULL — 'T'