Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

개인 연차/당직 등록 조회 #4

Open
5 tasks done
nyeJiiii opened this issue Jul 24, 2023 · 0 comments · May be fixed by #42 or #43
Open
5 tasks done

개인 연차/당직 등록 조회 #4

nyeJiiii opened this issue Jul 24, 2023 · 0 comments · May be fixed by #42 or #43
Labels
enhancement New feature or request

Comments

@nyeJiiii
Copy link
Collaborator

nyeJiiii commented Jul 24, 2023

# 테이블

CREATE TABLE dayoff_tb --연차
(
    id             INT PRIMARY KEY AUTO_INCREMENT,
    user_id        INT         NOT NULL,
    num_of_dayoff  FLOAT       NOT NULL, --남은 연차 일수
    start_date     DATE        NOT NULL, --시작일
    end_date       DATE        NOT NULL, --종료일
    reason         VARCHAR(30) NOT NULL, --사유
    type           VARCHAR(10) NOT NULL, --연차, 오전반차, 오후반차
    status         VARCHAR(10) NOT NULL, --대기, 승인, 반려 ENUM DEFAULT '대기'
    apply_at       DATE        NOT NULL,
    process_at     DATE,    

    FOREIGN KEY (user_id) REFERENCES user_tb(id)
);
CREATE TABLE duty_tb --당직
(
    id          INT PRIMARY KEY AUTO_INCREMENT,
    user_id     INT         NOT NULL,
    date        DATE        NOT NULL, --당직 날짜
    reason      VARCHAR(30) NOT NULL, --사유
    status      VARCHAR(10) NOT NULL, --대기, 승인, 반려
    apply_at    DATE        NOT NULL,
    process_at  DATE,

    FOREIGN KEY (user_id) REFERENCES user_tb(id)
);

# API Rest

Enum 대응값
- User position
    `사원(0), 주임(1), 대리(2), 과장(3), 차장(4), 부장(5)`
- User roles
    `일반(0), 관리자(1)`
- Duty/Dayoff status
    `대기(0), 승인(1), 반려(2)`
- Dayoff type
    `연차(0), 오전반차(1), 오후반차(2)`

연차갯수
- 1년 미만 일때
  입사일 기준으로 11개에서 차등 (ex: 5월 입사자(11-5) = 연차6개)
- 1년 이상 일때
   직급별로 15개 +n

# 요구사항정의

  • 연차 등록
  • 연차 삭제
  • 남은 연차 조회
  • 당직 등록
  • 당직 삭제
@nyeJiiii nyeJiiii added the enhancement New feature or request label Jul 26, 2023
This was referenced Aug 1, 2023
gosuuk added a commit that referenced this issue Aug 1, 2023
nyeJiiii added a commit that referenced this issue Aug 1, 2023
nyeJiiii added a commit that referenced this issue Aug 2, 2023
gosuuk added a commit that referenced this issue Aug 2, 2023
nyeJiiii added a commit that referenced this issue Aug 2, 2023
nyeJiiii added a commit that referenced this issue Aug 2, 2023
gosuuk added a commit that referenced this issue Aug 2, 2023
gosuuk added a commit that referenced this issue Aug 2, 2023
dali186 added a commit that referenced this issue Aug 2, 2023
gosuuk added a commit that referenced this issue Aug 3, 2023
nyeJiiii added a commit that referenced this issue Aug 4, 2023
#4 연차, 당직 Response할때 enum 숫자로 표시
gosuuk added a commit that referenced this issue Aug 4, 2023
gosuuk added a commit that referenced this issue Aug 8, 2023
@gosuuk gosuuk mentioned this issue Aug 8, 2023
dali186 added a commit that referenced this issue Aug 8, 2023
@jinakim8 jinakim8 linked a pull request Aug 23, 2023 that will close this issue
@jinakim8 jinakim8 removed a link to a pull request Aug 23, 2023
This was linked to pull requests Aug 23, 2023
@jinakim8 jinakim8 linked a pull request Aug 23, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
1 participant