포유키즈 B2B

테이블 (46)

SMS (sms)

  • 아이디 (id) — not null — NOT NULL
  • API Key (api_key) — not null — NOT NULL
  • API Secret (api_secret) — not null — NOT NULL — AEC 암호화 후 저장
  • 사용여부 (is_active) — not null — NOT NULL

SMTP (smtp)

  • 발신 주소 (email) — not null — NOT NULL
  • 서버 종류 (server) — not null — NOT NULL
  • 비밀번호 (password) — not null — NOT NULL — AEC 암호화 후 저장
  • 사용여부 (is_active) — not null — NOT NULL

Session 로그인 (persistent_logins)

  • series — 기본 키 — NOT NULL
  • 아이디 (username) — NOT NULL
  • 토큰 (token) — NOT NULL
  • 최종 접속 시간 (last_used) — not null — NOT NULL

cs 답변 (cs_answer)

  • 문의 No. (id_inquiry) — not null — 외래 키 → cs 문의.No. — NOT NULL
  • 답변자 (id_user) — 외래 키 → 사용자.아이디 — NOT NULL
  • 내용 (content) — not null — NOT NULL
  • 답변일시 (answered_at) — not null — NOT NULL

cs 문의 (cs_inquiry)

  • No. (id_inquiry) — not null — 기본 키 — NOT NULL
  • 문의자 (id_user) — 외래 키 → 사용자.아이디 — NOT NULL
  • 주문번호 (id_order) — char(18) — 외래 키 → 주문.주문번호 — NOT NULL — YYMMDDHHMM####-### 형식
  • 제목 (title) — not null — NOT NULL
  • 내용 (content) — not null — NOT NULL
  • 문의유형 (type) — not null — NOT NULL — 상품 / 재고 / 배송 / 반품 / 교환/ 정산 / 기타 Enum
  • 문의상태 (is_answered) — not null — NOT NULL — true: 답변완료 false: 미답변
  • 문의일시 (created_at) — not null — NOT NULL

sms 양식 (sms_template)

  • No (id_sms) — not null — 기본 키 — NOT NULL
  • 자동 발송 시점 (auto_send)
  • 내용 (content) — not null — NOT NULL
  • 수신자 (recipient)

거래명세서 양식 (transaction_reciept_template)

  • no (id_reciept) — not null — 기본 키 — NOT NULL
  • 사용자 (id_user) — 외래 키 → 사용자.아이디 — NOT NULL
  • 양식명 (title) — not null — NOT NULL
  • 사용여부 (is_active) — not null — NOT NULL

거래명세서 출력항목 (transaction_template_field)

  • 항목명 (name) — not null — 기본 키 — NOT NULL

공지사항 (notice)

  • No. (id_notice) — not null — 기본 키 — NOT NULL
  • 작성자 (id_employee) — not null — 외래 키 → 본사직원.직원코드 — NOT NULL
  • 중요도 (importance) — not null — NOT NULL
  • 말머리 (type) — not null — NOT NULL
  • 노출대상 (target) — not null — NOT NULL — 거래처 / 사내
  • 제목 (title) — not null — NOT NULL
  • 내용 (content) — not null — NOT NULL
  • 조회수 (view_count) — not null — NOT NULL
  • 작성일 (created_at) — not null — NOT NULL

공지사항 첨부파일 (notice_attachment)

  • no (id_attach) — not null — 기본 키 — NOT NULL
  • 공지사항 no (id_notice) — not null — 외래 키 → 공지사항.No. — NOT NULL
  • 첨부파일 경로 (file_path) — not null — NOT NULL

구매처 (client)

  • 구매처코드 (id_client) — not null — 기본 키 — NOT NULL
  • 거래처코드 (corporation_code) — not null — NOT NULL
  • 상호명 (name) — not null — NOT NULL
  • 사업자등록번호 (number_business) — not null — NOT NULL — UNIQUE
  • 법인등록번호 (number_corporation) — UNIQUE
  • 통신판매업신고번호 (number_online_sale)
  • 사업장 소재지_주소 (address) — not null — NOT NULL
  • 사업장 소재지_상세주소 (address_detail) — not null — NOT NULL
  • 사업자 구분 (business_type) — not null — NOT NULL — 법인 / 개인
  • 업태 (business_condition)
  • 업종 (business_category)
  • 대표자명 (ceo) — not null — NOT NULL
  • 유선전화 (telephone)
  • 팩스번호 (fax)
  • 여신한도 (credit_limit)
  • 계좌정보_은행 (account_bank) — not null — NOT NULL
  • 계좌정보_예금주 (account_holder) — not null — NOT NULL
  • 계좌정보_계좌번호 (account_number) — not null — NOT NULL
  • 정산기준 (adjust_criteria) — not null — NOT NULL — 배송완료 / 거래완료
  • 결제일 (payment_day)
  • 사업자통장 (img_path_bankbook) — not null — NOT NULL
  • 사업자등록증 (img_path_license) — not null — NOT NULL
  • 담당자명 (manager_name) — not null
  • 담당자_연락처 (manager_phone)
  • 담당자_이메일 (manager_email)
  • 판매형태 (sales_style) — not null
  • 메모 (memo)

구매처별 반품지 (client_warehouse_return)

  • no (id_return) — not null — 기본 키 — NOT NULL
  • 구매처코드 (id_client) — not null — 외래 키 → 구매처.구매처코드 — NOT NULL
  • 반품지명 (name) — not null — NOT NULL
  • 주소 (address) — not null — NOT NULL

구매처별 출고지 (client_warehouse_forwarding)

  • no (id_forwarding) — not null — 기본 키 — NOT NULL
  • 구매처코드 (id_client) — not null — 외래 키 → 구매처.구매처코드 — NOT NULL
  • 출고지명 (name) — not null — NOT NULL
  • 주소 (address) — not null — NOT NULL

권한 부여 (employee_roles)

  • 권한 (id_role) — not null — 외래 키 → 페이지 접근 권한.No. — NOT NULL
  • 사용자 (id_user) — 외래 키 → 사용자.아이디 — NOT NULL

마이메뉴 (my_menu)

  • 사용자 아이디 (id_user) — 외래 키 → 사용자.아이디 — NOT NULL
  • 메뉴 No (no_menu) — not null — 외래 키 → 페이지 메뉴항목.No. — NOT NULL

매출통계 출력항목 (excel_template_fields)

  • 항목명 (name) — not null — 기본 키 — NOT NULL

명세서별 출력 항목 (transaction_fields_per_template)

  • no (id_reciept) — not null — 외래 키 → 거래명세서 양식.no — NOT NULL
  • 항목명 (name) — not null — 외래 키 → 거래명세서 출력항목.항목명 — NOT NULL

반품지별 연락처 (client_return_warehouse_phone)

  • no (id_phone) — not null — 기본 키 — NOT NULL
  • no (id_return) — not null — 외래 키 → 구매처별 반품지.no — NOT NULL
  • 연락처 (phone) — NOT NULL

본사직원 (employee)

  • 직원코드 (id_employee) — not null — 기본 키 — NOT NULL
  • 소속 (department) — not null — NOT NULL
  • 이름 (name) — not null — NOT NULL
  • 연락처 (phone)
  • 이메일 (email)
  • 유선전화 (telephone)

브랜드 (brands)

  • no (id_brand) — not null — 기본 키 — NOT NULL
  • 구매처 (id_client) — not null — 외래 키 → 구매처.구매처코드 — NOT NULL
  • 브랜드명 (name) — not null — NOT NULL
  • 노출여부 (is_active) — not null — NOT NULL

사용로그 (log)

  • No. (id_log) — not null — 기본 키 — NOT NULL
  • 처리자 (id_employee) — not null — 외래 키 → 본사직원.직원코드 — NOT NULL
  • 로그 내용 (content) — not null — NOT NULL
  • 처리일시 (created_at) — not null — NOT NULL

사용자 (users)

  • 아이디 (id_user) — 기본 키 — NOT NULL
  • 비밀번호 (password) — not null — NOT NULL
  • 사용자 구분 (user_type) — not null — NOT NULL — 본사 0 구매처 1 판매처 2
  • 사용자 코드 (id_entity) — not null — NOT NULL — 본사직원 / 구매처 / 판매처 코드
  • 사용여부 (is_active) — not null — NOT NULL
  • 접속일시 (accessed_at) — not null
  • 생성일시 (created_at) — not null — NOT NULL
  • 수정일시 (updated_at) — not null

상품 (product)

  • 상품코드 (id_product) — not null — 기본 키 — NOT NULL — PYY##### 형식
  • 구매처 (id_client) — not null — 외래 키 → 구매처.구매처코드 — NOT NULL
  • 브랜드 (id_brand) — not null — 외래 키 → 서브브랜드.no — NOT NULL
  • 카테고리 (id_category) — not null — 외래 키 → 카테고리(소분류).no — NOT NULL
  • 상품명 (name) — not null — NOT NULL
  • ERP코드 (erpcode) — not null — NOT NULL
  • 바코드 (barcode) — not null — NOT NULL
  • 부가세 과세 여부 (is_tax_charged) — not null — NOT NULL — true : 과세 false : 면세
  • 처리상태 (is_approved) — not null — NOT NULL — true : 승인 false : 승인요청
  • 판매상태 (status_sales) — not null — NOT NULL — 판매중 / 품절 / 단종
  • 상위노출 여부 (is_listed_on_top) — not null — NOT NULL
  • 판매 시작일 (sales_start_at)
  • 판매 종료일 (sales_finish_at) — not null
  • 소비자가 (price_customer) — not null — NOT NULL
  • 권장판매가 (price_sale) — not null — NOT NULL — (1 - 브랜드 단가적용률 ) * 소비자가
  • 원가 (price_original) — not null — NOT NULL — 단가적용률 * 소비자가
  • 적립포인트 (point)
  • 포인트몰 등록 여부 (is_in_point_mall) — not null — NOT NULL
  • 입수단위 (unit_quantity) — not null — NOT NULL
  • 총재고량 (total_stock) — not null — NOT NULL — > 1
  • 낱개구매 여부 (is_single_purchasable) — not null — NOT NULL
  • 대표이미지 (img_path)
  • 상세설명 (description)

상품 컨디션 (product_condition)

  • No (id_condition) — not null — 기본 키 — NOT NULL
  • 상품코드 (id_product) — not null — 외래 키 → 상품.상품코드 — NOT NULL — PYY##### 형식
  • 내용 (content) — not null — NOT NULL
  • 시작일 (start_at) — not null
  • 종료일 (finish_at) — not null

상품별 수식어 (product_modifier)

  • 수식어명 (name) — not null — 기본 키 — NOT NULL
  • 상품코드 (id_product) — not null — 외래 키 → 상품.상품코드 — NOT NULL — PYY##### 형식

상품별 추가 이미지 (product_additional_img)

  • No (id_img) — not null — 기본 키 — NOT NULL
  • 상품코드 (id_product) — not null — 외래 키 → 상품.상품코드 — NOT NULL — PYY##### 형식
  • 이미지 경로 (img_path) — not null — NOT NULL

상품재고 (product_stock_inout)

  • 재고 No. (id_stock) — not null — 기본 키 — NOT NULL
  • 등록자 (id_employee) — not null — 외래 키 → 본사직원.직원코드 — NOT NULL
  • 주문번호 (id_order) — char(18) — 외래 키 → 주문.주문번호 — NOT NULL — YYMMDDHHMM####-### 형식
  • 구분 (type) — not null — NOT NULL — 입고 / 출고
  • 수량 (quantity) — not null — NOT NULL
  • 운영상태 (status_stock) — not null — NOT NULL — 매입 / 이동 / 반품 Enum
  • 상품상태 (status_product) — not null — NOT NULL — 양품 / 불량 / 온라인 Enum
  • 분리기준일 (seperated_at) — not null — NOT NULL
  • 등록일 (created_at) — not null — NOT NULL
  • 창고 (warehouse) — not null
  • 메모 (memo)

서브브랜드 (sub_brands)

  • no (id_sub_brand) — not null — 기본 키 — NOT NULL
  • 브랜드 no (id_brand) — not null — 외래 키 → 브랜드.no — NOT NULL
  • 서브브랜드명 (name) — not null — NOT NULL
  • 노출여부 (is_active) — not null — NOT NULL
  • 단가적용률_원가 (price_rate_original) — not null
  • 단가적용률_판매가 (price_rate_sale) — not null

양식별 출력항목 (excel_fields_per_template)

  • no (id_excel) — not null — 외래 키 → 엑셀 출력 양식.no — NOT NULL
  • 항목명 (name) — not null — 외래 키 → 매출통계 출력항목.항목명 — NOT NULL
  • 열 제목 (header) — not null
  • 설명 (description) — not null

엑셀 출력 양식 (excel_template)

  • no (id_excel) — not null — 기본 키 — NOT NULL
  • 사용자 (id_user) — 외래 키 → 사용자.아이디 — NOT NULL
  • 양식명 (title) — not null — NOT NULL
  • 사용여부 (is_active) — not null — NOT NULL
  • 제목열여부 (draw_header) — not null — NOT NULL

이메일 양식 (email_template)

  • No (id_email) — not null — 기본 키 — NOT NULL
  • 자동 발송 시점 (auto_send)
  • 내용 (content) — not null — NOT NULL
  • 수신자 (recipient)

자사 (my_company)

  • 자사 코드 (id_company) — not null — 기본 키 — NOT NULL
  • 상호명 (name) — not null — NOT NULL
  • 사업자등록번호 (number_business) — not null — NOT NULL
  • 법인등록번호 (number_corporation)
  • 통신판매업신고번호 (number_online_sale)
  • 사업장 소재지_주소 (address) — not null — NOT NULL
  • 사업장 소재지_상세주소 (address_detail) — not null — NOT NULL
  • 사업자 구분 (business_type) — not null — NOT NULL
  • 업태 (business_condition)
  • 업종 (business_category)
  • 대표자명 (ceo) — not null — NOT NULL
  • 유선전화 (telephone)
  • 팩스번호 (fax)
  • 사업자통장 (img_path_bankbook) — not null — NOT NULL
  • 사업자등록증 (img_path_license) — not null — NOT NULL
  • 계좌정보_은행 (account_bank) — not null — NOT NULL
  • 계좌정보_예금주 (account_holder) — not null — NOT NULL
  • 계좌정보_계좌번호 (account_number) — not null — NOT NULL

자사 반품지 (warehouse_return)

  • no (id_return) — not null — 기본 키 — NOT NULL
  • 자사 코드 (id_company) — not null — 외래 키 → 자사.자사 코드 — NOT NULL
  • 반품지명 (name) — not null — NOT NULL
  • 주소 (address) — not null — NOT NULL

자사 반품지별 연락처 (return_warehouse_phone)

  • no (id_phone) — not null — 기본 키 — NOT NULL
  • no (id_return) — not null — 외래 키 → 자사 반품지.no — NOT NULL
  • 연락처 (phone) — NOT NULL

자사 출고지 (warehouse_forwarding)

  • no (id_forwarding) — not null — 기본 키 — NOT NULL
  • 자사 코드 (id_company) — not null — 외래 키 → 자사.자사 코드 — NOT NULL
  • 출고지명 (name) — not null — NOT NULL
  • 주소 (address) — not null — NOT NULL

자사 출고지별 연락처 (forwarding_warehouse_phone)

  • no (id_phone) — not null — 기본 키 — NOT NULL
  • no (id_forwarding) — not null — 외래 키 → 자사 출고지.no — NOT NULL
  • 연락처 (phone) — NOT NULL

주문 (order)

  • 주문번호 (id_order) — char(18) — 기본 키 — NOT NULL — YYMMDDHHMM####-### 형식
  • 주문상품 (id_product) — not null — 외래 키 → 상품.상품코드 — NOT NULL
  • 등록자 (id_employee) — not null — 외래 키 → 판매처.관리자 — NOT NULL
  • 판매처 (id_supplier) — not null — 외래 키 → 판매처.판매처코드 — NOT NULL
  • 주문상태 (status_order) — not null — NOT NULL — 승인요청 / 승인 / 승인취소 / 출고대기 / 배송중 / 배송취소 / 배송완료 / 거래완료
  • 클레임상태 (status_claim) — not null — NOT NULL — 정상 / 교환 / 반품
  • 상품상태 (status_product) — not null — NOT NULL — 양품 / 불량 / 온라인
  • 출고지 (forwarding_location) — not null — NOT NULL — 거래처 출고 / 본사 출고
  • 배송지_주소 (delivery_address) — not null — NOT NULL
  • 배송지_상세주소 (delivery_address_detail) — not null — NOT NULL
  • 주문수량 (quantity) — not null — NOT NULL
  • 주문일 (ordered_at) — not null
  • 거래완료일 (transacted_at) — not null — 주문 상태 '거래완료'로 변경 시 해당 날짜 등록
  • 배송처리일 (delivery_started_at) — not null — 주문 상태 '배송중'으로 변경 시 해당 날짜로 등록
  • 배송완료일 (delivery_completed_at) — not null — 주문 상태 '배송완료'로 변경 시 해당 날짜로 등록
  • 메모 (memo)

출고지별 연락처 (client_forwarding_warehouse_phone)

  • no (id_phone) — not null — 기본 키 — NOT NULL
  • no (id_forwarding) — not null — 외래 키 → 구매처별 출고지.no — NOT NULL
  • 연락처 (phone) — NOT NULL

카테고리(대분류) (main_category)

  • no (id_main) — not null — 기본 키 — NOT NULL
  • 노출여부 (is_active) — not null — NOT NULL
  • 카테고리명 (name) — not null — NOT NULL
  • 상품수 (number_of_products) — not null

카테고리(소분류) (sub_category)

  • no (id_sub) — not null — 기본 키 — NOT NULL
  • no (id_middle) — not null — 외래 키 → 카테고리(중분류).no — NOT NULL
  • 노출여부 (is_active) — not null — NOT NULL
  • 카테고리명 (name) — not null — NOT NULL
  • 상품수 (number_of_products) — not null

카테고리(중분류) (middle_category)

  • no (id_middle) — not null — 기본 키 — NOT NULL
  • no (id_main) — not null — 외래 키 → 카테고리(대분류).no — NOT NULL
  • 노출여부 (is_active) — not null — NOT NULL
  • 카테고리명 (name) — not null — NOT NULL
  • 상품수 (number_of_products) — not null

판매처 (supplier)

  • 판매처코드 (id_supplier) — not null — 기본 키 — NOT NULL
  • 메인 판매처 코드 (id_main_supplier) — not null — 외래 키 → 판매처.판매처코드
  • 관리자 (id_employee) — not null — 외래 키 → 본사직원.직원코드 — NOT NULL
  • 구분 (type) — not null — NOT NULL
  • 등급 (level) — not null — NOT NULL
  • 거래처코드 (corporation_code) — not null — NOT NULL
  • 상호명 (name) — not null — NOT NULL
  • 사업자등록번호 (number_business) — not null — NOT NULL — UNIQUE
  • 법인등록번호 (number_corporation) — UNIQUE
  • 통신판매업신고번호 (number_online_sale)
  • 사업장 소재지_주소 (address) — not null — NOT NULL
  • 사업장 소재지_상세주소 (address_detail) — not null — NOT NULL
  • 사업자 구분 (business_type) — not null — NOT NULL — 법인 / 개인
  • 업태 (business_condition)
  • 업종 (business_category)
  • 대표자명 (ceo) — not null — NOT NULL
  • 유선전화 (telephone)
  • 팩스번호 (fax)
  • 여신한도 (credit_limit)
  • 낱개 구매 권한 (is_single_purchasable) — not null — NOT NULL
  • 계좌정보_은행 (account_bank) — not null — NOT NULL
  • 계좌정보_예금주 (account_holder) — not null — NOT NULL
  • 계좌정보_계좌번호 (account_number) — not null — NOT NULL
  • 정산기준 (adjust_criteria) — not null — NOT NULL — 배송완료 / 거래완료
  • 결제일 (payment_day)
  • 포인트 (point) — not null
  • 사업자통장 (img_path_bankbook) — not null — NOT NULL
  • 사업자등록증 (img_path_license) — not null — NOT NULL
  • 담당자명 (manager_name)
  • 담당자_연락처 (manager_phone)
  • 담당자_이메일 (manager_email)
  • 판매 형태 (sales_style) — not null
  • 메모 (memo)

판매처 등급별 공급가 (product_supply_price)

  • 등급 (level) — not null — 기본 키 — NOT NULL
  • 상품코드 (id_product) — not null — 외래 키 → 상품.상품코드 — NOT NULL — PYY##### 형식
  • 가격 (price) — not null — NOT NULL

판매처 등급별 브랜드 단가적용률 (sub_brand_price_rate)

  • 등급 (level) — not null — 기본 키 — NOT NULL
  • no (id_sub_brand) — not null — 외래 키 → 서브브랜드.no — NOT NULL
  • 단가적용률 (rate) — not null — NOT NULL

페이지 메뉴항목 (sidebar_menu)

  • No. (no) — not null — 기본 키 — NOT NULL
  • 페이지명 (menu_name) — NOT NULL
  • 페이지 링크 (menu_url) — not null — NOT NULL

페이지 접근 권한 (roles)

  • No. (id_role) — not null — 기본 키 — NOT NULL
  • 권한명 (name) — not null — NOT NULL