academy

테이블 (25)

강의 (lecture)

  • 강의번호 (lecture_no) — int — 기본 키 — NOT NULL
  • 강사 (lecturer) — int — 외래 키 → 직원.사원번호 — NOT NULL
  • 강의명 (lecture_name) — varchar — NOT NULL
  • 강의상세설명 (lecture_content) — varchar — NOT NULL
  • 개강일 (lecture_degin_date) — date — NOT NULL
  • 종강일 (lecture_end_date) — date — NOT NULL
  • 강의실번호 (classroom_no) — int — 외래 키 → 강의실.강의실번호 — NOT NULL
  • 생성일 (create_date) — datetime — NOT NULL
  • 수정일 (update_date) — datetime — NOT NULL
  • 사용여부 (use_yn) — boolean — NOT NULL

강의 -강의시간 (lecture-lecture_weekday)

  • 강의번호 (lecture_no) — int — 외래 키 → 강의.강의번호 — NOT NULL
  • 강의시간번호 (lecture_weekday_no) — int — 외래 키 → 강의시간.강의시간번호 — NOT NULL
  • 생성일 (create_date) — datetime — NOT NULL
  • 수정일 (update_date) — datetime — NOT NULL

강의 신청서 (lecture_approval)

  • 강의신청 번호 (lecture_approval_no) — int — 기본 키 — NOT NULL
  • 신청자 (lecturer) — int — 외래 키 → 직원.사원번호 — NOT NULL — 강사
  • 신청제목 (lecture_approval_title) — varchar — NOT NULL
  • 신청내용 (lecture_approval_content) — varchar — NOT NULL
  • 강의명 (lecture_name) — varchar — NOT NULL
  • 강의내용 (lecture_content) — varchar — NOT NULL
  • 강의실번호 (classroom_no) — int — 외래 키 → 강의실.강의실번호 — NOT NULL
  • 개강일 (lecture_begin_date) — date — NOT NULL
  • 종강일 (lecture_end_date) — date — NOT NULL
  • 결재상태 (lecture_approval_status) — varchar — 외래 키 → 공통테이블.코드 — NOT NULL
  • 현재 결재단계 (lecture_approval_step) — int — NOT NULL
  • 사용여부 (use_yn) — int — NOT NULL
  • 생성일 (create_date) — datetime — NOT NULL
  • 수정일 (update_date) — datetime — NOT NULL

강의 신청서 -강의시간 (lecture_approval-lecture_weekday)

  • 강의시간번호 (lecture_weekday_no) — int — 외래 키 → 강의시간.강의시간번호 — NOT NULL
  • 강의신청 번호 (lecture_approval_no) — int — 외래 키 → 강의 신청서.강의신청 번호 — NOT NULL
  • 생성일 (create_date) — datetime — NOT NULL
  • 수정일 (update_date) — datetime — NOT NULL

강의시간 (lecture_weekday)

  • 강의시간번호 (lecture_weekday_no) — int — 기본 키 — NOT NULL — auto increment
  • 요일번호 (weekday_code) — varchar — 외래 키 → 공통테이블.코드 — NOT NULL
  • 시작시간코드 (begin_time_code) — varchar — 외래 키 → 공통테이블.코드 — NOT NULL
  • 종료시간코드 (end_time_code) — varchar — 외래 키 → 공통테이블.코드 — NOT NULL
  • 생성일 (create_date) — datetime — NOT NULL
  • 수정일 (update_date) — datetime — NOT NULL

강의신청서-파일 (lecture_approval-file)

  • 파일번호 (file_no) — int — 외래 키 → 파일.파일번호 — NOT NULL
  • 강의신청 번호 (lecture_approval_no) — int — 외래 키 → 강의 신청서.강의신청 번호 — NOT NULL
  • 생성일 (create_date) — datetime — NOT NULL
  • 수정일 (update_date) — datetime — NOT NULL

강의실 (classroom)

  • 강의실번호 (classroom_no) — int — 기본 키 — NOT NULL
  • 강의실명 (classroom_name) — varchar — NOT NULL
  • 담당자 (classroom_manager) — int — 외래 키 → 직원.사원번호 — NOT NULL — employee_no
  • 수용인원 (classroom_capacity) — int — NOT NULL
  • 생성일 (create_date) — datetime — NOT NULL
  • 수정일 (update_date) — datetime — NOT NULL

게시판 (board)

  • 공지사항 번호 (board_no) — int — 기본 키 — NOT NULL
  • 제목 (board_title) — text — NOT NULL
  • 내용 (board_content) — text — NOT NULL
  • 작성자 사원번호 (create_employee_no) — int — 외래 키 → 직원.사원번호 — NOT NULL
  • 수정자 사원번호 (update_edmployee_no) — int — 외래 키 → 직원.사원번호 — NOT NULL
  • 조회수 (board_count) — int — NOT NULL
  • 생성일 (create_date) — datetime — NOT NULL
  • 수정일 (update_date) — datetime — NOT NULL

게시판-댓글 (board_comment)

  • 댓글번호 (comment_no) — int — 외래 키 → 댓글.댓글번호 — NOT NULL
  • 공지사항 번호 (board_no) — int — 외래 키 → 게시판.공지사항 번호 — NOT NULL
  • 생성일 (create_date) — datetime — NOT NULL
  • 수정일 (update_date) — datetime — NOT NULL

게시판-파일 (board-file)

  • 공지사항 번호 (board_no) — int — 외래 키 → 게시판.공지사항 번호 — NOT NULL
  • 파일번호 (file_no) — int — 외래 키 → 파일.파일번호 — NOT NULL
  • 생성일 (create_date) — datetime — NOT NULL
  • 수정일 (update_date) — datetime — NOT NULL

결재자 (approval_employee)

  • 결재자 번호 (approval_employee_no) — int — 기본 키 — NOT NULL
  • 근태신청 번호 (attendance_approval_no) — int — 외래 키 → 근태신청서.근태신청 번호
  • 강의신청 번호 (lecture_approval_no) — int — 외래 키 → 강의 신청서.강의신청 번호
  • 결재자 (approver) — int — 외래 키 → 직원.사원번호 — NOT NULL — employee_no
  • 결재순위 (approval_level) — int — NOT NULL
  • 생성일 (create_date) — datetime — NOT NULL
  • 수정일 (update_date) — datetime — NOT NULL

공통테이블 (common)

  • 코드 (code) — varchar — 기본 키 — NOT NULL
  • 명칭 (name) — varchar — NOT NULL
  • 참고1 (refer1) — varchar — NOT NULL
  • 참고2 (refer2) — varchar — NOT NULL
  • 참고3 (refer3) — varchar — NOT NULL
  • 생성일 (create_date) — datetime — NOT NULL
  • 수정일 (update_date) — datetime — NOT NULL

근태 (attendance)

  • 근태번호 (attendance_no) — int — 기본 키 — NOT NULL
  • 사원번호 (employee_no) — int — 외래 키 → 직원.사원번호 — NOT NULL
  • 츨근시간 (attendance_checkin) — datetime
  • 퇴근시간 (attendance_checkout) — datetime
  • 근무상태 (attendance_status) — varchar — 외래 키 → 공통테이블.코드 — NOT NULL
  • 근태유형 (attendance_content) — varchar — 외래 키 → 공통테이블.코드
  • 날짜 (attendance_date) — date — NOT NULL
  • 생성일 (create_date) — datetime — NOT NULL
  • 수정일 (update_date) — datetime — NOT NULL

근태신청서 (attendance_approval)

  • 근태신청 번호 (attendance_approval_no) — int — 기본 키 — NOT NULL
  • 신청자(사원번호) (employee_no) — int — 외래 키 → 직원.사원번호 — NOT NULL
  • 신청제목 (attendance_approval_title) — varchar — NOT NULL
  • 신청내용 (attendance_approval_content) — varchar — NOT NULL
  • 시작날짜 (attendance_approval_begindate) — date — NOT NULL
  • 종료날짜 (attendance_approval_enddate) — date — NOT NULL
  • 신청종류 (attendance_approval_type) — varchar — 외래 키 → 공통테이블.코드 — NOT NULL
  • 현재 결재단계 (attendance_approval_step) — int — NOT NULL
  • 결재상태 (attendance_approval_status) — varchar — 외래 키 → 공통테이블.코드 — NOT NULL
  • 생성일 (create_date) — datetime — NOT NULL
  • 수정일 (update_date) — datetime — NOT NULL

근태신청서-파일 (attendance_approval-file)

  • 파일번호 (file_no) — int — 외래 키 → 파일.파일번호 — NOT NULL
  • 근태신청 번호 (attendance_approval_no) — int — 외래 키 → 근태신청서.근태신청 번호 — NOT NULL
  • 생성일 (create_date) — datetime — NOT NULL
  • 수정일 (update_date) — datetime — NOT NULL

댓글 (comment)

  • 댓글번호 (comment_no) — int — 기본 키 — NOT NULL
  • 댓글내용 (comment_content) — text — NOT NULL
  • 생성일 (create_date) — datetime — NOT NULL
  • 수정일 (update_date) — datetime — NOT NULL
  • 사원번호 (employee_no) — int — 외래 키 → 직원.사원번호 — NOT NULL

메모 (memo)

  • 메모 번호 (memo_no) — int — 기본 키 — NOT NULL
  • 메모 내용 (memo_content) — text
  • 작성자 (writer) — int — 외래 키 → 직원.사원번호 — NOT NULL — employee_no
  • 생성일 (create_date) — datetime — NOT NULL
  • 수정일 (update_date) — datetime — NOT NULL

알림 (notice)

  • 알림번호 (notice_no) — int — 기본 키 — NOT NULL
  • 알림내용 (notice_content) — text — NOT NULL
  • 사용여부 (use_yn) — tinyint — NOT NULL
  • 생성일 (create_date) — datetime — NOT NULL
  • 수정일 (update_date) — datetime — NOT NULL
  • 사원번호 (employee_no) — int — 외래 키 → 직원.사원번호 — NOT NULL

예약 참여자 (reservation_employee)

  • 예약번호 (reservation_no) — int — 외래 키 → 회의실예약.예약번호 — NOT NULL
  • 사원번호 (employee_no) — int — 외래 키 → 직원.사원번호 — NOT NULL
  • 생성일 (create_date) — datetime — NOT NULL
  • 수정일 (update_date) — datetime — NOT NULL

주소 (address)

  • 주소 번호 (address_no) — int — 기본 키 — NOT NULL
  • 주소 (address_name) — varchar — NOT NULL
  • 상세주소 (address_detail) — varchar — NOT NULL
  • 우편번호 (post_code) — int — NOT NULL
  • 생성일 (create_date) — datetime
  • 수정일 (update_date) — datetime

직원 (employee)

  • 사원번호 (employee_no) — int — 기본 키 — NOT NULL — AUTO_INCREMENT
  • 비밀번호 (employee_pw) — varchar
  • 이름 (employee_name) — varchar
  • 성별 (employee_gender) — varchar — 외래 키 → 공통테이블.코드 — code(여자,남자)
  • 주소 번호 (address_no) — int — 외래 키 → 주소.주소 번호
  • 생년월일 (employee_birth) — date
  • 전화번호 (employee_phone) — varchar
  • 부서 (employee_department) — varchar — 외래 키 → 공통테이블.코드 — code(인사팀,운영팀,행정팀)
  • 직책 (employee_position) — varchar — 외래 키 → 공통테이블.코드 — code(팀장,사원)
  • 권한 (employee_role) — varchar — NOT NULL
  • 프로필사진 (photo_file_no) — int — 외래 키 → 파일.파일번호
  • 도장사진 (stamp_file_no) — int — 외래 키 → 파일.파일번호
  • 이메일 (employee_mail) — varchar
  • 입사일 (employee_date) — date
  • 생성일 (create_date) — datetime — NOT NULL
  • 수정일 (update_date) — datetime — NOT NULL
  • 사용여부 (use_yn) — boolean — NOT NULL

캘린더 (calendar)

  • 캘린더 번호 (calendar_no) — int — 기본 키 — NOT NULL
  • 사원번호 (employee_no) — int — 외래 키 → 직원.사원번호 — NOT NULL — AUTO_INCREMENT
  • 예약번호 (reservation_no) — int — 외래 키 → 회의실예약.예약번호
  • 강의번호 (lecture_no) — int — 외래 키 → 강의.강의번호
  • 제목 (calendar_title) — text — NOT NULL
  • 시작날짜 (calendar_start) — varchar — NOT NULL
  • 종료날짜 (calendar_end) — varchar — NOT NULL
  • 표시색상 (calendar_classname) — varchar — NOT NULL
  • 상세설명 (calendar_description) — text — NOT NULL
  • 생성일 (create_date) — datetime — NOT NULL
  • 수정일 (update_date) — datetime — NOT NULL

파일 (file)

  • 파일번호 (file_no) — int — 기본 키 — NOT NULL
  • 서버 파일명 (file_name) — varchar — NOT NULL
  • 파일 확장자 (file_ext) — varchar — NOT NULL
  • 기존 파일명 (file_origin) — varchar — NOT NULL
  • 파일크기 (file_size) — double — NOT NULL
  • 파일타입 (file_type) — varchar — NOT NULL
  • 파일카테고리 (file_category) — varchar — 외래 키 → 공통테이블.코드 — NOT NULL
  • 생성일 (create_date) — datetime — NOT NULL
  • 수정일 (update_date) — datetime — NOT NULL

회의실 (meetingroom)

  • 회의실번호 (meetingroom_no) — int — 기본 키 — NOT NULL
  • 회의실명 (meetingroom_name) — varchar — NOT NULL
  • 담당자 (meetingroom_manager) — int — 외래 키 → 직원.사원번호 — NOT NULL
  • 수용인원 (meetingroom_capacity) — int — NOT NULL
  • 생성일 (create_date) — datetime — NOT NULL
  • 수정일 (update_date) — datetime — NOT NULL

회의실예약 (reservation)

  • 예약번호 (reservation_no) — int — 기본 키 — NOT NULL
  • 회의실번호 (meetingroom_no) — int — 외래 키 → 회의실.회의실번호 — NOT NULL
  • 예약자 (reservation_person) — int — 외래 키 → 직원.사원번호 — NOT NULL
  • 예약날짜 (reservation_date) — date — NOT NULL
  • 예약제목 (reservation_title) — varchar — NOT NULL
  • 시작시간코드 (begin_time_code) — varchar — 외래 키 → 공통테이블.코드 — NOT NULL
  • 종료시간코드 (end_time_code) — varchar — 외래 키 → 공통테이블.코드 — NOT NULL
  • 예약설명 (reservation_content) — text
  • 생성일 (create_date) — datetime — NOT NULL
  • 수정일 (update_date) — datetime — NOT NULL