NCT Ver_2

Tables (23)

article (게시판)

  • PK (article_id) — INT — Primary key — NOT NULL — Auggestion Id
  • 제목 (title) — VARCHAR(255) — NOT NULL — 건의 게시판 제목
  • 내용 (content) — VARCHAR(1000) — NOT NULL — 건의 게시판 내용
  • 신고 누적 (declaration_count) — INT — NOT NULL — 신고 누적, 5번 이상이면 삭제
  • 좋아요 (like_count) — INT — NOT NULL — 좋아요
  • 등록 년, 월, 일 (article_date) — date — NOT NULL
  • PK (suggestion_classification_id) — INT — Foreign key → article_category.PK — NOT NULL — Suggestion Classification Id

article_category (게시판 카테고리)

  • PK (suggestion_classification_id) — INT — Primary key — NOT NULL — Suggestion Classification Id
  • 분류 (category) — ARTICLE_CATEGORY(10) — NOT NULL — 분류 (자유, 공부, 정보)

article_comment (게시판 댓글)

  • PK (suggestion_comment_id) — INT — Primary key — NOT NULL
  • 내용 (content) — VARCHAR(255) — NOT NULL — 댓글 내용
  • Field (comment_date) — DATE — NOT NULL — 댓글 달린 금일 년, 월, 일
  • Field (declaration_count) — INT — NOT NULL — 신고 누적 5번이상 삭제
  • Field (like_count) — INT — NOT NULL — 좋아요
  • PK (article_id) — INT — Foreign key → article.PK — NOT NULL — Auggestion Id

attendance_check_time (멤버의 출석 시간)

  • PK (attendance_time_id) — INT — Primary key — NOT NULL — Attendance Time Id
  • 월요일 출석시간 (monday) — ATTENDANCE_TIME(10) — NOT NULL — 01 <= monday <= 24
  • 화요일 출석시간 (tuesday) — ATTENDANCE_TIME(10) — NOT NULL — 01 <= monday <= 24
  • 수요일 출석시간 (wednesday) — ATTENDANCE_TIME(10) — NOT NULL — 01 <= monday <= 24
  • 목요일 출석시간 (thursday) — ATTENDANCE_TIME(10) — NOT NULL — 01 <= monday <= 24
  • 금요일 출석시간 (friday) — ATTENDANCE_TIME(10) — NOT NULL — 01 <= monday <= 24
  • 토요일 출석 시간 (saturday) — ATTENDANCE_TIME(10) — NOT NULL — 01 <= monday <= 24
  • 일요일 출석 시간 (sunday) — ATTENDANCE_TIME(10) — 01 <= monday <= 24
  • 장기 휴가 신청 (long_vacation) — LongVacation(15) — NOT NULL — ENUM # 'NOT_APPLIED' 'APPLIED'

attendance_number (출석 번호)

  • PK (attendance_number_id) — INT — Primary key — NOT NULL — Attendance Number Id
  • 랜덤 출석 번호 (attendance_number) — VARCHAR(10) — NOT NULL — 랜덤 4자리 숫자
  • 금일 년, 월, 일 (attendance_date) — DATE — NOT NULL — 금일 년, 월, 일
  • PK (club_id) — INT — Foreign key → club.PK — NOT NULL — Club Id

attendance_state (출석 현황 관련 정보)

  • PK (attendance_state_id) — INT — Primary key — NOT NULL
  • PK (attendance_time_id) — INT — Foreign key → attendance_check_time.PK — NOT NULL — Attendance Time Id

attendance_week (출석 날짜 설정 (월, 화, 수, 목, 금, 토, 일)중에 고른다.)

  • PK (attendance_week_id) — INT — Primary key — NOT NULL — attendance_week_id
  • 월 (monday) — POSSIBLE_STATUS(15) — NOT NULL — POSSIBLE, IMPOSSIBLE
  • 화 (tuesday) — POSSIBLE_STATUS(15) — NOT NULL — POSSIBLE, IMPOSSIBLE
  • 수 (wednesday) — POSSIBLE_STATUS(15) — NOT NULL — POSSIBLE, IMPOSSIBLE
  • 목 (thursday) — POSSIBLE_STATUS(15) — NOT NULL — POSSIBLE, IMPOSSIBLE
  • 금 (friday) — POSSIBLE_STATUS(15) — NOT NULL — POSSIBLE, IMPOSSIBLE
  • 토 (saturday) — POSSIBLE_STATUS(15) — NOT NULL — POSSIBLE, IMPOSSIBLE
  • 일 (sunday) — POSSIBLE_STATUS(15) — NOT NULL — POSSIBLE, IMPOSSIBLE

attendance_week_date (일주일 출석 결과)

  • PK (attendance_week_date_id) — INT — Primary key — NOT NULL — Attendance Week Date Id
  • 월요일 출석 결과 (monday) — ATTENDANCE_STATE(15) — NOT NULL — '미정', '출석', '결석', '휴가'
  • 화요일 출석 결과 (tuesday) — ATTENDANCE_STATE(15) — NOT NULL — '미정', '출석', '결석', '휴가'
  • 수요일 출석 결과 (wednesday) — ATTENDANCE_STATE(15) — NOT NULL — '미정', '출석', '결석', '휴가'
  • 목요일 출석 결과 (thursday) — ATTENDANCE_STATE(15) — NOT NULL — '미정', '출석', '결석', '휴가'
  • 금요일 출석 결과 (friday) — ATTENDANCE_STATE(15) — NOT NULL — '미정', '출석', '결석', '휴가'
  • 토요일 출석 결과 (saturday) — ATTENDANCE_STATE(15) — NOT NULL — '미정', '출석', '결석', '휴가'
  • 일요일 출석 결과 (sunday) — ATTENDANCE_STATE(15) — NOT NULL — '미정', '출석', '결석', '휴가'
  • 월요일 년월일 (monday_date) — DATE — NOT NULL — 월요일 년월일
  • 일요일 년월일 (sunday_date) — DATE — NOT NULL — 일요일 년월일
  • PK (attendance_state_id) — INT — Foreign key → attendance_state.PK — NOT NULL

club (소속)

  • PK (club_id) — INT — Primary key — NOT NULL — Club Id
  • 팀 이름 (club_name) — VARCHAR(30) — NOT NULL — 팀이음
  • 팀 소개 (club_introduce) — VARCHAR(1000) — NOT NULL — ""
  • 팀 프로필 사진 (club_profile_image) — VARCHAR(200) — NOT NULL — ""
  • PK (club_control) — INT — Foreign key → club_control.PK — NOT NULL

club_article (건의 게시판)

  • PK (club_article_id) — INT — Primary key — NOT NULL — Club Article Id
  • 제목 (title) — VARCHAR(255) — NOT NULL — 건의 게시판 제목
  • 내용 (content) — VARCHAR(1000) — NOT NULL — 건의 게시판 내용
  • 게시물 답변 확인 체크 (answer_check) — SUGGESTION_CHECK(10) — NOT NULL — '확인', '미확인'
  • 좋아요 (like_count) — INT — NOT NULL — 좋아요
  • 답변 (suggestion_answer) — VARCHAR(1000) — NOT NULL
  • 등록 년, 월, 일 (suggestion_date) — date — NOT NULL
  • 분류 (classification) — CLUB_ARTICLE_CLASSIFICATION(15) — NOT NULL — 분류 ( 비밀, 자유, 건의)
  • 익명성 (anonymity) — ANONYMITY — NOT NULL
  • FK (club_id) — INT — NOT NULL
  • PK (club_member_id) — INT — Foreign key → club_member.PK — NOT NULL — Club Member Id

club_article_comment (팀 게시판 댓글)

  • PK (club_article_comment_id) — INT — Primary key — NOT NULL
  • 댓글 내용 (content) — VARCHAR(255) — NOT NULL — 댓글 내용
  • 댓글 날짜 (comment_date) — DATE — NOT NULL — 댓글 달린 금일 년, 월, 일
  • 댓글 좋아요 (like_count) — INT — NOT NULL — 좋아요
  • 신고 누적 (declaration_count) — INT — NOT NULL — 5번 이상이면 삭제
  • 멤버 id (member_id) — INT — NOT NULL — 댓글을 쓴 사람을 id
  • 익명성 (anonymity) — ANONYMITY — NOT NULL
  • PK (club_article_id) — INT — Foreign key → club_article.PK — NOT NULL — Club Article Id

club_control (팀 설정 관리 테이블)

  • PK (club_control_id) — INT — Primary key — NOT NULL — Club Control Id
  • PK (attendance_week_id) — INT — Foreign key → attendance_week.PK — NOT NULL — attendance_week_id
  • PK (vacation_count_control_id) — INT — Foreign key → vacation_token_control.PK — NOT NULL — vacation_count_control_id

club_grade (등급)

  • PK (club_grade_id) — club_grade_id — Primary key — NOT NULL — Club Grade Id
  • 팀원 등급 (club_grade) — CLUB_GRADE(15) — NOT NULL — LEADER, DEPUTY_LEADER, MEMBER, DORMANT

club_introduce_image (팀 소개 사진)

  • PK (club_intruduce_image_id) — INT — Primary key — NOT NULL — Club Intruduce Image Id
  • PK (club_introduce_image) — VARCHAR(200) — NOT NULL — ""
  • PK (club_id) — INT — Foreign key → club.PK — NOT NULL — Club Id

club_member (Untitled)

  • PK (club_member_id) — INT — Primary key — NOT NULL — Club Member Id
  • PK (member_id) — INT — Foreign key → member.PK — NOT NULL — member_id
  • PK (club_id) — INT — Foreign key → club.PK — NOT NULL — Club Id
  • PK (club_grade_id) — club_grade_id — Foreign key → club_grade.PK — NOT NULL — Club Grade Id
  • PK (attendance_state_id) — INT — Foreign key → attendance_state.PK — NOT NULL
  • PK (club_member_information_id) — INT — Foreign key → club_member_information.PK — NOT NULL — club_member_information_id

club_member_custom_information (클럽의 지원 정보 입력을 커스텀으로 생성한)

  • PK (club_member_custom_information_id) — INT — Primary key — NOT NULL
  • 커스텀의 내용 (custom_content) — VARCHER(255) — NOT NULL — 커스텀을 위한 내용
  • PK (club_member_information_id) — INT — Foreign key → club_member_information.PK — NOT NULL — club_member_information_id
  • PK (custom_club_apply_information_id) — INT — Foreign key → custom_club_apply_information.PK — NOT NULL

club_member_information (팀에 소속한 멤버의 정보)

  • PK (club_member_information_id) — INT — Primary key — NOT NULL — club_member_information_id
  • 자기 소개 (introduce) — VARCHAR(1000) — NOT NULL — Self Introduce
  • 즐겨찾기 (favorite_check) — FAVORITE_CHECK(15) — NOT NULL — CHECK, UNCHECK
  • 등록년도 (registration) — VARCHAR(10) — NOT NULL — 2024

custom_club_apply_information (클럽의 지원 정보 입력을 커스텀으로 생성한다.)

  • PK (custom_club_apply_information_id) — INT — Primary key — NOT NULL
  • 커스텀의 내용 (custom_content) — VARCHER(255) — NOT NULL — 커스텀을 위한 내용
  • 커스텀 의 타입 (custom_type) — CUSTOM_TYPE(30) — 글, 체크
  • PK (club_control_id) — INT — Foreign key → club_control.PK — NOT NULL — Club Control Id

member (어플리케이션의 정회원 정보)

  • PK (member_id) — INT — Primary key — NOT NULL — member_id
  • 성 (first_name) — VARCHAR(20) — NOT NULL
  • 이름 (last_name) — VARCHAR(20) — NOT NULL
  • 닉네임 (nick_name) — VARCHAR(30) — NOT NULL — Last Name
  • 이메일 (email) — VARCHAR(40) — NOT NULL — Email
  • 전공 (major) — VARCHAR(20) — NOT NULL — 전공
  • 학번 (studentId) — VARCHAR(15) — NOT NULL — 학번
  • 등록년도 (registration) — VARCHAR(10) — NOT NULL — '2024'

represh token (우리가 사용하는 represh 토큰)

    vacation_token (남은 휴가의 갯수)

    • PK (vacation_token_id) — INT — Primary key — NOT NULL — Vacation Token Id
    • 남은 휴가의 갯수 (vacation_token) — INT — NOT NULL — Vacation Token
    • 휴가 갯수 적용 월 (vacation_token_date) — DATE — NOT NULL — 휴가 갯수 적용되는 월
    • PK (attendance_state_id) — INT — Foreign key → attendance_state.PK — NOT NULL

    vacation_token_control (커스텀이 가능한 휴가 갯수)

    • PK (vacation_token_control_id) — INT — Primary key — NOT NULL — vacation_token_control_id
    • Field (vacation_token_control) — INT — NOT NULL — 토큰의 커스텀하고싶은 숫자

    대댓글 (Untitled3)

    • PK (suggestion_comment_id) — INT — Foreign key → article_comment.PK — NOT NULL
    • 내용 (content) — VARCHAR(255) — NOT NULL — 댓 댓글 내용
    • Field (comment_date) — DATA — NOT NULL — 댓 댓글에 달린 금일 년, 월, 일
    • Field (declaration_count) — INT — NOT NULL — 댓 댓글 신고 누적 5번이상 삭제
    • Field (like_count) — INT — NOT NULL — 댓 댓글 좋아요