20250728_데이터모델링
테이블 (6)
VIP고객 (MEMBER_VIP)
- vip_member_gbn_id (Key) — SEQ — 기본 키 — NOT NULL
- 선정일자 (Field) — DATE
- VIP 할인률 (Field2)
고객 (MEMBER)
- member_id (Key) — SEQ — 기본 키 — NOT NULL
- member_gbn_id (Key2) — SEQ — 외래 키 → 일반고객.member_gbn_id — NOT NULL
- vip_member_gbn_id (Key3) — SEQ — 외래 키 → VIP고객.vip_member_gbn_id — NOT NULL
- member_name (Field) — VARCHAR2
고객주소 (ADDRESS)
- address_id (Key) — SEQ — 기본 키 — NOT NULL
- member_id (Key2) — SEQ — 외래 키 → 고객.member_id — NOT NULL
- member_gbn_id (Key22) — 외래 키 → 고객.member_gbn_id — NOT NULL
- vip_member_gbn_id (Key3) — SEQ — 외래 키 → 고객.vip_member_gbn_id — NOT NULL
- 주소 (Field) — SEQ
연락처 (CONTACT)
- contact_id (Key) — SEQ — 기본 키 — NOT NULL
- member_id (Key2) — SEQ — 외래 키 → 고객.member_id — NOT NULL
- member_gbn_id (Key22) — 외래 키 → 고객.member_gbn_id — NOT NULL
- vip_member_gbn_id (Key3) — SEQ — 외래 키 → 고객.vip_member_gbn_id — NOT NULL
- 전화번호 (Field) — SEQ
일반고객 (MEMBER_GENERAL)
- member_gbn_id (Key) — SEQ — 기본 키 — NOT NULL
조직 (DEPT)
- dept_id (Key) — SEQ — 기본 키 — NOT NULL
- dept_name (Field) — VARCHAR2
- parent_dept_id (Key2) — SEQ — 외래 키 → 조직.dept_id — NOT NULL