vacation system

Tables (5)

holiday (공휴일)

  • id — long — Primary key — NOT NULL
  • holiday_date (공휴일 일자) — date
  • name (공휴일 이름) — varchar

user (회원 테이블)

  • user_id (유저 아이디) — bigint — Primary key — NOT NULL
  • user_name (유저 이름) — VARCHAR
  • real_name (이름) — VARCHAR
  • email (이메일) — VARCHAR
  • password (비밀번호) — VARCHAR
  • join_date (입사일) — date

vacation_main (휴가 정보)

  • user_id (유저 아이디) — bigint — Foreign key → user.user_id — NOT NULL
  • vacation_total_start_date (휴가 지급 시작 기간) — date
  • total_vacation (총 휴가) — float
  • remain_vacation (남은 휴가) — float

vacation_type (휴가 타입)

  • vacation_type_id (휴가 사용 id) — bigint — Primary key — NOT NULL
  • name (휴가 이름) — varchar
  • vacation_count (휴가 갯수) — float

vacation_use (휴가 사용 테이블)

  • vacation_use_id (휴가 사용 번호) — bigint — Primary key — NOT NULL
  • cancel_date (휴가 취소 일) — datetime
  • vacation_start_date (휴가 시작 일) — datetime
  • vacation_end_date (휴가 종료 일) — datetime
  • comment (코멘트) — varchar
  • used_vacation (사용한 휴가 갯수) — float
  • vacation_type_id (휴가 사용 id) — bigint — Foreign key → vacation_type.vacation_type_id — NOT NULL
  • user_id (유저 아이디) — bigint — Foreign key → user.user_id — NOT NULL