El Dorado
Tables (10)
admin_account (관리자 계정)
- admin_account_id (Key) — Primary key — NOT NULL
- nickname (Key3) — Primary key — NOT NULL — 아이디
- password (Field) — 패스워드
- phone (Field2) — 전화번호
- level (Field3) — 관리자 레벨 : 마스터, 운영, 클라이언트
coupon (쿠폰 (프로모션))
- coupon_id (Key) — Primary key — NOT NULL
- service_id (Key2) — Foreign key → service.service_id — NOT NULL
- admin_account_id (Key22) — Foreign key → service.admin_account_id — NOT NULL
- title (Field) — 제목
- detail (Field2) — 설명
- code (Field3) — 쿠폰코드
- type (Field4) — 정률 or 정액
- discount (Field5) — 할인 비율 or 할인 금액
- end_date (Field6) — 유효기한
- period (Field7) — 할인 기간 : 1-해당 결제건, 2-정기결제 두 달까지, 3- ...
periodic_payment (정기 결제 정보)
- periodic_payment_id (Key) — Primary key — NOT NULL
- service_type_id (Key2) — Foreign key → service_type.service_type_id — NOT NULL
- billing_period (Field) — 정기결제 주기 : 첫 결제일 기준 / 출고일 기준
- billing_date (Field2) — Int — 결제 주기 기준 : N일 전 결제 요청
refund_policy (환불 정책)
- refund_policy_id (Key) — Primary key — NOT NULL
- service_type_id (Key2) — Foreign key → service_type.service_type_id — NOT NULL
- release (Field4) — Foreign key → service_type.release — 출고 유형 : 결제 후 n일, 매 주 첫 영업일, 매 달 첫 영업일
- full_refund (Field) — 전액 환불 조건 (%)
- half_refund (Field2) — 절반 금액 환불 조건 (%)
service (서비스 기본 정보)
- service_id (Key) — Primary key — NOT NULL
- admin_account_id (Key2) — Foreign key → admin_account.admin_account_id — NOT NULL
- name (Field) — 서비스 이름
- company (Field2) — 업체명
service_option (서비스 상품 종류)
- service_option_id (Key) — Primary key — NOT NULL
- service_type_id (Key2) — Foreign key → service_type.service_type_id — NOT NULL
- name (Field) — 이름
- detail (Field3) — 설명
- price (Field2) — 가격
- user_option (Field4) — 사용자 선택 옵션 유무 : True / False
service_type (서비스 유형)
- service_type_id (Key2) — Primary key — NOT NULL
- release (Field4) — Primary key — 출고 유형 : 결제 후 n일, 매 주 첫 영업일, 매 달 첫 영업일
- service_id (Key) — Foreign key → service.service_id — NOT NULL
- pay_type (Field2) — 결제 방식 : 정기결제 / 단일결제
- shipping (Field3) — 배송 유무 : 온라인 서비스 / 배송 서비스
- minimum_condition (Field) — Int — 최소 수량 (인원)
- request_guide (Field5) — String — 주문 시 요청사항 가이드 문구 : 예) "교사 식판을 무료제공해드립니다. 수량을 입력하세요. "
shipping_detail (배송 서비스 정보)
- shipping_detail_id (Key) — Primary key — NOT NULL
- service_type_id (Key2) — Foreign key → service_type.service_type_id — NOT NULL
- periodic (Field) — 정기배송 주기 : day / week / month / false
- group_packing (Field2) — 반별포장 : True / False
- Field3
shipping_option (사용자 선택 배송 옵션)
- shipping_option_id (Key) — Primary key — NOT NULL
- shipping_detail_id (Key2) — Foreign key → shipping_detail.shipping_detail_id — NOT NULL
- name (Field) — 옵션 이름 : 예) 새벽배송, 주간배송 등
- price (Field2) — 가격
- self (Field3) — 유저 직접 입력 옵션 : True / False
user_option (사용자 선택 옵션)
- user_option_id (Key) — Primary key — NOT NULL
- service_option_id (Key2) — Foreign key → service_option.service_option_id — NOT NULL
- name (Field) — 옵션 이름 : 예) 숟가락, 숟가락 + 젓가락, 숟가락 + 포크
- price (Field2) — 가격
- self (Field3) — 유저 직접 입력 옵션 : True / False