250113 ERD

Tables (22)

TB_BIZMST (사업장)

  • business_key (사업장 아이디) — INT — Primary key
  • business_name (사업장명) — VARCHAR(30) — NOT NULL
  • business_code (사업장 코드) — VARCHAR(13) — NOT NULL
  • business_rep (대표자) — VARCHAR(5) — NOT NULL
  • business_no (사업자 번호) — VARCHAR(13) — NOT NULL
  • business_tel (전화 번호) — VARCHAR(15) — NOT NULL
  • business_fax (팩스) — VARCHAR(15)
  • business_address (주소) — VARCHAR(50) — NOT NULL

TB_BUYIN (가입고)

  • input_key (가입고 아이디) — INT — Primary key
  • input_common_code (입고 구분 코드) — VARCHAR(5) — Foreign key → TB_SYSCOMM.common_code_key — NOT NULL
  • business_employee_no (본사 직원 사번) — VARCHAR(13) — Foreign key → TB_EMPMST.employee_key — NOT NULL
  • input_no (발주/회수 번호) — VARCHAR(13) — NOT NULL
  • input_consent (입고 승인 여부) — BOOLEAN
  • input_note (비고) — VARCHAR(50)

TB_CUSTMST (협력업체(고객사))

  • customer_key (협력업체 아이디) — INT — Primary key
  • item_code (품목 코드) — VARCHAR(5)
  • customer_name (고객사명) — VARCHAR(30) — NOT NULL
  • customer_code (고객사 코드) — VARCHAR(13) — NOT NULL
  • customer_rep (대표자) — VARCHAR(5) — NOT NULL
  • customer_no (사업자 번호) — VARCHAR(13) — NOT NULL
  • customer_tel (전화 번호) — VARCHAR(15) — NOT NULL
  • customer_fax (팩스) — VARCHAR(15)
  • customer_address (주소) — VARCHAR(50) — NOT NULL
  • customer_address_detail (상세 주소) — VARCHAR(20)
  • customer_post (우편 번호) — VARCHAR(10) — NOT NULL
  • customer_active (사용 여부) — BOOLEAN
  • customer_note (비고) — VARCHAR(50)

TB_EMPMST (인사관리)

  • employee_key (인사관리 아이디) — INT — Primary key
  • employee_common_code (소속 구분 코드) — VARCHAR(3) — Foreign key → TB_SYSCOMM.common_code_key — NOT NULL
  • employee_workplace_code (소속 코드) — VARCHAR(13) — NOT NULL
  • employee_no (사번) — VARCHAR(13) — NOT NULL
  • employee_password (비밀번호) — VARCHAR(20)
  • employee_name (이름) — VARCHAR(5) — NOT NULL
  • employee_tel (전화 번호) — VARCHAR(15) — NOT NULL
  • employee_active (사용 여부) — BOOLEAN
  • employee_note (비고) — VARCHAR(50)

TB_FRNCHSMST (가맹점)

  • franchise_key (가맹점 아이디) — INT — Primary key
  • business_employee_no (본사 직원 사번) — VARCHAR(13) — Foreign key → TB_EMPMST.employee_key — NOT NULL
  • franchise_name (가맹점명) — VARCHAR(30) — NOT NULL
  • franchise_code (가맹점 코드) — VARCHAR(13) — NOT NULL
  • franchise_rep (가맹점주) — VARCHAR(5) — NOT NULL
  • franchise_no (사업자 번호) — VARCHAR(13) — NOT NULL
  • franchise_tel (전화 번호) — VARCHAR(15) — NOT NULL
  • franchise_address (주소) — VARCHAR(50) — NOT NULL
  • franchise_address_detail (상세 주소) — VARCHAR(20)
  • franchise_post (우편 번호) — VARCHAR(10) — NOT NULL
  • franchise_state (광역시도) — VARCHAR(10) — NOT NULL
  • franchise_city (시군) — VARCHAR(10) — NOT NULL
  • franchise_acitve (사용 여부) — BOOLEAN
  • franchise_note (비고) — VARCHAR(50)

TB_INOUT_HIS (품목입출내역)

  • inout_history_key (입출내역 아이디) — INT — Primary key
  • serial_no (시리얼 번호) — VARCHAR(20) — Foreign key → TB_ITEMSUB.item_sub_key — NOT NULL
  • warehouse_code (창고 코드) — VARCHAR(13) — Foreign key → TB_WHMST.warehouse_key — NOT NULL
  • inout_common_code (입출 구분 코드) — VARCHAR(5) — Foreign key → TB_SYSCOMM.common_code_key — NOT NULL
  • customer_employee_no (협력업체 직원 사번) — VARCHAR(13) — Foreign key → TB_EMPMST.employee_key — NOT NULL
  • business_employee_no (본사 직원 사번) — VARCHAR(13) — Foreign key → TB_EMPMST.employee_key — NOT NULL
  • franchise_code (가맹점 코드) — VARCHAR(13) — Foreign key → TB_FRNCHSMST.franchise_key — NOT NULL
  • location_key (로케이션 아이디) — INT — Foreign key → TB_LOCMST.location_key — NOT NULL
  • inout_history_date (날짜) — DATE
  • count_current (전산 수량) — INT
  • inout_history_note (비고) — VARCHAR(50)

TB_INREJ (입고반려)

  • input_reject_key (입고 반려 아이디) — INT — Primary key
  • input_no (발주/회수 번호) — VARCHAR(13) — Foreign key → TB_BUYIN.input_key — NOT NULL
  • input_reject_note (비고) — VARCHAR(50)

TB_INSTK (입고)

  • input_stock_key (입고 아이디) — INT — Primary key
  • serial_no (시리얼 번호) — VARCHAR(20) — Foreign key → TB_ITEMSUB.item_sub_key — NOT NULL
  • customer_employee_no (협력업체 직원 사번) — VARCHAR(13) — Foreign key → TB_EMPMST.employee_key — NOT NULL
  • input_key (가입고 아이디) — INT — Foreign key → TB_BUYIN.input_key
  • location_key (로케이션 아이디) — INT — Foreign key → TB_LOCMST.location_key
  • input_stock_date (입고 날짜) — DATE
  • input_stock_note (비고) — VARCHAR(50)

TB_INSTL_APPR (설치승인(출고등록))

  • install_approve_key (설치 승인 아이디) — INT — Primary key
  • install_request_key (설치 요청 아이디) — INT — Foreign key → TB_INSTL_REQ.install_request_key — NOT NULL
  • serial_no (시리얼 번호) — VARCHAR(20) — Foreign key → TB_ITEMSUB.item_sub_key — NOT NULL
  • customer_employee_no (협력업체 직원 사번) — VARCHAR(13) — Foreign key → TB_EMPMST.employee_key — NOT NULL
  • customer_installer_no (설치기사 사번) — VARCHAR(13) — Foreign key → TB_EMPMST.employee_key — NOT NULL
  • output_no (출고 번호) — VARCHAR(13) — NOT NULL
  • install_schedule_date (설치 예정일) — DATE
  • install_approve_note (비고) — VARCHAR(50)

TB_INSTL_CONF (설치(검수))

  • install_configuration_key (설치 검수 아이디) — INT — Primary key
  • output_no (출고 번호) — VARCHAR(13) — Foreign key → TB_INSTL_APPR.install_approve_key — NOT NULL
  • install_configuration (설치/검수 결과) — BOOLEAN

TB_INSTL_REQ (설치요청(출고요청))

  • install_request_key (설치 요청 아이디) — INT — Primary key
  • item_code (품목 코드) — VARCHAR(5) — Foreign key → TB_SYSCOMM.common_code_key — NOT NULL
  • franchise_code (가맹점 코드) — VARCHAR(13) — Foreign key → TB_FRNCHSMST.franchise_key — NOT NULL
  • business_employee_no (본사 직원 사번) — VARCHAR(13) — Foreign key → TB_EMPMST.employee_key — NOT NULL
  • customer_code (협력업체 코드) — VARCHAR(13) — Foreign key → TB_CUSTMST.customer_key — NOT NULL
  • install_request_amount (수량) — INT — NOT NULL
  • install_request_consent (승인 여부) — BOOLEAN
  • install_request_note (비고) — VARCHAR(50)

TB_ITEMMST (품목)

  • item_key (품목 아이디) — INT — Primary key
  • item_common_code (품목 코드) — VARCHAR(5) — Foreign key → TB_SYSCOMM.common_code_key — NOT NULL
  • item_name (품목명) — VARCHAR(20) — NOT NULL
  • customer_code (고객사 코드) — VARCHAR(13) — NOT NULL
  • input_price (입고가) — INT — NOT NULL
  • output_price (출고가) — INT — NOT NULL
  • size (규격) — VARCHAR(20)
  • unit (단위) — VARCHAR(10)
  • item_active (사용 여부) — BOOLEAN
  • item_note (비고) — VARCHAR(50)

TB_ITEMSUB (품목상세)

  • item_sub_key (품목상세 아이디) — INT — Primary key
  • common_code_key (품목 코드) — VARCHAR(5) — Foreign key → TB_SYSCOMM.common_code_key — NOT NULL
  • serial_no (시리얼 번호) — VARCHAR(20) — NOT NULL
  • item_sub_note (비고) — VARCHAR(50)

TB_ITEM_CONF (재고실사)

  • item_configuration_key (재고 실사 아이디) — INT — Primary key
  • item_code (품목 코드) — VARCHAR(5) — Foreign key → TB_SYSCOMM.common_code_key — NOT NULL
  • warehouse_code (창고 코드) — VARCHAR(13) — Foreign key → TB_WHMST.warehouse_key — NOT NULL
  • location_key (로케이션 아이디) — INT — Foreign key → TB_LOCMST.location_key
  • customer_employee_no (협력업체 직원 사번) — VARCHAR(13) — Foreign key → TB_EMPMST.employee_key — NOT NULL
  • count_current (전산 수량) — INT
  • count_configuration (실제 수량) — INT
  • item_configuration_date (날짜) — DATE

TB_LOCMST (로케이션)

  • location_key (로케이션 아이디) — INT — Primary key
  • warehouse_code (창고 코드) — VARCHAR(13) — Foreign key → TB_WHMST.warehouse_key — NOT NULL
  • row (행) — VARCHAR(2) — NOT NULL
  • column (열) — VARCHAR(2) — NOT NULL
  • shelf (단) — INT — NOT NULL
  • location_note (비고) — VARCHAR(50)

TB_PURCH_APPR (구매승인)

  • purchase_approve_key (구매 승인 아이디) — INT — Primary key
  • purchase_request_key (구매 의뢰 아이디) — INT — Foreign key → TB_PURCH_REQ.purchase_request_key — NOT NULL
  • customer_employee_no (협력업체 직원 사번) — VARCHAR(13) — Foreign key → TB_EMPMST.employee_key — NOT NULL
  • warehouse_code (창고 코드) — VARCHAR(13) — Foreign key → TB_WHMST.warehouse_key — NOT NULL
  • purchase_no (발주 번호) — VARCHAR(13) — NOT NULL
  • purchase_approve_date (승인 날짜) — DATE
  • purchase_approve_note (비고) — VARCHAR(50)

TB_PURCH_REQ (구매의뢰)

  • purchase_request_key (구매 의뢰 아이디) — INT — Primary key
  • item_common_code (품목 코드) — VARCHAR(5) — Foreign key → TB_SYSCOMM.common_code_key — NOT NULL
  • business_employee_no (본사 직원 사번) — VARCHAR(13) — Foreign key → TB_EMPMST.employee_key — NOT NULL
  • amount (수량) — INT — NOT NULL
  • purchase_request_date (의뢰 날짜) — DATE
  • purchase_consent (승인 여부) — BOOLEAN
  • purchase_request_note (비고) — VARCHAR(50)

TB_REPAIR (수리내역)

  • Key (아이디) — Primary key — NOT NULL
  • Field (시리얼번호)
  • Field (장애번호)
  • Field (수리결과)
  • Field (A/S기사)
  • Field (날짜)

TB_SYSCOMM (공통코드)

  • common_code_key (공통코드 아이디) — INT — Primary key
  • common_code (공통코드) — VARCHAR(5) — NOT NULL
  • common_name (공통코드명) — VARCHAR(20) — NOT NULL
  • common_code_active (사용여부) — BOOLEAN
  • common_code_note (비고) — VARCHAR(50)

TB_WHMST (창고)

  • warehouse_key (창고 아이디) — INT — Primary key
  • customer_code (협력업체 코드) — VARCHAR(13) — Foreign key → TB_CUSTMST.customer_key — NOT NULL
  • customer_employee_no (협력업체 직원 사번) — VARCHAR(13) — Foreign key → TB_EMPMST.employee_key — NOT NULL
  • warehouse_name (창고명) — VARCHAR(30) — NOT NULL
  • warehouse_code (창고 코드) — VARCHAR(13) — NOT NULL
  • warehouse_tel (창고 전화 번호) — VARCHAR(13) — NOT NULL
  • warehouse_address (창고 주소) — VARCHAR(50) — NOT NULL
  • warehouse_address_detail (창고 상세 주소) — VARCHAR(20)
  • warehouse_post (창고 우편 번호) — VARCHAR(10) — NOT NULL
  • warehouse_state (광역시도) — VARCHAR(10) — NOT NULL
  • warehouse_city (시군) — VARCHAR(10) — NOT NULL
  • warehouse_active (사용 여부) — BOOLEAN
  • warehouse_note (비고) — VARCHAR(50)

TB__RTN (반품(A/S, 회수))

  • return_key (반품 아이디) — INT — Primary key
  • serial_no (시리얼 번호) — VARCHAR(20) — Foreign key → TB_ITEMSUB.item_sub_key — NOT NULL
  • franchise_code (가맹점 코드) — VARCHAR(13) — Foreign key → TB_FRNCHSMST.franchise_key — NOT NULL
  • customer_configurer_no (검수기사 사번) — VARCHAR(13) — Foreign key → TB_EMPMST.employee_key — NOT NULL
  • business_employee_no (본사 직원 사번) — VARCHAR(13) — Foreign key → TB_EMPMST.employee_key — NOT NULL
  • customer_employee_no (협력업체 직원 사번) — VARCHAR(13) — Foreign key → TB_EMPMST.employee_key — NOT NULL
  • return_no (반품 번호) — VARCHAR(13) — NOT NULL
  • return_date (반품 날짜) — DATE — NOT NULL
  • return_note (비고) — VARCHAR(50)

V_ITEM_CRNT (재고현황)

  • item_current_key (재고 현황 아이디) — INT — Primary key
  • item_code (품목 코드) — VARCHAR(5)
  • item_current_common_code (재고 위치 현황) — VARCHAR(5)
  • warehouse_code (창고 코드) — VARCHAR(13)
  • franchise_code (가맹점 코드) — VARCHAR(13)
  • count_current (전산 수량) — INT