AMS(prac)
Tables (15)
Branch (가맹점)
- department_id (가맹점 번호) — Primary key — NOT NULL
- common_code (상위 구분) — Foreign key → Common Code.common_code — NOT NULL
- post (우편번호)
- address (주소)
- details (상세주소)
- Field (광역시도)
- city (시 군)
- representative (대표자명)
- tel (대표전화)
- fax (팩스)
- manager_id (관리자 번호) — Foreign key → Employee.common_code — NOT NULL
- active (사용여부)
- size (가맹점 평수)
- variety (취급품목수)
- Field (위치별 특이사항)
- note (비고)
Common Code (공통코드)
- common_code (상위 구분 코드) — Primary key — NOT NULL
- name (코드명)
- active (사용여부)
- note (비고)
Corp (사업장)
- Field (사업장명)
- Field (대표자)
- Field (사업자번호)
- Field2 (종목)
- Field3 (주소)
Department (부서)
- department_id (부서 번호) — Primary key — NOT NULL
- common_code (상위 구분 코드) — Foreign key → Common Code.common_code — NOT NULL
- name (부서명)
- active (사용여부)
- tel (전화번호)
- fax (팩스번호)
- note (비고)
Employee (직원)
- manager_id (사원 번호) — Primary key — NOT NULL
- common_code (상위 구분) — Foreign key → Common Code.common_code — NOT NULL
- name (사원명)
- tel (전화번호)
- department_id (부서) — Foreign key
- note (비고)
History (내역)
- management_id (관리 번호) — Primary key — NOT NULL
- product_id (상품 번호) — Foreign key → Items.product_id
- item_code (품목 구분) — Foreign key → Items.item_code — NOT NULL
- state (상태)
- location_code (위치 상위 코드)
- location_id (위치)
- request (처리 내용)
- amount (수량)
- proposer_code (신청자 상위 코드)
- proposer_id (신청자)
- date (날짜)
- note (비고)
IO (입출고 관리)
- management_id (처리 번호) — Primary key — NOT NULL
- product_id (상품 번호) — Foreign key → Items.product_id
- item_code (품목 구분) — Foreign key → Items.item_code — NOT NULL
- state (상태) — NOT NULL
- storage_id (창고 번호)
- location_id (위치 번호)
- note (비고)
Install_process (설치)
- management_id (처리 번호) — Primary key — NOT NULL
- branch_id (가맹점 번호)
- item_code (품목 구분) — Foreign key → Items.item_code — NOT NULL
- state (상태)
- amount (수량)
- note (비고)
Items (품목)
- product_id (상품 번호) — Primary key
- item_code (품목 구분) — Primary key — NOT NULL
- common_code (상위 구분) — Foreign key → Common Code.common_code — NOT NULL
- name (품목명)
- active (사용여부)
- size (규격)
- unit (단위)
- in_price (입고가)
- out_price (출고가)
- tax (과세구분)
- minimum_stock (기초재고량)
- partner_id (담당 업체 코드) — Foreign key → Partner.partner_id — NOT NULL
- manager_id (취급 담당자 코드) — Foreign key → Employee.common_code — NOT NULL
- note (비고)
Location (창고 세부)
- location_id (위치 번호) — Primary key — NOT NULL
- storage_id (창고 번호) — Foreign key → Storage.storage_id — NOT NULL
- location (위치)
Partner (협력업체)
- partner_id (업체 번호) — Primary key — NOT NULL
- common_code (상위 구분) — Foreign key → Common Code.common_code — NOT NULL
- name (업체명)
- post (우편번호)
- address (주소)
- details (상세주소)
- Field (광역시도)
- city (시 군)
- item (취급항목)
- representative (대표자명)
- tel (대표전화)
- fax (팩스)
- manager_id (담당자 번호) — Foreign key → Employee.common_code — NOT NULL
- active (사용여부)
- note (비고)
Repair (반품 수리 관리)
- management_id (처리 번호) — Primary key — NOT NULL
- branch_id (가맹점 번호)
- product_id (상품 번호) — Foreign key → Items.product_id
- item_code (품목 구분) — Foreign key → Items.item_code — NOT NULL
- state (상태)
- Field (장애 번호)
- Field2 (검수 결과)
- note (비고)
State (상태)
- management_id (관리 번호) — Primary key — NOT NULL
- product_id (상품 번호) — Foreign key → Items.product_id
- item_code (품목 구분) — Foreign key → Items.item_code — NOT NULL
- state (상품 상태) — NOT NULL
- location_code (위치 상위 코드)
- location_id (위치)
- request (처리 내용)
- amount (수량)
- proposer_code (신청자 상위 코드)
- proposer_id (신청자)
- note (비고)
Storage (창고)
- storage_id (창고 번호) — Primary key — NOT NULL
- common_code (상위 구분) — Foreign key → Common Code.common_code — NOT NULL
- name (창고명)
- post (우편번호)
- address (주소)
- details (상세주소)
- partner_id (담당 업체 코드) — Foreign key → Partner.partner_id — NOT NULL
- manager_id (관리자 코드) — Foreign key → Employee.common_code — NOT NULL
- tel (전화번호)
- active (사용여부)
- note (비고)
return_process (회수)
- management_id (처리 번호) — Primary key — NOT NULL
- product_id (상품 번호) — Foreign key → Items.product_id
- item_code (품목 구분) — Foreign key → Items.item_code — NOT NULL
- state (상태)
- note (비고)
- branch_id (가맹점 번호)