ERD 설계 1
테이블 (12)
공지게시판 (NOTICE_BOARD)
- Key (notice_no) — NUMBER — 기본 키 — NOT NULL
- Key (manager_id) — VARCHAR(20) — 외래 키 → 케어매니저.Key — NOT NULL
- Field (notice_title) — VARCHAR(100) — NOT NULL
- Field (notice_content) — VARCHAR(2000)
- Field (notice_check) — VARCHAR(100)
- Field (notice_dt) — DATETIME
노쇼관리 (NOSHOW)
- Key (noshow_no) — NUMBER — 기본 키 — NOT NULL
- Key (pro_reno) — NUMBER — 외래 키 → 프로그램 예약.Key — NOT NULL
- Key (pro_cosno) — NUMBER — 외래 키 → 프로그램 예약.Key — NOT NULL
- Key (emp_id) — VARCHAR(20) — 외래 키 → 프로그램 예약.Key — NOT NULL
- Field (dep_no) — VARCHAR(20) — 외래 키 → 프로그램 예약.Field — NOT NULL
- Field (noshow_id) — VARCHAR(20) — NOT NULL
- Field (noshow_nm) — VARCHAR(20) — NOT NULL
- Field (noshow_depno) — VARCHAR(20) — NOT NULL
- Field (noshow_depnm) — VARCHAR(20) — NOT NULL
마사지쿠폰 (TICKET)
- Key (ticket_no) — NUMBER — 기본 키 — NOT NULL
- Key (manager_id) — VARCHAR(20) — 외래 키 → 케어매니저.Key — NOT NULL
- Field (ticket_dt) — DATETIME — NOT NULL
- Field (ticket_sum) — VARCHAR(100) — NOT NULL
부서 (DEPARTMENT)
- Field (dep_no) — VARCHAR(20) — 기본 키 — NOT NULL
- Key (ticket_no) — NUMBER — 외래 키 → 마사지쿠폰.Key — NOT NULL
- Key (dep_nm) — VARCHAR(20) — NOT NULL
익명게시판 (SECRET_BOARD)
- Key (secret_no) — NUMBER — 기본 키 — NOT NULL
- Key (emp_id) — VARCHAR(20) — 외래 키 → 회원관리.Key — NOT NULL
- Field (secret_title) — VARCHAR(100) — NOT NULL
- Field (secret_content) — VARCHAR(2000)
- Field (secret_check) — VARCHAR(100)
- Field (secret_dt) — DATETIME
케어기록 (CARE_RECORD)
- Key (record_no) — NUMBER — 기본 키 — NOT NULL
- Key (manager_id) — VARCHAR(20) — 외래 키 → 케어매니저.Key — NOT NULL
- Key (pro_reno) — NUMBER — 외래 키 → 프로그램 예약.Key — NOT NULL
- Key (emp_id) — VARCHAR(20) — 외래 키 → 프로그램 예약.Key — NOT NULL
- Key (pro_cosno) — NUMBER — 외래 키 → 프로그램 예약.Key — NOT NULL
- Field (dep_no) — VARCHAR(20) — 외래 키 → 프로그램 예약.Field — NOT NULL
- Field (record_titme) — VARCHAR(100) — NOT NULL
- Field (record_content) — VARCHAR(2000)
- Field (record_dt) — DATETIME — NOT NULL
- Key (manager_id2) — VARCHAR(20) — 외래 키 → 케어매니저.Key — NOT NULL
케어매니저 (MANAGER)
- Key (manager_id) — VARCHAR(20) — 기본 키 — NOT NULL
- Field (manager_nm) — VARCHAR(20)
- Field (manager_phone) — VARCHAR(20)
프로그램 관리 (PROGRAM)
- Key (pro_cosno) — NUMBER — 기본 키 — NOT NULL
- Field (pro_cosnm) — VARCHAR(100) — NOT NULL
- Field (pro_cosprice) — VARCHAR(100) — NOT NULL
- Field (pro_cosdesc) — VARCHAR(2000) — NOT NULL
- Field (pro_dt) — DATETIME — NOT NULL
프로그램 예약 (PROGRAM_RESERVE)
- Key (pro_reno) — NUMBER — 기본 키 — NOT NULL
- Key (pro_cosno) — NUMBER — 외래 키 → 프로그램 관리.Key — NOT NULL
- Key (emp_id) — VARCHAR(20) — 외래 키 → 회원관리.Key — NOT NULL
- Field (dep_no) — VARCHAR(20) — 외래 키 → 회원관리.Field — NOT NULL
- Field (pro_rename) — VARCHAR(20) — NOT NULL
- Field (pro_rephone) — VARCHAR(20) — NOT NULL
- Field (pro_reposition) — VARCHAR(20) — NOT NULL
- Field (pro_redepnm) — VARCHAR(20) — NOT NULL
- Field (pro_dt) — NUMBER — NOT NULL
- Field (pro_st) — NUMBER — NOT NULL
프로그램 예약 현황 (PROGRAM_STATUS)
- Key (pro_stano) — NUMBER — 기본 키 — NOT NULL
- Key (pro_reno) — NUMBER — 외래 키 → 프로그램 예약.Key — NOT NULL
- Key (pro_cosno) — NUMBER — 외래 키 → 프로그램 예약.Key — NOT NULL
- Key (emp_id) — VARCHAR(20) — 외래 키 → 프로그램 예약.Key — NOT NULL
- Field (dep_no) — VARCHAR(20) — 외래 키 → 프로그램 예약.Field — NOT NULL
- Field (pro_stadt) — DATETIME — NOT NULL
- Field (pro_statime) — DATETIME — NOT NULL
- Field (pro_stanm) — VARCHAR(20) — NOT NULL
- Field (pro_stadepnm) — VARCHAR(20) — NOT NULL
- Field (pro_stanow) — NUMBER — NOT NULL
회원관리 (EMPLOYEE)
- Key (emp_id) — VARCHAR(20) — 기본 키 — NOT NULL
- Field (dep_no) — VARCHAR(20) — 외래 키 → 부서.Field — NOT NULL
- Key (ticket_no) — NUMBER — 외래 키 → 부서.Key — NOT NULL
- Field (emp_nm) — VARCHAR(20) — NOT NULL
- Field (emp_phone) — VARCHAR(20) — NOT NULL
회원상태 (RANK)
- Field (rank_id) — NUMBER — 기본 키
- Key (manager_id) — VARCHAR(20) — 외래 키 → 케어매니저.Key — NOT NULL
- Key (noshow_no) — NUMBER — 외래 키 → 노쇼관리.Key — NOT NULL
- Key (pro_reno) — NUMBER — 외래 키 → 노쇼관리.Key — NOT NULL
- Key (pro_cosno) — NUMBER — 외래 키 → 노쇼관리.Key — NOT NULL
- Key (emp_id2) — VARCHAR(20) — 외래 키 → 노쇼관리.Key — NOT NULL
- Field (dep_no) — VARCHAR(20) — 외래 키 — NOT NULL