ERP
Tables (9)
Carriage (입고 / 출고)
- 배달 고유번호 (carraige_id) — Primary key — NOT NULL
- 창고 고유번호 (warehouse_id) — Foreign key → Warehouse.창고 고유번호 — NOT NULL
- 거래자 고유번호 (trader_id)
- 거래자 이름 (trader_name)
- 거래자 타입 (trader_type) — ENUM
- 제품 고유번호 (product_id)
- 제품 이름 (product_name)
- 운송 수량 (carriage_quantity)
- 입고 / 출고 (carriage_type) — ENUM
- 입 / 출고 날짜 (carriage_date)
- 비고 (description)
ClientOrder (애경&미존 발주요청)
- 주문_고유번호 (client_order_id) — Primary key — NOT NULL
- 고객 고유번호 (warehouse_client_id) — Foreign key → Partner.파트너 고유번호 — NOT NULL
- 주문 타입 (order_type) — ENUM
- 주문 담당자 이름 (manager_name)
- 주문 담당자 휴대폰 (manager_phone_number)
- 주문 담당자 이메일 (manager_email)
- 주문 아이템 고유번호 (item_id) — ENUM
- 주문 아이템 이름 (item_name) — ENUM
- 주문 수량 (quantity)
- 수량당 가격 (price_per_quantity)
- 주문 요청일 (request_date)
- 납기 일자 (finish_date)
Copy Of Carriage (CopyOf입고 / 출고)
- 배달 고유번호 (carraige_id) — Primary key — NOT NULL
- 발송자 이름 (sender_name)
- 발송자 고유번호 (sender_id)
- 수신자 이름 (receiver_name)
- 수신자 고유번호 (receiver_id)
- 운송장 번호 (tracking_number)
- 배달 접수시간 (accepted_time)
- 제품 고유번호 (product_id)
- 제품명 (product_name)
- 제품 수량 (product_quantity)
- 단위당 가격 (price_per_quantity)
- 운송 상태 (carriage_status) — ENUM
- 운송 타입 (carriage_type) — ENUM
Employee (직원)
- 직원 고유번호 (employee_id) — Primary key — NOT NULL
- 직원 이름 (employee_name)
- 이메일 (email)
- 비밀번호 (password)
- 직원 직위 (employee_rank) — ENUM
Partner (유머스트 R&D와 협약을 맺은 기업)
- 파트너 고유번호 (partner_id) — Primary key — NOT NULL
- 파트너 이름 (partner_name)
- 파트너 타입 (partner_type) — ENUM
- 이메일 (email)
- 전화번호 (phone_number)
- 우편번호 (zipcode)
- 주소 (address)
- 상세주소 (address_detail)
Product (재고 관리 아이템)
- 제품 고유번호 (product_id) — Primary key — NOT NULL
- 제품 코드번호 (product_code)
- 제품명 (product_name)
- 제품 분류 (product_type) — ENUM
- 제품 용량 (product_volume)
- 제조 회사 (product_vendor)
- 단위당 가격 (price_per_quantity)
- 총 재고 수량 (total_quantity)
Warehouse (창고)
- 창고 고유번호 (warehouse_id) — Primary key — NOT NULL
- 창고 이름 (warehouse_name)
- 우편번호 (zipcode)
- 주소 (address)
- 상세주소 (address_detail)
WarehouseClient (창고에게 입 / 출고 요청을 보내는 고객)
- 고객 고유번호 (warehouse_client_id) — Primary key — NOT NULL
- 고객 이름 (clinet_name)
- 이메일 (email)
- 전화번호 (phone_number)
- 우편번호 (zipcode)
- 주소 (address)
- 상세주소 (address_detail)
- 계약일 (contract_date)
WarehouseProduct (창고제품)
- 창고 제품 고유번호 (warehouse_product_id) — Primary key — NOT NULL
- 창고 고유번호 (warehouse_id) — Foreign key → Warehouse.창고 고유번호 — NOT NULL
- 제품 고유번호 (product_id) — Foreign key → Product.제품 고유번호 — NOT NULL
- 창고 제품 수량 (quantity)